comparison avcodec.h @ 11689:2312dfbe9251 libavcodec

Add intra refresh and crf-max support to the libavcodec libx264 wrapper. Minor version bump.
author darkshikari
date Thu, 06 May 2010 22:38:18 +0000
parents bb0470c1ebd9
children 56a2ead12502
comparison
equal deleted inserted replaced
11688:6f5bee041560 11689:2312dfbe9251
28 28
29 #include <errno.h> 29 #include <errno.h>
30 #include "libavutil/avutil.h" 30 #include "libavutil/avutil.h"
31 31
32 #define LIBAVCODEC_VERSION_MAJOR 52 32 #define LIBAVCODEC_VERSION_MAJOR 52
33 #define LIBAVCODEC_VERSION_MINOR 66 33 #define LIBAVCODEC_VERSION_MINOR 67
34 #define LIBAVCODEC_VERSION_MICRO 0 34 #define LIBAVCODEC_VERSION_MICRO 0
35 35
36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ 36 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
37 LIBAVCODEC_VERSION_MINOR, \ 37 LIBAVCODEC_VERSION_MINOR, \
38 LIBAVCODEC_VERSION_MICRO) 38 LIBAVCODEC_VERSION_MICRO)
595 #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 ///< Use MPEG-2 nonlinear quantizer. 595 #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 ///< Use MPEG-2 nonlinear quantizer.
596 #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible 596 #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible
597 #define CODEC_FLAG2_MBTREE 0x00040000 ///< Use macroblock tree ratecontrol (x264 only) 597 #define CODEC_FLAG2_MBTREE 0x00040000 ///< Use macroblock tree ratecontrol (x264 only)
598 #define CODEC_FLAG2_PSY 0x00080000 ///< Use psycho visual optimizations. 598 #define CODEC_FLAG2_PSY 0x00080000 ///< Use psycho visual optimizations.
599 #define CODEC_FLAG2_SSIM 0x00100000 ///< Compute SSIM during encoding, error[] values are undefined. 599 #define CODEC_FLAG2_SSIM 0x00100000 ///< Compute SSIM during encoding, error[] values are undefined.
600 #define CODEC_FLAG2_INTRA_REFRESH 0x00200000 ///< Use periodic insertion of intra blocks instead of keyframes.
600 601
601 /* Unsupported options : 602 /* Unsupported options :
602 * Syntax Arithmetic coding (SAC) 603 * Syntax Arithmetic coding (SAC)
603 * Reference Picture Selection 604 * Reference Picture Selection
604 * Independent Segment Decoding */ 605 * Independent Segment Decoding */
2644 * Number of frames for frametype and ratecontrol lookahead 2645 * Number of frames for frametype and ratecontrol lookahead
2645 * - encoding: Set by user 2646 * - encoding: Set by user
2646 * - decoding: unused 2647 * - decoding: unused
2647 */ 2648 */
2648 int rc_lookahead; 2649 int rc_lookahead;
2650
2651 /**
2652 * Constant rate factor maximum
2653 * With CRF encoding mode and VBV restrictions enabled, prevents quality from being worse
2654 * than crf_max, even if doing so would violate VBV restrictions.
2655 * - encoding: Set by user.
2656 * - decoding: unused
2657 */
2658 float crf_max;
2649 } AVCodecContext; 2659 } AVCodecContext;
2650 2660
2651 /** 2661 /**
2652 * AVCodec. 2662 * AVCodec.
2653 */ 2663 */