qt - Decompress header of swf file (possible with qUncompress?) -
i have swf files generated adobe flash. know how can decompress headers in qt? need size (width , height) , frame rate , frame count.
thanks
it's not documented if quncompress requires compressed data in qbytearray decompress it. wording of it, seems imply that. imagine loading large swf memory few bytes in header not practical.
if can live loading whole file memory, load file starting @ offset 4 qbytearray , flip byte order of 1st 4 (swf little-endian , quncompress requires length in big-endian). subtract 4 flipped 32-bit integer. call quncompress.
if loading whole file not ideal, may better off use stream functions in zlib directly. allows decompress data piece piece.
Comments
Post a Comment