Revision 90d30402 libavcodec/dvdata.h

View differences:

libavcodec/dvdata.h
6077 6077
 * the "inverse" DV100 weights are actually just the spec weights (zig-zagged)
6078 6078
 */
6079 6079
static const int dv_iweight_1080_y[64] = {
6080
    128, 16, 16, 17, 17, 17, 18, 18,
6081
    18, 18, 18, 18, 19, 18, 18, 19,
6082
    19, 19, 19, 19, 19, 42, 38, 40,
6083
    40, 40, 38, 42, 44, 43, 41, 41,
6084
    41, 41, 43, 44, 45, 45, 42, 42,
6085
    42, 45, 45, 48, 46, 43, 43, 46,
6086
    48, 49, 48, 44, 48, 49, 101, 98,
6087
    98, 101, 104, 109, 104, 116, 116, 123,
6080
    128,  16,  16,  17,  17,  17,  18,  18,
6081
     18,  18,  18,  18,  19,  18,  18,  19,
6082
     19,  19,  19,  19,  19,  42,  38,  40,
6083
     40,  40,  38,  42,  44,  43,  41,  41,
6084
     41,  41,  43,  44,  45,  45,  42,  42,
6085
     42,  45,  45,  48,  46,  43,  43,  46,
6086
     48,  49,  48,  44,  48,  49, 101,  98,
6087
     98, 101, 104, 109, 104, 116, 116, 123,
6088 6088
};
6089 6089
static const int dv_iweight_1080_c[64] = {
6090
    128, 16, 16, 17, 17, 17, 25, 25,
6091
    25, 25, 26, 25, 26, 25, 26, 26,
6092
    26, 27, 27, 26, 26, 42, 38, 40,
6093
    40, 40, 38, 42, 44, 43, 41, 41,
6094
    41, 41, 43, 44, 91, 91, 84, 84,
6095
    84, 91, 91, 96, 93, 86, 86, 93,
6096
    96, 197, 191, 177, 191, 197, 203, 197,
6090
    128,  16,  16,  17,  17,  17,  25,  25,
6091
     25,  25,  26,  25,  26,  25,  26,  26,
6092
     26,  27,  27,  26,  26,  42,  38,  40,
6093
     40,  40,  38,  42,  44,  43,  41,  41,
6094
     41,  41,  43,  44,  91,  91,  84,  84,
6095
     84,  91,  91,  96,  93,  86,  86,  93,
6096
     96, 197, 191, 177, 191, 197, 203, 197,
6097 6097
    197, 203, 209, 219, 209, 232, 232, 246,
6098 6098
};
6099 6099
static const int dv_iweight_720_y[64] = {
6100
    128, 16, 16, 17, 17, 17, 18, 18,
6101
    18, 18, 18, 18, 19, 18, 18, 19,
6102
    19, 19, 19, 19, 19, 42, 38, 40,
6103
    40, 40, 38, 42, 44, 43, 41, 41,
6104
    41, 41, 43, 44, 68, 68, 63, 63,
6105
    63, 68, 68, 96, 92, 86, 86, 92,
6106
    96, 98, 96, 88, 96, 98, 202, 196,
6100
    128,  16,  16,  17,  17,  17,  18,  18,
6101
     18,  18,  18,  18,  19,  18,  18,  19,
6102
     19,  19,  19,  19,  19,  42,  38,  40,
6103
     40,  40,  38,  42,  44,  43,  41,  41,
6104
     41,  41,  43,  44,  68,  68,  63,  63,
6105
     63,  68,  68,  96,  92,  86,  86,  92,
6106
     96,  98,  96,  88,  96,  98, 202, 196,
6107 6107
    196, 202, 208, 218, 208, 232, 232, 246,
6108 6108
};
6109 6109
static const int dv_iweight_720_c[64] = {
6110
    128, 24, 24, 26, 26, 26, 36, 36,
6111
    36, 36, 36, 36, 38, 36, 36, 38,
6112
    38, 38, 38, 38, 38, 84, 76, 80,
6113
    80, 80, 76, 84, 88, 86, 82, 82,
6114
    82, 82, 86, 88, 182, 182, 168, 168,
6110
    128,  24,  24,  26,  26,  26,  36,  36,
6111
     36,  36,  36,  36,  38,  36,  36,  38,
6112
     38,  38,  38,  38,  38,  84,  76,  80,
6113
     80,  80,  76,  84,  88,  86,  82,  82,
6114
     82,  82,  86,  88, 182, 182, 168, 168,
6115 6115
    168, 182, 182, 192, 186, 192, 172, 186,
6116 6116
    192, 394, 382, 354, 382, 394, 406, 394,
6117 6117
    394, 406, 418, 438, 418, 464, 464, 492,
......
6177 6177
      .bpm = 6,
6178 6178
      .block_sizes = block_sizes_dv2550,
6179 6179
      .audio_stride = 90,
6180
      .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6180
      .audio_min_samples  = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6181 6181
      .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6182 6182
      .audio_shuffle = dv_audio_shuffle525,
6183 6183
    },
