Mercurial > libavcodec.hg
comparison avcodec.h @ 11538:9beb570426f4 libavcodec
Enable more libx264 options, aq, psy, rc lookahead and ssim
author | bcoudurier |
---|---|
date | Thu, 25 Mar 2010 19:25:21 +0000 |
parents | 22ab9663ca4e |
children | c7084c69abcc |
comparison
equal
deleted
inserted
replaced
11537:bc0012099ba3 | 11538:9beb570426f4 |
---|---|
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 60 | 33 #define LIBAVCODEC_VERSION_MINOR 61 |
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) |
590 #define CODEC_FLAG2_SKIP_RD 0x00004000 ///< RD optimal MB level residual skipping | 590 #define CODEC_FLAG2_SKIP_RD 0x00004000 ///< RD optimal MB level residual skipping |
591 #define CODEC_FLAG2_CHUNKS 0x00008000 ///< Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. | 591 #define CODEC_FLAG2_CHUNKS 0x00008000 ///< Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries. |
592 #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 ///< Use MPEG-2 nonlinear quantizer. | 592 #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 ///< Use MPEG-2 nonlinear quantizer. |
593 #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible | 593 #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible |
594 #define CODEC_FLAG2_MBTREE 0x00040000 ///< Use macroblock tree ratecontrol (x264 only) | 594 #define CODEC_FLAG2_MBTREE 0x00040000 ///< Use macroblock tree ratecontrol (x264 only) |
595 #define CODEC_FLAG2_PSY 0x00080000 ///< Use psycho visual optimizations. | |
596 #define CODEC_FLAG2_SSIM 0x00100000 ///< Compute SSIM during encoding, error[] values are undefined. | |
595 | 597 |
596 /* Unsupported options : | 598 /* Unsupported options : |
597 * Syntax Arithmetic coding (SAC) | 599 * Syntax Arithmetic coding (SAC) |
598 * Reference Picture Selection | 600 * Reference Picture Selection |
599 * Independent Segment Decoding */ | 601 * Independent Segment Decoding */ |
2596 * 2: smart weighting (full fade detection analysis) | 2598 * 2: smart weighting (full fade detection analysis) |
2597 * - encoding: Set by user. | 2599 * - encoding: Set by user. |
2598 * - decoding: unused | 2600 * - decoding: unused |
2599 */ | 2601 */ |
2600 int weighted_p_pred; | 2602 int weighted_p_pred; |
2603 | |
2604 /** | |
2605 * AQ mode | |
2606 * 0: Disabled | |
2607 * 1: Variance AQ (complexity mask) | |
2608 * 2: Auto-variance AQ (experimental) | |
2609 * - encoding: Set by user | |
2610 * - decoding: unused | |
2611 */ | |
2612 int aq_mode; | |
2613 | |
2614 /** | |
2615 * AQ strength | |
2616 * Reduces blocking and blurring in flat and textured areas. | |
2617 * - encoding: Set by user | |
2618 * - decoding: unused | |
2619 */ | |
2620 float aq_strength; | |
2621 | |
2622 /** | |
2623 * PSY RD | |
2624 * Strength of psychovisual optimization | |
2625 * - encoding: Set by user | |
2626 * - decoding: unused | |
2627 */ | |
2628 float psy_rd; | |
2629 | |
2630 /** | |
2631 * PSY trellis | |
2632 * Strength of psychovisual optimization | |
2633 * - encoding: Set by user | |
2634 * - decoding: unused | |
2635 */ | |
2636 float psy_trellis; | |
2637 | |
2638 /** | |
2639 * RC lookahead | |
2640 * Number of frames for frametype and ratecontrol lookahead | |
2641 * - encoding: Set by user | |
2642 * - decoding: unused | |
2643 */ | |
2644 int rc_lookahead; | |
2601 } AVCodecContext; | 2645 } AVCodecContext; |
2602 | 2646 |
2603 /** | 2647 /** |
2604 * AVCodec. | 2648 * AVCodec. |
2605 */ | 2649 */ |