Martin Vignali
ac5908b13f
libavcodec/exr : add x86 SIMD for predictor
...
Signed-off-by: James Almer <jamrial@gmail.com>
7 years ago
James Almer
98d7ad085e
avcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototype
...
Make dst be the first parameter and src const. It's more in line with the rest of the codebase.
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Martin Vignali
9b8c1224d7
libavcodec/exr : add X86 SIMD for reorder_pixels
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Martin Vignali
2c6179aa82
libavcodec/exr : simplify reorder_pixels
...
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)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Martin Vignali
73ae60d7df
libavcodec/exr : cosmetics variable name
...
rename tile variable to better follow ffmpeg coding style
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Martin Vignali
37f4d22075
libavcodec/exr : fix piz uncompress on big endian
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Martin Vignali
e46d637452
libavcodec/exr : fix float to uint16 conversion for negative float value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Muhammad Faiz
31f61b0d4f
avcodec: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Martin Vignali
8163314967
libavcodec/exr : fix scanline offset table recreation on big endian
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Dzung Hoang
68e3c9a3b6
avcodec/exr: add support for scanline file where offsets are set to zero
8 years ago
Martin Vignali
b4016ef31a
avcodec/exr: add support for uint32
8 years ago
Paul B Mahol
8a1759ad46
avcodec/exr: export writer info into frame metadata
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Paul B Mahol
546e29d1f5
avcodec/exr: make it aware of 2 additional compressions
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
8 years ago
Kevin Wheatley
09905c412d
libavcodec/exr: Fix blank output when data window != display window
...
looks like there is a bug in commit
1a08758e7c
relating to the handling of
ptr in decode_frame after decode_block is called, before this commit
ptr would have been incremented for each line in the data window, now
after the commit it is left at the start of the first included line
rather than the line after the data window then the code sets the
remaining lines to 0 and thus the whole image is over written.
Fix by adjusting ptr to the correct line after decode_block returns
Signed-off-by: Kevin Wheatley <kevin.j.wheatley@gmail.com>
8 years ago
Martin Vignali
5099c541bb
libavcodec/exr: add support for uint32 channel decoding with pxr24
...
Doesn't decode the uint32 layer, but decodes the half part of the file.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Alexandra Hájková
8df1ac6b78
exr: Convert to the new bitstream reader
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
8 years ago
Martin Vignali
52da3f6f70
libavcodec/exr : fix channel size calculation for uint32 channel
...
uint32 need 4 bytes not 1.
Fix decoding when there is half/float and uint32 channel.
This fixes crashes due to pointer corruption caused by invalid writes.
The problem was introduced in commit
03152e74df
.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Andreas Cadhalpun
ce3147eb19
exr: reindent after previous commit
...
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Andreas Cadhalpun
ffdc5d09e4
exr: fix out-of-bounds read
...
channel_index can be -1.
This problem was introduced in commit
2dd7b46132
.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
8 years ago
Michael Niedermayer
01aee8148d
avcodec/exr: Check tile positions
...
This also disabled the case of mixed x/ymin with tiles, the code
handles these cases inconsistent for the 2 coordinate axis and is
unlikely working correctly.
Fixes crash
Fixes: poc1.exr, poc2.exr
Found-by: Yaoguang Chen of Aliapy unLimit Security Team
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
f2b08a0702
libavcodec/exr : cosmetics, rename variable in b44_uncompress func
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Michael Niedermayer
b450b82514
avcodec/exr: Fix mixed declarations and statements
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
50747d6b1f
libavcodec/exr : indent gray support patch
...
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
7ebd13fc8b
libavodec/exr : add support for Y and YA file (ticket #5621 )
...
a gray channel in exr, is named Y
we admit that the file need to be interpreted as gray
only if no other channel match (except alpha)
to manage RGB and Y in the color conversion part of decode_block,
the color processing is now made with a for loop.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
d9e1e08133
libavcodec/exr : fix decoding piz float file.
...
fix ticket #5674
the size of data to process in piz_uncompress, is now calc
using the pixel type of each channel.
the data reorganization, alos take care about the size of
each channel
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
d96b8144c0
avcodec/exr: add missed hunks from previous exr commit
9 years ago
Martin Vignali
1e38791b7f
avcodec/exr: fix reading float channel when there is half and float channels in a file
9 years ago
Martin Vignali
9511a0895d
avcodec/exr: indent b44 uncompress function
9 years ago
Martin Vignali
bc1f3dfaa3
avcodec/exr: fix decoding of B44 exr when all channel doesnt have the same pixel type
9 years ago
Martin Vignali
df7cd4176a
avcodec/exr: move channel_line_size to thread data
...
In order to be used by b44 uncompress.
9 years ago
Martin Vignali
03152e74df
avcodec/exr: improve pxr24 uncompress
...
Fix pxr24 uncompress when all channels doesnt have the same pixel type.
The expected length after zip decoding, is now calculated channel by channel.
9 years ago
Martin Vignali
16107aeaf3
avcodec/exr: remove unneed scanline_size var
9 years ago
Martin Vignali
42297d8419
avcodec/exr: fix tile decoding when all channels doesnt have the same pixel type
...
Also simplify the tile code, sharing more code with the scanline mode.
9 years ago
Martin Vignali
d24eb9a3c6
avcodec/exr: indent the if (layer_match) part
9 years ago
Martin Vignali
753088a2a4
avcodec/exr: fix layer detection
...
Only test a channel if the layer name match.
Avoid to try to mix channel between the main layer (rgba layer),
and the layer request by the user.
9 years ago
Michael Niedermayer
df01a29c1b
avcodec/exr: Fix potential integer overflow
...
Fixes CID1361949
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Martin Vignali
3ce19882c5
libavcodec/exr: move xsize and ysize to thread data
...
Fixes slice threading.
Signed-off-by: James Almer <jamrial@gmail.com>
9 years ago
Michael Niedermayer
487c346d98
avcodec/exr: Fix "libavcodec/exr.c:1494:13: warning: ISO C90 forbids mixed declarations and code"
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Martin Vignali
ac07e57c39
avcodec/exr: fix huf_decode
9 years ago
Paul B Mahol
392b0a25c2
avcodec/exr: fix clearing end of bitmap
...
Inspired by patch from Martin Vignali.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Martin Vignali
2dd7b46132
avcodec/exr: fix channel detection
9 years ago
Martin Vignali
6d7f5667a0
avcodec/exr: enable mipmap, ripmap decoding
9 years ago
Martin Vignali
832861535a
libavcodec/exr : add support for compression in tile
9 years ago
Martin Vignali
062ad63064
libavcodec/exr : cosmetic change
9 years ago
Martin Vignali
25a01c52b8
libavcodec/exr: add tile support
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Martin Vignali
d2ed3391fb
libavcodec/exr: fix PRX24 Float decompression
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
9 years ago
Martin Vignali
495f08edb4
avcodec/exr: add support for B44 and B44A compression
9 years ago
Carl Eugen Hoyos
31f5fa21b0
lavc/exr: Move setting SAR down.
...
Fixes a theoretical issue if the resolution attribute is written
behind the aspect attribute.
9 years ago
Diego Biurrun
69a68593ce
Remove stray line breaks from avpriv_{report_missing_feature|request_samples}
9 years ago