......
6197 6197
      .bpm = 6,
6198 6198
      .block_sizes = block_sizes_dv2550,
6199 6199
      .audio_stride = 108,
6200
      .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6200
      .audio_min_samples  = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6201 6201
      .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6202 6202
      .audio_shuffle = dv_audio_shuffle625,
6203 6203
    },
......
6217 6217
      .bpm = 6,
6218 6218
      .block_sizes = block_sizes_dv2550,
6219 6219
      .audio_stride = 108,
6220
      .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6220
      .audio_min_samples  = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6221 6221
      .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6222 6222
      .audio_shuffle = dv_audio_shuffle625,
6223 6223
    },
......
6237 6237
      .bpm = 6,
6238 6238
      .block_sizes = block_sizes_dv2550,
6239 6239
      .audio_stride = 90,
6240
      .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6240
      .audio_min_samples  = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6241 6241
      .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6242 6242
      .audio_shuffle = dv_audio_shuffle525,
6243 6243
    },
......
6257 6257
      .bpm = 6,
6258 6258
      .block_sizes = block_sizes_dv2550,
6259 6259
      .audio_stride = 108,
6260
      .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6260
      .audio_min_samples  = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6261 6261
      .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6262 6262
      .audio_shuffle = dv_audio_shuffle625,
6263 6263
    },
......
6277 6277
      .bpm = 8,
6278 6278
      .block_sizes = block_sizes_dv100,
6279 6279
      .audio_stride = 90,
6280
      .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6280
      .audio_min_samples  = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6281 6281
      .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6282 6282
      .audio_shuffle = dv_audio_shuffle525,
6283 6283
    },
......
6297 6297
      .bpm = 8,
6298 6298
      .block_sizes = block_sizes_dv100,
6299 6299
      .audio_stride = 108,
6300
      .audio_min_samples = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6300
      .audio_min_samples  = { 1896, 1742, 1264 }, /* for 48, 44.1 and 32kHz */
6301 6301
      .audio_samples_dist = { 1920, 1920, 1920, 1920, 1920 },
6302 6302
      .audio_shuffle = dv_audio_shuffle625,
6303 6303
    },
......
6317 6317
      .bpm = 8,
6318 6318
      .block_sizes = block_sizes_dv100,
6319 6319
      .audio_stride = 90,
6320
      .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6320
      .audio_min_samples  = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6321 6321
      .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6322 6322
      .audio_shuffle = dv_audio_shuffle525,
6323 6323
    },
......
6337 6337
      .bpm = 8,
6338 6338
      .block_sizes = block_sizes_dv100,
6339 6339
      .audio_stride = 90,
6340
      .audio_min_samples = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6340
      .audio_min_samples  = { 1580, 1452, 1053 }, /* for 48, 44.1 and 32kHz */
6341 6341
      .audio_samples_dist = { 1600, 1602, 1602, 1602, 1602 }, /* per SMPTE-314M */
6342 6342
      .audio_shuffle = dv_audio_shuffle525,
6343 6343
    }

Also available in: Unified diff