[FFmpeg-devel] libavcodec/exr : simplify reorder_pixels

Martin Vignali m.vignali at jokyo-images.com
Fri May 5 23:28:28 EEST 2017


Hello,

in attach a patch who simplify the reorder_pixels func

reorder_pixels is call by rle_uncompress and zip_uncompress
with size == uncompress_size

uncompress_size is a multiple of 2 (because exr store data
in half, float, or uint32)

In the decoder uncompress_size is a multiple of s->current_channel_offset
and s->current_channel_offset is increment by 2 or 4 (following pixel_type)

Comments welcome

Martin
Jokyo Images


-- 
Martin Vignali
Jokyo Images
18 rue du Transvaal
69008 Lyon
06 99 89 33 30
m.vignali at jokyo-images.com
http://www.jokyo-images.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavcodec-exr-simplify-reorder_pixels.patch
Type: application/octet-stream
Size: 1598 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170505/1a3936c5/attachment.obj>


More information about the ffmpeg-devel mailing list