summaryrefslogtreecommitdiffstats
path: root/libavcodec/tiffenc.c
Commit message (Collapse)AuthorAgeFilesLines
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-271-1/+1
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-271-1/+1
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Deprecate avctx.coded_frameVittorio Giovara2015-07-201-0/+4
| | | | | | | | | | | | | | | | | The rationale is that coded_frame was only used to communicate key_frame, pict_type and quality to the caller, as well as a few other random fields, in a non predictable, let alone consistent way. There was agreement that there was no use case for coded_frame, as it is a full-sized AVFrame container used for just 2-3 int-sized properties, which shouldn't even belong into the AVCodecContext in the first place. The appropriate AVPacket flag can be used instead of key_frame, while quality is exported with the new AVPacketSideData quality factor. There is no replacement for the other fields as they were unreliable, mishandled or just not used at all. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Gather all coded_frame allocations and free functions to a single placeVittorio Giovara2015-07-201-11/+0
| | | | | | | | | | | | | | Allocating coded_frame is what most encoders do anyway, so it makes sense to always allocate and free it in a single place. Moreover a lot of encoders freed the frame with av_freep() instead of the correct API av_frame_free(). This bring uniformity to encoder behaviour and prevents applications from erroneusly accessing this field when not allocated. Additionally this helps isolating encoders that export information with coded_frame, and heavily simplifies its deprecation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* tiff: Return more meaningful error codesHimangi Saraogi2015-03-301-5/+6
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tiff: support encoding and decoding 64bit imagesCarl Eugen Hoyos2014-12-181-1/+2
|
* tiff: set the correct return value when check_size() failsVittorio Giovara2014-12-151-1/+3
| | | | Only one instance affected and solved as other occurences.
* tiff: Check the check_size() return value and forward itLuca Barbato2014-12-151-23/+40
| | | | | | | | | | Also use the same type for add_entry and check_size. Bug-Id: CID 700699 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Vittorio Giovara <vittorio.giovarao@gmail.com>
* tiffenc: initialize return valueVittorio Giovara2014-11-241-1/+1
| | | | | | | | | 'ret' can only be used without initialization if s->height <= 0, which can only happen if avctx->height <= 0, which is validated elsewhere. Doesn't hurt to still initialize it though. CC: libav-stable@libav.org Bug-Id: CID 732296
* tiff: Use av_mallocz_arrayLuca Barbato2014-11-111-2/+2
| | | | CC: libav-stable@libav.org
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tiffenc: fix packet size calculationTristan Matthews2014-06-171-3/+5
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tiff: use a better name and enum values for PhotometricInterpretationJustin Ruggles2014-04-121-10/+10
| | | | Also add additional known values and log as missing features.
* tiff: Support rgba encodingCarl Eugen Hoyos2014-03-161-0/+2
|
* tiffenc: use the AVFrame API properly.Anton Khirnov2013-11-161-11/+25
|
* tiff: K&R formatting cosmeticsDiego Biurrun2013-06-021-154/+154
|
* pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*Anton Khirnov2013-05-151-2/+2
|
* pixdesc: add av_pix_fmt_get_chroma_sub_sampleLuca Barbato2012-11-131-2/+2
| | | | Deprecate avcodec_get_chroma_sub_sample.
* lavc: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-121-1/+1
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-20/+20
|
* tiffenc: Check av_malloc() results.Alex Converse2012-10-011-1/+15
|
* tiffenc: Simplify pixel format setup using AVPixFmtDescriptor.Alex Converse2012-10-011-23/+17
|
* tiffenc: Add support for little endian RGB48 and GRAY16Alex Converse2012-09-191-3/+19
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-041-1/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö2012-09-041-4/+4
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* cosmetics: Clean up the tiffenc pix_fmts declaration to match the style of ↵Martin Storsjö2012-04-071-6/+6
| | | | | | others Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-4/+4
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Consistently place static, inline and av_cold attributes/keywords.Diego Biurrun2012-04-041-1/+1
|
* Remove unnecessary AVFrame pointer casts.Diego Biurrun2012-03-011-1/+1
|
* tiffenc: switch to encode2().Anton Khirnov2012-02-231-13/+22
|
* tiffenc: properly forward error codes in encode_frame().Anton Khirnov2012-02-231-12/+12
|
* lavc: remove disabled FF_API_TIFFENC_COMPLEVEL cruft.Anton Khirnov2012-01-271-16/+0
|
* tiffenc: deprecate using compression_levelAnton Khirnov2011-11-241-0/+6
|
* tiffenc: add a private option for selecting compression algorithmAnton Khirnov2011-11-231-1/+25
|
* tiffenc: initialize forgotten avctx.Jean First2011-10-121-0/+1
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-10/+5
| | | | It's more readable and less prone to breakage.
* doxygen: consistently place brief descriptionDiego Biurrun2011-07-141-1/+2
|
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-021-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-261-1/+1
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use lzw compression in gif encoderBaptiste Coudurier2009-12-031-2/+4
| | | | Originally committed as revision 20723 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Mark all pix_fmts and supported_framerates compound literals as const.Reimar Döffinger2009-09-061-1/+1
| | | | | | Makes no difference for gcc but at least icc can put them in .rodata then. Originally committed as revision 19789 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace WORDS_BIGENDIAN with HAVE_BIGENDIANMåns Rullgård2009-07-261-1/+1
| | | | Originally committed as revision 19508 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-131-4/+4
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini2008-06-121-1/+1
| | | | Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud