FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables
dvdata.c File Reference

Constants for DV codec. More...

#include <stdint.h>
#include "dvdata.h"

Go to the source code of this file.

Variables

const uint8_t ff_dv_zigzag248_direct [64]
 
const uint8_t ff_dv_quant_shifts [22][4]
 
const uint8_t ff_dv_quant_offset [4] = { 6, 3, 0, 1 }
 
const int ff_dv_iweight_88 [64]
 
const int ff_dv_iweight_248 [64]
 
const int ff_dv_iweight_1080_y [64]
 The "inverse" DV100 weights are actually just the spec weights (zig-zagged).
 
const int ff_dv_iweight_1080_c [64]
 
const int ff_dv_iweight_720_y [64]
 
const int ff_dv_iweight_720_c [64]
 
const uint16_t ff_dv_vlc_bits [NB_DV_VLC]
 
const uint8_t ff_dv_vlc_len [NB_DV_VLC]
 
const uint8_t ff_dv_vlc_run [NB_DV_VLC]
 
const uint8_t ff_dv_vlc_level [NB_DV_VLC]
 

Detailed Description

Constants for DV codec.

Definition in file dvdata.c.

Variable Documentation

const uint8_t ff_dv_zigzag248_direct[64]
Initial value:
= {
0, 8, 1, 9, 16, 24, 2, 10,
17, 25, 32, 40, 48, 56, 33, 41,
18, 26, 3, 11, 4, 12, 19, 27,
34, 42, 49, 57, 50, 58, 35, 43,
20, 28, 5, 13, 6, 14, 21, 29,
36, 44, 51, 59, 52, 60, 37, 45,
22, 30, 7, 15, 23, 31, 38, 46,
53, 61, 54, 62, 39, 47, 55, 63,
}

Definition at line 33 of file dvdata.c.

Referenced by dv_init_enc_block(), and dvvideo_decode_init().

const uint8_t ff_dv_quant_shifts[22][4]
Initial value:
= {
{ 3, 3, 4, 4 },
{ 3, 3, 4, 4 },
{ 2, 3, 3, 4 },
{ 2, 3, 3, 4 },
{ 2, 2, 3, 3 },
{ 2, 2, 3, 3 },
{ 1, 2, 2, 3 },
{ 1, 2, 2, 3 },
{ 1, 1, 2, 2 },
{ 1, 1, 2, 2 },
{ 0, 1, 1, 2 },
{ 0, 1, 1, 2 },
{ 0, 0, 1, 1 },
{ 0, 0, 1, 1 },
{ 0, 0, 0, 1 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
}

Definition at line 45 of file dvdata.c.

Referenced by dv_guess_qnos(), and ff_dv_init_dynamic_tables().

const uint8_t ff_dv_quant_offset[4] = { 6, 3, 0, 1 }

Definition at line 70 of file dvdata.c.

Referenced by dv_decode_video_segment(), and dv_guess_qnos().

const int ff_dv_iweight_88[64]
Initial value:
= {
32768, 16710, 16710, 17735, 17015, 17735, 18197, 18079,
18079, 18197, 18725, 18559, 19196, 18559, 18725, 19284,
19108, 19692, 19692, 19108, 19284, 21400, 19645, 20262,
20214, 20262, 19645, 21400, 22733, 21845, 20867, 20815,
20815, 20867, 21845, 22733, 23173, 23173, 21400, 21400,
21400, 23173, 23173, 24600, 23764, 22017, 22017, 23764,
24600, 25267, 24457, 22672, 24457, 25267, 25971, 25191,
25191, 25971, 26715, 27962, 26715, 29642, 29642, 31536,
}

Definition at line 72 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const int ff_dv_iweight_248[64]
Initial value:
= {
32768, 17735, 16710, 18079, 18725, 21400, 17735, 19196,
19108, 21845, 16384, 17735, 18725, 21400, 16710, 18079,
20262, 23173, 18197, 19692, 18725, 20262, 20815, 23764,
17735, 19196, 19108, 21845, 20262, 23173, 18197, 19692,
21400, 24457, 19284, 20867, 21400, 23173, 22017, 25191,
18725, 20262, 20815, 23764, 21400, 24457, 19284, 20867,
24457, 27962, 22733, 24600, 25971, 29642, 21400, 23173,
22017, 25191, 24457, 27962, 22733, 24600, 25971, 29642,
}

Definition at line 82 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const int ff_dv_iweight_1080_y[64]
Initial value:
= {
128, 16, 16, 17, 17, 17, 18, 18,
18, 18, 18, 18, 19, 18, 18, 19,
19, 19, 19, 19, 19, 42, 38, 40,
40, 40, 38, 42, 44, 43, 41, 41,
41, 41, 43, 44, 45, 45, 42, 42,
42, 45, 45, 48, 46, 43, 43, 46,
48, 49, 48, 44, 48, 49, 101, 98,
98, 101, 104, 109, 104, 116, 116, 123,
}

The "inverse" DV100 weights are actually just the spec weights (zig-zagged).

Definition at line 96 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const int ff_dv_iweight_1080_c[64]
Initial value:
= {
128, 16, 16, 17, 17, 17, 25, 25,
25, 25, 26, 25, 26, 25, 26, 26,
26, 27, 27, 26, 26, 42, 38, 40,
40, 40, 38, 42, 44, 43, 41, 41,
41, 41, 43, 44, 91, 91, 84, 84,
84, 91, 91, 96, 93, 86, 86, 93,
96, 197, 191, 177, 191, 197, 203, 197,
197, 203, 209, 219, 209, 232, 232, 246,
}

Definition at line 106 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const int ff_dv_iweight_720_y[64]
Initial value:
= {
128, 16, 16, 17, 17, 17, 18, 18,
18, 18, 18, 18, 19, 18, 18, 19,
19, 19, 19, 19, 19, 42, 38, 40,
40, 40, 38, 42, 44, 43, 41, 41,
41, 41, 43, 44, 68, 68, 63, 63,
63, 68, 68, 96, 92, 86, 86, 92,
96, 98, 96, 88, 96, 98, 202, 196,
196, 202, 208, 218, 208, 232, 232, 246,
}

Definition at line 116 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const int ff_dv_iweight_720_c[64]
Initial value:
= {
128, 24, 24, 26, 26, 26, 36, 36,
36, 36, 36, 36, 38, 36, 36, 38,
38, 38, 38, 38, 38, 84, 76, 80,
80, 80, 76, 84, 88, 86, 82, 82,
82, 82, 86, 88, 182, 182, 168, 168,
168, 182, 182, 192, 186, 192, 172, 186,
192, 394, 382, 354, 382, 394, 406, 394,
394, 406, 418, 438, 418, 464, 464, 492,
}

Definition at line 126 of file dvdata.c.

Referenced by ff_dv_init_dynamic_tables().

const uint16_t ff_dv_vlc_bits[NB_DV_VLC]

Definition at line 142 of file dvdata.c.

Referenced by dv_vlc_map_tableinit(), and ff_dvvideo_init().

const uint8_t ff_dv_vlc_len[NB_DV_VLC]

Definition at line 197 of file dvdata.c.

Referenced by dv_vlc_map_tableinit(), and ff_dvvideo_init().

const uint8_t ff_dv_vlc_run[NB_DV_VLC]

Definition at line 252 of file dvdata.c.

Referenced by dv_vlc_map_tableinit(), and ff_dvvideo_init().

const uint8_t ff_dv_vlc_level[NB_DV_VLC]

Definition at line 307 of file dvdata.c.

Referenced by dv_vlc_map_tableinit(), and ff_dvvideo_init().