summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo_enc.c
Commit message (Collapse)AuthorAge
...
* rv10: check size of s->mb_width * s->mb_heightAndreas Cadhalpun2015-03-05
| | | | | | | If it doesn't fit into 12 bits it triggers an assertion. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo_enc: initialize the encoding contextVittorio Giovara2015-01-29
| | | | | | | | This prevents several uninitialized variable uses that take place towards the end of encoding. CC: libav-stable@libav.org Bug-Id: CID 700760
* mpegvideo_enc: Draw edges on input for non-multiple of 16 resolutionsMichael Niedermayer2015-01-23
| | | | | | | | | | | | This improves motion estimation and avoids using uninitialized data for resolutions that aren't a multiple of 16. Prior to d2a25c40, the edges used to be initialized so that encoding was deterministic, but after that commit it started using uninitialized data (for non multiple of 16 resolutions). CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* msmpeg4: check memory allocations and propagate errorsVittorio Giovara2015-01-06
| | | | Bug-Id: CID 1257781
* h261enc: Disallow sliced encodingMartin Storsjö2014-12-18
| | | | | | | | | | | This avoids trying to do sliced encoding, even if a slice/packet size is requested (via the -ps option or the rtp_payload_size field), since the encoder currently doesn't support it (or at least our decoder can't decode it, even if the h261_encode_gob_header function is hooked up to be called from the slicing part in mpegvideo_enc.c). Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo_enc: factor out denominator and explicitly cast operandsVittorio Giovara2014-11-06
| | | | | CC: libav-stable@libav.org Bug-Id: CID 608053
* mpegvideo_enc: rework direct mode checkVittorio Giovara2014-11-06
| | | | | | | Remove stray semicolon and share codepaths. CC: libav-stable@libav.org Bug-Id: CID 991857
* lavc: make lmax/lmin into private options of mpegvideo encodersAnton Khirnov2014-10-18
|
* lavc: make border_masking into private options of mpegvideo encodersAnton Khirnov2014-10-18
|
* lavc: deprecate unused mb_threshold fieldAnton Khirnov2014-10-18
|
* lavc: make rc_buffer_aggressivity/rc_initial_cplx into private options of ↵Anton Khirnov2014-10-18
| | | | mpegvideo encoders
* lavc: make rc_eq into private options of mpegvideo encodersAnton Khirnov2014-10-18
|
* lavc: make rc_qmod_* into private options of mpegvideo encodersAnton Khirnov2014-10-18
|
* lavc: make rc_qsquish a private option of mpegvideo encodersAnton Khirnov2014-10-18
|
* Split off floating point AAN (I)DCT into separate componentsDiego Biurrun2014-09-07
|
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixesDiego Biurrun2014-08-15
|
* idct: remove call to ff_idctdsp_init from ff_MPV_common_initJohn Stebbins2014-08-14
| | | | | One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
* mpegvideo: Move QMAT_SHIFT* defines to the only place they are usedDiego Biurrun2014-07-25
|
* mpegvideo: Move QUANT_BIAS_SHIFT define to the only place it is usedDiego Biurrun2014-07-23
|
* idct: Convert IDCT permutation #defines to an enumDiego Biurrun2014-07-18
| | | | Also rename the enum values to be consistent with other DCT permutations.
* dsputil: Split motion estimation compare bits off into their own contextDiego Biurrun2014-07-17
|
* dsputil: Split off pixel block routines into their own contextDiego Biurrun2014-07-09
|
* dsputil: Split off FDCT bits into their own contextDiego Biurrun2014-07-07
|
* dsputil: Move draw_edges() to mpegvideoencdspDiego Biurrun2014-07-06
|
* dsputil: Move pix_sum, pix_norm1, shrink function pointers to mpegvideoencDiego Biurrun2014-07-06
|
* dsputil: Split off *_8x8basis to a separate contextDiego Biurrun2014-07-06
|
* dsputil: Split off IDCT bits into their own contextDiego Biurrun2014-06-30
|
* mjpeg: Split off bits shared by MJPEG and LJPEG encodersDiego Biurrun2014-06-30
| | | | This obviates a dependency of the LJPEG encoder on mpegvideo.
* mpeg: Change ff_convert_matrix() to take an MpegEncContext parameterDiego Biurrun2014-06-27
| | | | This will come in handy during dsputil splitting.
* mpegvideoenc: check color_rangeVittorio Giovara2014-06-10
| | | | Rework the comparison into something simpler to understand.
* dsputil: Split off quarterpel bits into their own contextDiego Biurrun2014-05-29
|
* lavc: move CODEC_FLAG_MV0 to mpegvideoAnton Khirnov2014-05-01
|
* lavc: move CODEC_FLAG_NORMALIZE_AQP to mpegvideoAnton Khirnov2014-05-01
|
* lavc: deprecate CODEC_FLAG_INPUT_PRESERVEDAnton Khirnov2014-05-01
| | | | The addition of reference-counted frames makes it pointless.
* mpegvideo: Use the current_picture ptsMichael Niedermayer2014-04-21
| | | | | | | | | The picture slot can be recycled by select_input_picture and only current_picture is populated with the valid pts. Unbreak timestamps when in cbr mode. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mpegvideo: operate with pointers to AVFrames instead of whole structswm42014-04-09
| | | | | | | | | | | | | The most interesting parts are initialization in ff_MPV_common_init() and uninitialization in ff_MPV_common_end(). ff_mpeg_unref_picture and ff_thread_release_buffer have additional NULL checks for Picture.f, because these functions can be called on uninitialized or partially initialized Pictures. NULL pointer checks are added to ff_thread_release_buffer() stub function. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* mpegvideo: move mpegvideo formats-related defines to mpegutils.hVittorio Giovara2014-03-16
|
* dsputil: cosmetics: Lose camelCase on ff_cropTbl and ff_squareTbl namesDiego Biurrun2014-03-13
| | | | Also switch from "tbl" to "tab" name suffixes.
* dsputil: Drop ff_check_alignment() functionDiego Biurrun2014-03-13
| | | | | | The function is supposed to confirm that the compiler provided enough alignment, but in practice it is only run in certain code paths and insufficient alignment problems are restricted to legacy compilers.
* avutil: remove timer.h include from internal.hJanne Grunau2014-01-25
| | | | Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
* mpegvideo_enc: Don't call ff_h263dsp_init unconditionallyMartin Storsjö2014-01-22
| | | | | | | This fixes builds with e.g. --disable-decoders --disable-encoders --enable-encoder=mjpeg. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: drop support for real (non-emulated) edgesAnton Khirnov2014-01-09
| | | | | | | Several decoders disable those anyway and they are not measurably faster on x86. They might be somewhat faster on other platforms due to missing emu edge SIMD, but the gain is not large enough (and those decoders relevant enough) to justify the added complexity.
* mpegvideo: split the encoding-only parts of frame_start() into a separate ↵Anton Khirnov2014-01-03
| | | | | | | function This introduces some code duplication. However, much of it should go away once the decoders stop using MpegEncContext.
* ljpegenc: deMpegEncContextizeAnton Khirnov2013-12-05
| | | | | | | | | The encoder uses almost none of the mpegvideo infrastructure, only some fields from MpegEncContext. The FATE results change because now an all-zero quant matrix is written into the file. Since it is not used for anything for ljpeg, this should not be a problem.
* mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_picture_trailer()Anton Khirnov2013-12-05
| | | | This will allow deMpegEncContextizing the LJPEG encoder.
* mjpegenc: do not pass MpegEncContext to ff_mjpeg_encode_picture_header()Anton Khirnov2013-12-05
| | | | This will allow deMpegEncContextizing the LJPEG encoder.
* mpegvideo: move encode-only parts of common_end() to encode_end()Anton Khirnov2013-12-05
|
* mpegvideo: split the encoding-only parts of ff_MPV_frame_end() into a ↵Anton Khirnov2013-12-05
| | | | separate function
* mpegvideo: move encoding-only initialization from common_init() to encode_init()Anton Khirnov2013-12-05
|