is it on a per subframe basis, and if so, is each frame padded if it’s not a multiple of 512 bits? or do I have to decode all the data, and run it over the decoded file at once?