]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
typo weigth->weight
authorbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 8 Oct 2007 12:28:36 +0000 (12:28 +0000)
committerbcoudurier <bcoudurier@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 8 Oct 2007 12:28:36 +0000 (12:28 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10687 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/dnxhddata.c
libavcodec/dnxhddata.h
libavcodec/dnxhddec.c
libavcodec/dnxhdenc.c

index 10ee80541191758ee308d175ee519b881a4b8875..67691aec2df80533bf5afae92b75636aa8d0ea58 100644 (file)
@@ -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,
index 501ac8fa356aae1e7ea4ed5e8a6bf03fd7752648..7bcf96d0562a766a5990e353602c200b94ba8c34 100644 (file)
@@ -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;
index baba5ef001306f14c979b4e07f9f533cd7f47b48..64184de3a94822aea79505c58c2bba1fa6820b71 100644 (file)
@@ -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);
index 0198b31a9fadb3a81e5b7a5dfe79a8f08c227af2..8f73608b2844bc36ed70662edf68313d535cad36 100644 (file)
@@ -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;
             }