Mercurial > libavcodec.hg
comparison avcodec.h @ 1733:b47d56b1a049 libavcodec
optimize compute_antialias() and add a floating point based alternative (2x faster)
author | michael |
---|---|
date | Thu, 08 Jan 2004 21:08:57 +0000 |
parents | a4a5e7521339 |
children | f0c21b9a328e |
comparison
equal
deleted
inserted
replaced
1732:f716b8f47d98 | 1733:b47d56b1a049 |
---|---|
958 int rc_buffer_size; | 958 int rc_buffer_size; |
959 float rc_buffer_aggressivity; | 959 float rc_buffer_aggressivity; |
960 | 960 |
961 /** | 961 /** |
962 * qscale factor between p and i frames. | 962 * qscale factor between p and i frames. |
963 * - encoding: set by user. | |
964 * - decoding: unused | |
965 */ | |
966 float i_quant_factor; | |
967 | |
968 /** | |
969 * qscale offset between p and i frames. | |
970 * if > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset) | 963 * if > 0 then the last p frame quantizer will be used (q= lastp_q*factor+offset) |
971 * if < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset) | 964 * if < 0 then normal ratecontrol will be done (q= -normal_q*factor+offset) |
965 * - encoding: set by user. | |
966 * - decoding: unused | |
967 */ | |
968 float i_quant_factor; | |
969 | |
970 /** | |
971 * qscale offset between p and i frames. | |
972 * - encoding: set by user. | 972 * - encoding: set by user. |
973 * - decoding: unused | 973 * - decoding: unused |
974 */ | 974 */ |
975 float i_quant_offset; | 975 float i_quant_offset; |
976 | 976 |
1488 * simulates errors in the bitstream to test error concealment. | 1488 * simulates errors in the bitstream to test error concealment. |
1489 * - encoding: set by user. | 1489 * - encoding: set by user. |
1490 * - decoding: unused. | 1490 * - decoding: unused. |
1491 */ | 1491 */ |
1492 int error_rate; | 1492 int error_rate; |
1493 | |
1494 /** | |
1495 * MP3 antialias algorithm, see FF_AA_* below. | |
1496 * - encoding: unused | |
1497 * - decoding: set by user | |
1498 */ | |
1499 int antialias_algo; | |
1500 #define FF_AA_AUTO 0 | |
1501 #define FF_AA_FASTINT 1 //not implemented yet | |
1502 #define FF_AA_INT 2 | |
1503 #define FF_AA_FLOAT 3 | |
1493 } AVCodecContext; | 1504 } AVCodecContext; |
1494 | 1505 |
1495 | 1506 |
1496 /** | 1507 /** |
1497 * AVOption. | 1508 * AVOption. |