diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-10-08 12:28:36 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-10-08 12:28:36 +0000 |
commit | 6cb1d36169e31e5c51e80525deb95b89e7d08b9d (patch) | |
tree | 449a2cabdd0ec8e2ba82a888e76085227a1f3f8b /libavcodec | |
parent | cd52a9ca9f26d6d4fac1b3815ac6d8109afa3738 (diff) | |
download | ffmpeg-6cb1d36169e31e5c51e80525deb95b89e7d08b9d.tar.gz |
typo weigth->weight
Originally committed as revision 10687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/dnxhddata.c | 24 | ||||
-rw-r--r-- | libavcodec/dnxhddata.h | 2 | ||||
-rw-r--r-- | libavcodec/dnxhddec.c | 4 | ||||
-rw-r--r-- | libavcodec/dnxhdenc.c | 16 |
4 files changed, 23 insertions, 23 deletions
diff --git a/libavcodec/dnxhddata.c b/libavcodec/dnxhddata.c index 10ee805411..67691aec2d 100644 --- a/libavcodec/dnxhddata.c +++ b/libavcodec/dnxhddata.c @@ -21,7 +21,7 @@ #include "dnxhddata.h" -static const uint8_t dnxhd_1237_luma_weigth[] = { +static const uint8_t dnxhd_1237_luma_weight[] = { 0, 32, 33, 34, 34, 36, 37, 36, 36, 37, 38, 38, 38, 39, 41, 44, 43, 41, 40, 41, 46, 49, 47, 46, @@ -32,7 +32,7 @@ static const uint8_t dnxhd_1237_luma_weigth[] = { 97, 100, 104, 102, 98, 98, 99, 99, }; -static const uint8_t dnxhd_1237_chroma_weigth[] = { +static const uint8_t dnxhd_1237_chroma_weight[] = { 0, 32, 36, 39, 39, 38, 39, 41, 45, 51, 57, 58, 53, 48, 47, 51, 55, 58, 66, 75, 81, 83, 82, 78, @@ -43,7 +43,7 @@ static const uint8_t dnxhd_1237_chroma_weigth[] = { 97, 100, 104, 102, 98, 98, 99, 99, }; -static const uint8_t dnxhd_1238_luma_weigth[] = { +static const uint8_t dnxhd_1238_luma_weight[] = { 0, 32, 32, 33, 34, 33, 33, 33, 33, 33, 33, 33, 33, 35, 37, 37, 36, 36, 35, 36, 38, 38, 36, 35, @@ -54,7 +54,7 @@ static const uint8_t dnxhd_1238_luma_weigth[] = { 51, 53, 55, 57, 58, 59, 57, 57, }; -static const uint8_t dnxhd_1238_chroma_weigth[] = { +static const uint8_t dnxhd_1238_chroma_weight[] = { 0, 32, 35, 35, 35, 34, 34, 35, 39, 43, 45, 45, 41, 39, 40, 41, 42, 44, 48, 55, 59, 63, 65, 59, @@ -87,7 +87,7 @@ static const uint8_t dnxhd_1241_chroma_weight[] = { 48, 46, 48, 49, 48, 49, 49, 49, }; -static const uint8_t dnxhd_1242_luma_weigth[] = { +static const uint8_t dnxhd_1242_luma_weight[] = { 0, 32, 33, 33, 34, 35, 36, 35, 33, 33, 35, 36, 37, 37, 38, 37, 37, 37, 36, 37, 37, 37, 38, 39, @@ -98,7 +98,7 @@ static const uint8_t dnxhd_1242_luma_weigth[] = { 49, 51, 52, 51, 49, 47, 47, 47, }; -static const uint8_t dnxhd_1242_chroma_weigth[] = { +static const uint8_t dnxhd_1242_chroma_weight[] = { 0, 32, 37, 42, 45, 45, 45, 44, 38, 37, 40, 42, 44, 49, 51, 47, 41, 40, 43, 44, 46, 48, 51, 54, @@ -109,7 +109,7 @@ static const uint8_t dnxhd_1242_chroma_weigth[] = { 55, 59, 63, 62, 60, 60, 60, 60, }; -static const uint8_t dnxhd_1243_luma_weigth[] = { +static const uint8_t dnxhd_1243_luma_weight[] = { 0, 32, 32, 33, 33, 35, 35, 35, 35, 35, 35, 35, 34, 35, 38, 40, 39, 37, 37, 37, 36, 35, 36, 38, @@ -120,7 +120,7 @@ static const uint8_t dnxhd_1243_luma_weigth[] = { 46, 44, 45, 47, 47, 48, 47, 47, }; -static const uint8_t dnxhd_1243_chroma_weigth[] = { +static const uint8_t dnxhd_1243_chroma_weight[] = { 0, 32, 36, 37, 36, 37, 39, 39, 41, 43, 43, 42, 41, 41, 41, 42, 43, 43, 43, 44, 44, 44, 46, 47, @@ -252,13 +252,13 @@ static const uint8_t dnxhd_1241_run[62] = { const CIDEntry ff_dnxhd_cid_table[] = { { 1237, 1920, 1080, 0, 606208, 606208, 4, 8, - dnxhd_1237_luma_weigth, dnxhd_1237_chroma_weigth, + dnxhd_1237_luma_weight, dnxhd_1237_chroma_weight, dnxhd_1237_dc_codes, dnxhd_1237_dc_bits, dnxhd_1237_ac_codes, dnxhd_1237_ac_bits, dnxhd_1237_ac_level, dnxhd_1237_ac_run_flag, dnxhd_1237_ac_index_flag, dnxhd_1237_run_codes, dnxhd_1237_run_bits, dnxhd_1237_run }, { 1238, 1920, 1080, 0, 917504, 917504, 4, 8, - dnxhd_1238_luma_weigth, dnxhd_1238_chroma_weigth, + dnxhd_1238_luma_weight, dnxhd_1238_chroma_weight, dnxhd_1238_dc_codes, dnxhd_1238_dc_bits, dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level, dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag, @@ -270,13 +270,13 @@ const CIDEntry ff_dnxhd_cid_table[] = { dnxhd_1241_ac_run_flag, dnxhd_1241_ac_index_flag, dnxhd_1241_run_codes, dnxhd_1241_run_bits, dnxhd_1241_run }, { 1242, 1920, 1080, 1, 606208, 303104, 4, 8, - dnxhd_1242_luma_weigth, dnxhd_1242_chroma_weigth, + dnxhd_1242_luma_weight, dnxhd_1242_chroma_weight, dnxhd_1237_dc_codes, dnxhd_1237_dc_bits, dnxhd_1237_ac_codes, dnxhd_1237_ac_bits, dnxhd_1237_ac_level, dnxhd_1237_ac_run_flag, dnxhd_1237_ac_index_flag, dnxhd_1237_run_codes, dnxhd_1237_run_bits, dnxhd_1237_run }, { 1243, 1920, 1080, 1, 917504, 458752, 4, 8, - dnxhd_1243_luma_weigth, dnxhd_1243_chroma_weigth, + dnxhd_1243_luma_weight, dnxhd_1243_chroma_weight, dnxhd_1238_dc_codes, dnxhd_1238_dc_bits, dnxhd_1238_ac_codes, dnxhd_1238_ac_bits, dnxhd_1238_ac_level, dnxhd_1238_ac_run_flag, dnxhd_1238_ac_index_flag, diff --git a/libavcodec/dnxhddata.h b/libavcodec/dnxhddata.h index 501ac8fa35..7bcf96d056 100644 --- a/libavcodec/dnxhddata.h +++ b/libavcodec/dnxhddata.h @@ -32,7 +32,7 @@ typedef struct { unsigned int coding_unit_size; int index_bits; int bit_depth; - const uint8_t *luma_weigth, *chroma_weigth; + const uint8_t *luma_weight, *chroma_weight; const uint8_t *dc_codes, *dc_bits; const uint16_t *ac_codes; const uint8_t *ac_bits, *ac_level; diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c index baba5ef001..64184de3a9 100644 --- a/libavcodec/dnxhddec.c +++ b/libavcodec/dnxhddec.c @@ -161,10 +161,10 @@ static void dnxhd_decode_dct_block(DNXHDContext *ctx, DCTELEM *block, int n, int if (n&2) { component = 1 + (n&1); - weigth_matrix = ctx->cid_table->chroma_weigth; + weigth_matrix = ctx->cid_table->chroma_weight; } else { component = 0; - weigth_matrix = ctx->cid_table->luma_weigth; + weigth_matrix = ctx->cid_table->luma_weight; } ctx->last_dc[component] += dnxhd_decode_dc(ctx); diff --git a/libavcodec/dnxhdenc.c b/libavcodec/dnxhdenc.c index 0198b31a9f..8f73608b28 100644 --- a/libavcodec/dnxhdenc.c +++ b/libavcodec/dnxhdenc.c @@ -130,13 +130,13 @@ static int dnxhd_init_qmat(DNXHDEncContext *ctx, int lbias, int cbias) for (i = 1; i < 64; i++) { int j = ctx->m.dsp.idct_permutation[ff_zigzag_direct[i]]; - weight_matrix[j] = ctx->cid_table->luma_weigth[i]; + weight_matrix[j] = ctx->cid_table->luma_weight[i]; } ff_convert_matrix(&ctx->m.dsp, ctx->qmatrix_l, ctx->qmatrix_l16, weight_matrix, ctx->m.intra_quant_bias, 1, ctx->m.avctx->qmax, 1); for (i = 1; i < 64; i++) { int j = ctx->m.dsp.idct_permutation[ff_zigzag_direct[i]]; - weight_matrix[j] = ctx->cid_table->chroma_weigth[i]; + weight_matrix[j] = ctx->cid_table->chroma_weight[i]; } ff_convert_matrix(&ctx->m.dsp, ctx->qmatrix_c, ctx->qmatrix_c16, weight_matrix, ctx->m.intra_quant_bias, 1, ctx->m.avctx->qmax, 1); @@ -327,25 +327,25 @@ static av_always_inline void dnxhd_encode_block(DNXHDEncContext *ctx, DCTELEM *b static av_always_inline void dnxhd_unquantize_c(DNXHDEncContext *ctx, DCTELEM *block, int n, int qscale, int last_index) { - const uint8_t *weigth_matrix; + const uint8_t *weight_matrix; int level; int i; - weigth_matrix = (n&2) ? ctx->cid_table->chroma_weigth : ctx->cid_table->luma_weigth; + weight_matrix = (n&2) ? ctx->cid_table->chroma_weight : ctx->cid_table->luma_weight; for (i = 1; i <= last_index; i++) { int j = ctx->m.intra_scantable.permutated[i]; level = block[j]; if (level) { if (level < 0) { - level = (1-2*level) * qscale * weigth_matrix[i]; - if (weigth_matrix[i] != 32) + level = (1-2*level) * qscale * weight_matrix[i]; + if (weight_matrix[i] != 32) level += 32; level >>= 6; level = -level; } else { - level = (2*level+1) * qscale * weigth_matrix[i]; - if (weigth_matrix[i] != 32) + level = (2*level+1) * qscale * weight_matrix[i]; + if (weight_matrix[i] != 32) level += 32; level >>= 6; } |