summaryrefslogtreecommitdiffstats
path: root/libavcodec/targaenc.c
Commit message (Collapse)AuthorAgeFilesLines
* targaenc: Move size check to initialization functionVittorio Giovara2016-06-291-4/+5
| | | | | In case of bogus input, fail early at codec initialization, rather than at the encode function.
* lavc: Deprecate coder_type and its symbolsVittorio Giovara2015-12-071-1/+33
| | | | | | | | | | Most option values are simply unused or ignored and in practice the majory of codecs only need to check whether to enable rle or not. Add appropriate codec private options which better expose the allowed features. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Replace any remaining avpicture function with imgutilsVittorio Giovara2015-10-211-1/+3
| | | | | | avpicture_get_size() -> av_image_get_buffer_size() 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>
* targaenc: use the AVFrame API properly.Anton Khirnov2013-11-161-10/+12
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-031-1/+1
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-8/+8
|
* Don't include common.h from avutil.hMartin Storsjö2012-08-151-0/+3
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-061-6/+9
| | | | | | | 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>
* targaenc: switch to encode2().Anton Khirnov2012-02-201-26/+30
|
* targaenc: don't modify input frame.Anton Khirnov2012-02-201-3/+1
| | | | Set the pict_type/key_frame properties on the coded picture.
* Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().Stefano Sabatini2011-06-031-1/+2
| | | | | This fixes warnings about avcodec_get_pix_fmt_name() being deprecated. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* 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>
* Add support for PIX_FMT_RGBA in the targa encoder.Stefano Sabatini2010-10-131-3/+7
| | | | | | Patch sponsored by Animoto. Originally committed as revision 25470 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use named constants defined in targa.h.Stefano Sabatini2010-10-131-3/+3
| | | | Originally committed as revision 25465 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Create a targa.h file to contain common definitions for targa encoderStefano Sabatini2010-10-131-0/+1
| | | | | | and decoder. Originally committed as revision 25464 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make the targa encoder return sane error values rather than -1.Stefano Sabatini2010-10-121-3/+3
| | | | Originally committed as revision 25455 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Targa encoder: log error message in case the pixel format in input isStefano Sabatini2010-10-121-0/+2
| | | | | | not supported. Originally committed as revision 25454 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
* targeenc: fix rgb555 encoding on big endian systems.Alexis Ballier2010-03-081-2/+2
| | | | | | Patch by Alexis Ballier gmail_address(name, surname) Originally committed as revision 22320 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation after last commit.Benoit Fouet2009-10-011-1/+1
| | | | Originally committed as revision 20121 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add support for TARGA images without RLE compression.Anne-Laure de Smit2009-10-011-1/+2
| | | | | | Patch by Anne-Laure de Smit: gmail_address(annelaure, desmit) Originally committed as revision 20120 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
* Fix build: Add intreadwrite.h and bswap.h #includes where necessary.Diego Biurrun2009-01-111-0/+2
| | | | Originally committed as revision 16556 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
* set coded_frameMichael Niedermayer2008-05-281-1/+11
| | | | Originally committed as revision 13492 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace some occurrences of -1 with PIX_FMT_NONE.Carl Eugen Hoyos2008-05-111-1/+1
| | | | | | Fixes icc warning #188: enumerated type mixed with another type Originally committed as revision 13130 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prevent targaenc.c from outputting trash byte.Ramiro Polla2008-05-041-1/+1
| | | | Originally committed as revision 13059 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-291-0/+1
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-1/+1
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* license header consistency cosmeticsDiego Biurrun2007-07-051-1/+0
| | | | Originally committed as revision 9484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Changed the rle encoder a little and made it more universal.Xiaohui Sun2007-04-031-1/+1
| | | | | | | | Not only the repeated byte is calculated as (count ^ xor) + add but also the raw encoding lenth byte is calculated as that too patch by Xiaohui Sun sunxiaohui dsp ac cn Originally committed as revision 8602 to svn://svn.ffmpeg.org/ffmpeg/trunk
* generic rle encoder by Bartlomiej Wolowiec b.wolowiec students mimuw edu plMichael Niedermayer2007-04-031-57/+8
| | | | Originally committed as revision 8598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add RLE encoding support, patch by Bobby Bingham, uhmmmm gmail com.Bobby Bingham2007-03-171-4/+95
| | | | Originally committed as revision 8434 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move the encoding of the image data to its own function.Bobby Bingham2007-03-171-12/+19
| | | | | | patch by Bobby Bingham, uhmmmm gmail com Originally committed as revision 8430 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add 15 bit support, patch by Bobby Bingham, uhmmmm gmail com.Bobby Bingham2007-03-171-2/+7
| | | | Originally committed as revision 8429 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Targa (.tga) encoder,Bobby Bingham2007-03-151-0/+96
patch by Bobby Bingham % uhmmmm A gmail P com % Only handles 24-bit BGR and 8-bit grayscale, no RLE at the moment either. Original thread: Date: Mar 11, 2007 7:58 PM Subject: [Ffmpeg-devel] [PATCH] Targa encoder Originally committed as revision 8411 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud