summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo_enc.c
Commit message (Collapse)AuthorAgeFilesLines
* mpegvideo_enc: add intra_penalty option for p framesRamiro Polla2019-10-241-3/+3
| | | | | | | | | | | | | | | This option allows more control over the use of intra macroblocks in predictive frames. By using '-intra_penalty max', intra macroblocks are never used in predictive frames. It is useful for glitch artists to generate input material. This option allows them to split and merge two video files while maintaining fluid motion from the second video without having intra macroblocks restoring chunks of the first video. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegvideo_enc: add logging context to logSteven Liu2019-10-081-1/+1
| | | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avcodec/mpegvideo_enc: Use av_assert1() instead of assert()Michael Niedermayer2019-02-171-4/+4
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpegvideo_enc: Use av_assert1() instead of assert() in ↵Michael Niedermayer2019-02-071-2/+2
| | | | | | merge_context_after_encode() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* mpegvideo: remove support for libxvid's RC systemRostislav Pehlivanov2018-05-051-23/+1
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/me_cmp: remove ff_me_cmp_init_static()Muhammad Faiz2018-02-051-1/+1
| | | | | | | Precalculate and constify ff_square_tab. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* Merge commit '94eed68ace9f2416af8457fcbf142b175928c06b'James Almer2017-10-231-59/+0
|\ | | | | | | | | | | | | * commit '94eed68ace9f2416af8457fcbf142b175928c06b': lavc: Drop deprecated options moved to private contexts Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated options moved to private contextsVittorio Giovara2017-03-231-48/+0
| | | | | | | | Deprecated in 10/2014 and 07/2015.
* | Merge commit 'bb45d11282d93af0e8d4c8fd6bc6405f7439a940'James Almer2017-10-231-14/+0
|\ \ | |/ | | | | | | | | | | * commit 'bb45d11282d93af0e8d4c8fd6bc6405f7439a940': lavc: Drop deprecated codec flags Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated codec flagsVittorio Giovara2017-03-231-14/+0
| | | | | | | | Deprecated between 04/2014 - 05/2015.
* | Merge commit '72dc7ddd18fe54ee68aec71590c3202ad009a8fc'James Almer2017-10-231-7/+0
|\ \ | |/ | | | | | | | | | | * commit '72dc7ddd18fe54ee68aec71590c3202ad009a8fc': lavc: Drop deprecated error rate option Merged-by: James Almer <jamrial@gmail.com>
| * lavc: Drop deprecated error rate optionVittorio Giovara2017-03-231-7/+0
| | | | | | | | Deprecated in 10/2013.
| * Drop libxvid rate control support for mpegvideo encodingDiego Biurrun2016-12-111-30/+0
| | | | | | | | The feature has outlived is usefulness and complicates the code.
* | Remove some unneeded casts of bit_rate.Carl Eugen Hoyos2017-09-221-1/+1
| |
* | avcodec/mpegvideo_enc: fix mixed declarations and code warningJames Almer2017-07-251-1/+1
| |
* | avcodec/mpegvideo_enc: Use intra/inter scantable matching mb type in ↵Michael Niedermayer2017-07-241-5/+15
| | | | | | | | | | | | quantization Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec: Rename ff_mpv_decode_mb() to ff_mpv_reconstruct_mbMichael Niedermayer2017-06-191-3/+3
| | | | | | | | | | | | The new name more accuratly describes what the function does Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/mpegvideo_enc: allow low_delay for non MPEG2 codecs depending on ↵Stefano Sabatini2017-06-061-2/+4
| | | | | | | | | | | | strict_std_compliance Forcing low_delay can be useful, even if not officially supported.
* | mpegvideo_enc: disable optimized huffman coding with AMV or slice threadsRostislav Pehlivanov2017-04-091-0/+3
| | | | | | | | | | | | Doesn't work yet with slice threading and won't work with AMV. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Revert "mjpegenc: disable huffman coding with AMV"Michael Niedermayer2017-04-091-3/+0
| | | | | | | | | | | | This was the wrong patch This reverts commit 7f9b492d544ccef36f1d5d97a76d22502623d3c8.
* | mjpegenc: disable huffman coding with AMVRostislav Pehlivanov2017-04-091-0/+3
| | | | | | | | | | | | Isn't supported. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | Merge commit '68811a41c70f019bde6df2a4f289674228c48958'Clément Bœsch2017-03-211-39/+49
|\ \ | |/ | | | | | | | | | | * commit '68811a41c70f019bde6df2a4f289674228c48958': mpegvideo_enc: use the new encoding API for b_strategy=2 Merged-by: Clément Bœsch <u@pkh.me>
| * mpegvideo_enc: use the new encoding API for b_strategy=2Anton Khirnov2016-09-281-39/+49
| |
* | Merge commit 'f03f78bc1c99b1e29624418e2f7315b8a47981e9'Clément Bœsch2017-03-211-0/+18
|\ \ | |/ | | | | | | | | | | * commit 'f03f78bc1c99b1e29624418e2f7315b8a47981e9': mpegvideo_enc: handle encoding errors with b_strategy=2 Merged-by: Clément Bœsch <u@pkh.me>
| * mpegvideo_enc: handle encoding errors with b_strategy=2Anton Khirnov2016-09-281-0/+18
| |
* | Merge commit '6f733ecab6faff2a16534f2ce7d2ffd41c07846b'Clément Bœsch2017-03-211-1/+1
|\ \ | |/ | | | | | | | | | | * commit '6f733ecab6faff2a16534f2ce7d2ffd41c07846b': mpegvideo_enc: add const to the AVCodec instance Merged-by: Clément Bœsch <u@pkh.me>
| * mpegvideo_enc: add const to the AVCodec instanceAnton Khirnov2016-09-281-1/+1
| |
* | avcodec/mjpegenc: Bypass the 2 pass encoding when optimal tables are not ↵Michael Niedermayer2017-02-101-2/+3
| | | | | | | | | | | | | | | | | | | | requested This limits the bugs, speedloss and extra memory allocation to the case when optimal tables are needed. Fixes regressions with slice multi-threading Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Implement optimal huffman encoding for (M)JPEG.Jerry Jiang2017-02-081-4/+13
| | | | | | | | | | | | | | > seems to break > make fate-vsynth1-mjpeg-444 Fixed.
* | Merge commit 'd639dcdae022130078c9c84b7b691c5e9694786c'Clément Bœsch2017-02-011-1/+36
|\ \ | |/ | | | | | | | | | | * commit 'd639dcdae022130078c9c84b7b691c5e9694786c': ratecontrol: Move Xvid-related functions to the place they are actually used Merged-by: Clément Bœsch <u@pkh.me>
| * ratecontrol: Move Xvid-related functions to the place they are actually usedVittorio Giovara2016-07-201-1/+32
| | | | | | | | This will simplify the de-MpegEncContextualization.
| * ratecontrol: Move mpegenc-only function where it is usedVittorio Giovara2016-07-201-1/+23
| |
* | avcodec/mpegvideo: Fix edge emu buffer overlap with interlaced mpeg4Michael Niedermayer2016-11-171-1/+1
| | | | | | | | | | | | | | Fixes Ticket5936 Regression since c5fc8ae12622a507d7b9ee30ddcd3734e6de6b1d Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mpegvideo_enc: Add missing emms_c() to clear MMX state after SIMD useMichael Niedermayer2016-10-221-0/+1
| | | | | | | | | | | | Fixes undefined behavior due to calling libc allocation with unclean FPU state Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mpegvideo_enc: Clear mmx state in ff_mpv_reallocate_putbitbuffer()Michael Niedermayer2016-10-211-0/+2
| | | | | | | | | | | | | | This function must be called from the mb or slice encoding loop and MMX state may not be clean there Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/mpegvideo_enc: fix memory leakTimo Rothenpieler2016-09-261-0/+1
| | | | | | | | | | | | | | When the input frames contain side data, it will accumulate endlessly in the coded frame, as av_frame_copy_props will append any new side data. Fixes ticket #5799.
* | Merge commit 'b7e64fba7f37cc0399beae844f0a5dbef9219376'Clément Bœsch2016-06-211-2/+2
|\ \ | |/ | | | | | | | | | | * commit 'b7e64fba7f37cc0399beae844f0a5dbef9219376': Reduce the scope of some variables Merged-by: Clément Bœsch <u@pkh.me>
| * Reduce the scope of some variablesDiego Biurrun2016-05-111-2/+2
| | | | | | | | | | This avoids unused variable warnings after the next version bump. Also drop a trace level av_log() call that is in the way.
* | Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-18/+19
|\ \ | |/ | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-18/+19
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'c80344d0101558098a6cd2ed5082ff5fda7ca18b'Derek Buitenhuis2016-04-111-2/+1
|\ \ | |/ | | | | | | | | | | * commit 'c80344d0101558098a6cd2ed5082ff5fda7ca18b': mpegvideo_enc: use avcodec_free_context() instead of av_free() Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * mpegvideo_enc: use avcodec_free_context() instead of av_free()Anton Khirnov2016-02-261-2/+1
| |
* | Merge commit '0e9c4fe254073b209970df3e3cb84531bc388e99'Derek Buitenhuis2016-02-031-1/+4
|\ \ | |/ | | | | | | | | | | * commit '0e9c4fe254073b209970df3e3cb84531bc388e99': lavc: Move pre_me to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move pre_me to codec private optionsVittorio Giovara2016-01-211-1/+4
| | | | | | | | | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '5b6f42da98c26a8aee8d2c2edfcbd0633ad1c607'Derek Buitenhuis2016-02-031-2/+4
|\ \ | |/ | | | | | | | | | | * commit '5b6f42da98c26a8aee8d2c2edfcbd0633ad1c607': lavc: Move me_penalty_compensation to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move me_penalty_compensation to codec private optionsVittorio Giovara2016-01-211-2/+4
| | | | | | | | | | | | | | This option is only used by mpegvideoenc. It is a very codec-specific options, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '2862b63783b5556f7f3fb2d097629bc6879f833a'Derek Buitenhuis2016-02-031-1/+4
|\ \ | |/ | | | | | | | | | | * commit '2862b63783b5556f7f3fb2d097629bc6879f833a': lavc: Move prediction_method to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move prediction_method to codec private optionsVittorio Giovara2016-01-211-1/+4
| | | | | | | | | | | | | | | | | | | | This options is only used by huffyuv, ffvhuv, jpegls, mjpeg, mpegvideoenc, png, utvideo. It is a very codec-specific options, so deprecate the global variant. Set proper limits to the maximum allowed values, and update utvideoenc tests to use the new option name. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '936f0d98f864f9f6bb4f9e5458b78537e146bacd'Derek Buitenhuis2016-01-311-2/+12
|\ \ | |/ | | | | | | | | | | * commit '936f0d98f864f9f6bb4f9e5458b78537e146bacd': lavc: Move rtp_payload_size to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move rtp_payload_size to codec private optionsVittorio Giovara2016-01-211-2/+11
| | | | | | | | | | | | | | | | | | | | This option is only used by mpegvideoenc and openh264. It is a very codec-specific option, so deprecate the global variant. The openh264 option is dropped altogether since it is just a fallback for -max_nal_size anyway. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
OpenPOWER on IntegriCloud