summaryrefslogtreecommitdiffstats
path: root/libavcodec/exr.c
Commit message (Collapse)AuthorAgeFilesLines
* libavcodec/exr : add x86 SIMD for predictorMartin Vignali2017-10-011-14/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/exrdsp: improve the ExrDSPContext->reorder_pixels prototypeJames Almer2017-09-171-2/+2
| | | | | | 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>
* libavcodec/exr : add X86 SIMD for reorder_pixelsMartin Vignali2017-09-171-23/+15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* libavcodec/exr : simplify reorder_pixelsMartin Vignali2017-05-141-14/+11
| | | | | | | | | | 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>
* libavcodec/exr : cosmetics variable nameMartin Vignali2017-05-121-10/+10
| | | | | | rename tile variable to better follow ffmpeg coding style Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/exr : fix piz uncompress on big endianMartin Vignali2017-05-011-5/+23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/exr : fix float to uint16 conversion for negative float valueMartin Vignali2017-04-271-2/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: do not use AVFrame accessorMuhammad Faiz2017-04-231-1/+1
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* libavcodec/exr : fix scanline offset table recreation on big endianMartin Vignali2017-04-031-9/+14
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/exr: add support for scanline file where offsets are set to zeroDzung Hoang2017-04-011-1/+18
|
* avcodec/exr: add support for uint32Martin Vignali2017-03-291-5/+12
|
* avcodec/exr: export writer info into frame metadataPaul B Mahol2017-01-191-2/+13
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/exr: make it aware of 2 additional compressionsPaul B Mahol2017-01-191-0/+2
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* libavcodec/exr: Fix blank output when data window != display windowKevin Wheatley2017-01-061-0/+1
| | | | | | | | | | | | | | looks like there is a bug in commit 1a08758e7c4e14a9ea8d2fef6c33ad411b2d3c40 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>
* libavcodec/exr: add support for uint32 channel decoding with pxr24Martin Vignali2016-11-251-0/+16
| | | | | | Doesn't decode the uint32 layer, but decodes the half part of the file. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* libavcodec/exr : fix channel size calculation for uint32 channelMartin Vignali2016-11-161-1/+5
| | | | | | | | | | | | 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 03152e74dfdc7f438cb4a10402c4de744e807e22. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* exr: reindent after previous commitAndreas Cadhalpun2016-11-161-8/+8
| | | | Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* exr: fix out-of-bounds readAndreas Cadhalpun2016-11-161-3/+1
| | | | | | | | | | channel_index can be -1. This problem was introduced in commit 2dd7b46132e2801ef34fe1b5c27e0113cdcfa2f9. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/exr: Check tile positionsMichael Niedermayer2016-08-251-2/+12
| | | | | | | | | | | | 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>
* libavcodec/exr : cosmetics, rename variable in b44_uncompress funcMartin Vignali2016-07-131-33/+33
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/exr: Fix mixed declarations and statementsMichael Niedermayer2016-07-071-2/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/exr : indent gray support patchMartin Vignali2016-07-061-19/+20
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavodec/exr : add support for Y and YA file (ticket #5621)Martin Vignali2016-07-061-42/+61
| | | | | | | | | | | | 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>
* libavcodec/exr : fix decoding piz float file.Martin Vignali2016-06-301-10/+27
| | | | | | | | | | | | | 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>
* avcodec/exr: add missed hunks from previous exr commitMartin Vignali2016-06-251-0/+7
|
* avcodec/exr: fix reading float channel when there is half and float channels ↵Martin Vignali2016-06-251-14/+9
| | | | in a file
* Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-5/+5
|\ | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-5/+5
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | avcodec/exr: indent b44 uncompress functionMartin Vignali2016-06-061-26/+26
| |
* | avcodec/exr: fix decoding of B44 exr when all channel doesnt have the same ↵Martin Vignali2016-06-061-1/+17
| | | | | | | | pixel type
* | avcodec/exr: move channel_line_size to thread dataMartin Vignali2016-06-061-9/+10
| | | | | | | | In order to be used by b44 uncompress.
* | avcodec/exr: improve pxr24 uncompressMartin Vignali2016-06-061-5/+10
| | | | | | | | | | Fix pxr24 uncompress when all channels doesnt have the same pixel type. The expected length after zip decoding, is now calculated channel by channel.
* | avcodec/exr: remove unneed scanline_size varMartin Vignali2016-06-061-3/+0
| |
* | avcodec/exr: fix tile decoding when all channels doesnt have the same pixel typeMartin Vignali2016-06-061-46/+19
| | | | | | | | Also simplify the tile code, sharing more code with the scanline mode.
* | avcodec/exr: indent the if (layer_match) partMartin Vignali2016-06-061-17/+17
| |
* | avcodec/exr: fix layer detectionMartin Vignali2016-06-061-1/+10
| | | | | | | | | | | | 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.
* | avcodec/exr: Fix potential integer overflowMichael Niedermayer2016-05-191-1/+1
| | | | | | | | | | | | Fixes CID1361949 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavcodec/exr: move xsize and ysize to thread dataMartin Vignali2016-04-251-41/+43
| | | | | | | | | | | | Fixes slice threading. Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/exr: Fix "libavcodec/exr.c:1494:13: warning: ISO C90 forbids mixed ↵Michael Niedermayer2016-04-171-1/+3
| | | | | | | | | | | | declarations and code" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/exr: fix huf_decodeMartin Vignali2016-04-121-1/+2
| |
* | avcodec/exr: fix clearing end of bitmapPaul B Mahol2016-04-121-1/+1
| | | | | | | | | | | | Inspired by patch from Martin Vignali. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/exr: fix channel detectionMartin Vignali2016-04-101-8/+10
| |
* | avcodec/exr: enable mipmap, ripmap decodingMartin Vignali2016-04-061-5/+7
| |
* | libavcodec/exr : add support for compression in tileMartin Vignali2016-04-041-22/+17
| |
* | libavcodec/exr : cosmetic changeMartin Vignali2016-04-041-2/+1
| |
* | libavcodec/exr: add tile supportMartin Vignali2016-04-031-54/+210
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | libavcodec/exr: fix PRX24 Float decompressionMartin Vignali2016-04-031-3/+12
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/exr: add support for B44 and B44A compressionMartin Vignali2016-03-261-0/+119
| |
* | lavc/exr: Move setting SAR down.Carl Eugen Hoyos2016-01-301-3/+4
| | | | | | | | | | Fixes a theoretical issue if the resolution attribute is written behind the aspect attribute.
* | Merge commit '69a68593ce5684409c3c4dd9a901bfd8b16925b1'Hendrik Leppkes2016-01-021-2/+1
|\ \ | |/ | | | | | | | | | | * commit '69a68593ce5684409c3c4dd9a901bfd8b16925b1': Remove stray line breaks from avpriv_{report_missing_feature|request_samples} Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
OpenPOWER on IntegriCloud