summaryrefslogtreecommitdiffstats
path: root/libavcodec/zmbvenc.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-8/+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>
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-151-3/+3
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* zmbvenc: use the AVFrame API properly.Anton Khirnov2013-11-161-24/+22
|
* 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-1/+1
|
* 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: Align codec declarationsMartin Storsjö2012-04-061-2/+2
| | | | | | | 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>
* Remove unnecessary AVFrame pointer casts.Diego Biurrun2012-03-011-1/+1
|
* zmbvenc: switch to encode2().Anton Khirnov2012-02-201-15/+26
|
* zmbvenc: move header writing to the end of encode_frame().Anton Khirnov2012-02-201-11/+13
| | | | | | This makes switching to encode2() simpler, because it allows us to know exactly how large should the output buffer be before we start writing into it.
* zmbvenc: Employ more meaningful return values.Paul B Mahol2012-02-011-4/+4
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: drop some pointless parenthesesDiego Biurrun2012-01-071-3/+3
|
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-7/+7
| | | | It's more readable and less prone to breakage.
* Remove unused variablesMans Rullgard2011-06-021-2/+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
* cosmetics: break some long lines and insert few spacesKostya Shishkov2009-11-201-6/+7
| | | | Originally committed as revision 20559 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l trocadero: ZMBV encoder used zero score to detect whether block should beKostya Shishkov2009-11-201-10/+14
| | | | | | | XORed with source one or not, which went wrong with new block comparing code. So track this condition explicitly. Originally committed as revision 20558 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove unnecessary calls to avcodec_check_dimensions, the check is alreadyReimar Döffinger2009-10-131-4/+0
| | | | | | done at a higher level. Originally committed as revision 20229 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
* Move ALIGN macro to libavutil/common.h and use it in various placesDavid Conrad2009-05-221-1/+1
| | | | Originally committed as revision 18898 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dead nested assignment found by CSABenjamin Larsson2009-05-101-2/+1
| | | | Originally committed as revision 18784 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless assignment during initialization for some decodersKostya Shishkov2009-04-241-1/+0
| | | | Originally committed as revision 18680 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
* Fix build: Add intreadwrite.h and bswap.h #includes where necessary.Diego Biurrun2009-01-111-0/+1
| | | | Originally committed as revision 16556 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ZMBV encoder forgot to fill coded frame pointerKostya Shishkov2008-09-181-0/+2
| | | | Originally committed as revision 15359 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
* Avoid using log2() freebsd does not support it.Michael Niedermayer2008-05-161-1/+1
| | | | Originally committed as revision 13184 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
* Little fix for block sizes <16Michael Niedermayer2008-05-091-1/+1
| | | | Originally committed as revision 13095 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Improve motion estimation metric.Michael Niedermayer2008-05-091-1/+12
| | | | | | Patch by Michael Niedermayer Originally committed as revision 13090 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-281-0/+1
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13010 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-2/+2
| | | | 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
* Use AV_xx throughout libavcodecRamiro Polla2007-06-021-6/+2
| | | | Originally committed as revision 9169 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove redundant #inclusion of common.h, avcodec.h already #includes it.Diego Biurrun2007-05-101-1/+0
| | | | Originally committed as revision 8967 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Get rid of unnecessary pointer casts.Nicholas Tung2007-04-081-3/+3
| | | | | | patch by Nicholas Tung, ntung ntung com Originally committed as revision 8687 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Correctly ME border blocksKostya Shishkov2007-03-111-5/+7
| | | | Originally committed as revision 8322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless #ifdef CONFIG_ZLIBMåns Rullgård2007-01-211-2/+0
| | | | Originally committed as revision 7624 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixed a typo, cosmetics.Benjamin Larsson2007-01-211-1/+1
| | | | Originally committed as revision 7598 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Deobfuscate expressionKostya Shishkov2006-12-081-1/+1
| | | | Originally committed as revision 7260 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1e6l forgot to add zmbvenc.cKostya Shishkov2006-12-081-0/+328
Originally committed as revision 7258 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud