summaryrefslogtreecommitdiff
path: root/libavcodec/psd.c
Commit message (Collapse)AuthorAge
* avcodec/codec_internal: Use union for FFCodec decode/encode callbacksAndreas Rheinhardt2022-04-05
| | | | | | | | | | | This is possible, because every given FFCodec has to implement exactly one of these. Doing so decreases sizeof(FFCodec) and therefore decreases the size of the binary. Notice that in case of position-independent code the decrease is in .data.rel.ro, so that this translates to decreased memory consumption. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/codec_internal: Make FFCodec.decode use AVFrame*Andreas Rheinhardt2022-04-05
| | | | | | | | This increases type-safety by avoiding conversions from/through void*. It also avoids the boilerplate "AVFrame *frame = data;" line for non-subtitle decoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/codec_internal: Add FFCodec, hide internal part of AVCodecAndreas Rheinhardt2022-03-21
| | | | | | | | | | | | | | | | Up until now, codec.h contains both public and private parts of AVCodec. This exposes the internals of AVCodec to users and leads them into the temptation of actually using them and forces us to forward-declare structures and types that users can't use at all. This commit changes this by adding a new structure FFCodec to codec_internal.h that extends AVCodec, i.e. contains the public AVCodec as first member; the private fields of AVCodec are moved to this structure, leaving codec.h clean. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec: Constify AVCodecsAndreas Rheinhardt2021-04-27
| | | | | | | | | | Given that the AVCodec.next pointer has now been removed, most of the AVCodecs are not modified at all any more and can therefore be made const (as this patch does); the only exceptions are the very few codecs for external libraries that have a init_static_data callback. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/psd: remove unneeded codeSteven Liu2019-10-22
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* lavc/psd: Support CMYK images.Carl Eugen Hoyos2019-01-12
| | | | | | Based on a05635e by Michael Niedermayer. Fixes ticket #6797.
* avcodec/psd : add support for gray floatMartin Vignali2018-08-22
|
* libavcodec/psd : add test for channel depth/channel count in bitmap modeMartin Vignali2017-01-14
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/psd: fix ugly typoPaul B Mahol2017-01-11
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* libavcodec/psd : add support for psd bitmap modeMartin Vignali2017-01-11
| | | | | | Fixes ticket #6044 Based on patch by Carl Eugen Hoyos
* lavc/psd: Interpret DUOTONE as GRAYSCALE.Carl Eugen Hoyos2017-01-11
| | | | | | | | This is what gimp, ImageMagick and FreeImage do and what the Adobe Photoshop file format specification suggests. Fixes a sample from ticket #6045. Reviewed-by: Martin Vignali
* lavc/psd: Support indexed files.Carl Eugen Hoyos2017-01-02
| | | | Fixes ticket #6045.
* lavc/psd: Remove an uninitialized variable.Carl Eugen Hoyos2016-12-30
|
* libavcodec : add decoder for Photoshop PSD image filesMartin Vignali2016-12-14
Decode the Image Data Section (which contains merged pictures). Support RGB/A and Grayscale/A in 8bits and 16 bits per channel. Support uncompress and rle decompression in Image Data Section. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>