so, I was attempting to figure out how to calculate the metadata size for PVR (version 2?) images which have a variable length.
based on the documents, the last 4 bytes of the header contain this as an unsigned int32, but no matter what hackery I tried, I could not get the result for the size that matched what the PVR GUI tool would show as the size.
the byte array looked like this in the file {00,00,00,80} (which are index 49 to 52 in the header); however, PVR GUI says the metadata size...
calculate metadata size for PVR from header (pvr 2)
based on the documents, the last 4 bytes of the header contain this as an unsigned int32, but no matter what hackery I tried, I could not get the result for the size that matched what the PVR GUI tool would show as the size.
the byte array looked like this in the file {00,00,00,80} (which are index 49 to 52 in the header); however, PVR GUI says the metadata size...
calculate metadata size for PVR from header (pvr 2)