libavcodec/dvdata.h File Reference

Constants for DV codec. More...

#include "avcodec.h"
#include "rational.h"

Go to the source code of this file.

Data Structures

struct  DVprofile

Defines

#define NB_DV_VLC   409
#define DV_PROFILE_BYTES   (6*80)
#define DV_MAX_FRAME_SIZE   288000

Enumerations

enum  dv_section_type {
  dv_sect_header = 0x1f, dv_sect_subcode = 0x3f, dv_sect_vaux = 0x56, dv_sect_audio = 0x76,
  dv_sect_video = 0x96
}
enum  dv_pack_type {
  dv_header525 = 0x3f, dv_header625 = 0xbf, dv_timecode = 0x13, dv_audio_source = 0x50,
  dv_audio_control = 0x51, dv_audio_recdate = 0x52, dv_audio_rectime = 0x53, dv_video_source = 0x60,
  dv_video_control = 0x61, dv_video_recdate = 0x62, dv_video_rectime = 0x63, dv_unknown_pack = 0xff
}

Functions

static const DVprofiledv_frame_profile (const uint8_t *frame)
static const DVprofiledv_codec_profile (AVCodecContext *codec)
static int dv_write_dif_id (enum dv_section_type t, uint8_t chan_num, uint8_t seq_num, uint8_t dif_num, uint8_t *buf)
static int dv_write_ssyb_id (uint8_t syb_num, uint8_t fr, uint8_t *buf)

Variables

static const uint16_t dv_vlc_bits [409]
static const uint8_t dv_vlc_len [409]
static const uint8_t dv_vlc_run [409]
static const uint8_t dv_vlc_level [409]
static const uint8_t dv_88_areas [64]
static const uint8_t dv_248_areas [64]
static const uint8_t dv_quant_shifts [22][4]
static const uint8_t dv_quant_offset [4] = { 6, 3, 0, 1 }
static const uint16_t dv_place_420 [1620]
static const uint16_t dv_place_411P [1620]
static const uint16_t dv_place_411 [1350]
static const uint16_t dv_place_422_525 [2 *10 *27 *5]
static const uint16_t dv_place_422_625 [2 *12 *27 *5]
static const int dv_weight_bits = 18
static const int dv_weight_88 [64]
static const int dv_weight_248 [64]
static const int dv_iweight_bits = 14
static const int dv_iweight_88 [64]
static const int dv_iweight_248 [64]
static const uint8_t dv_audio_shuffle525 [10][9]
static const uint8_t dv_audio_shuffle625 [12][9]
static const av_unused int dv_audio_frequency [3]
static const DVprofile dv_profiles []


Detailed Description

Constants for DV codec.

Definition in file dvdata.h.


Define Documentation

#define DV_MAX_FRAME_SIZE   288000

Definition at line 2662 of file dvdata.h.

#define DV_PROFILE_BYTES   (6*80)

Definition at line 2659 of file dvdata.h.

Referenced by dv_produce_packet(), and dv_read_header().

#define NB_DV_VLC   409

Definition at line 61 of file dvdata.h.

Referenced by dvvideo_init().


Enumeration Type Documentation

Enumerator:
dv_header525 
dv_header625 
dv_timecode 
dv_audio_source 
dv_audio_control 
dv_audio_recdate 
dv_audio_rectime 
dv_video_source 
dv_video_control 
dv_video_recdate 
dv_video_rectime 
dv_unknown_pack 

Definition at line 2643 of file dvdata.h.

Enumerator:
dv_sect_header 
dv_sect_subcode 
dv_sect_vaux 
dv_sect_audio 
dv_sect_video 

Definition at line 2635 of file dvdata.h.


Function Documentation

static const DVprofile* dv_codec_profile ( AVCodecContext codec  )  [inline, static]

Definition at line 2684 of file dvdata.h.

Referenced by dv_frame_offset(), and dv_init_mux().

static const DVprofile* dv_frame_profile ( const uint8_t frame  )  [inline, static]

Definition at line 2664 of file dvdata.h.

Referenced by dv_produce_packet(), and dv_read_header().

static int dv_write_dif_id ( enum dv_section_type  t,
uint8_t  chan_num,
uint8_t  seq_num,
uint8_t  dif_num,
uint8_t buf 
) [inline, static]

Definition at line 2698 of file dvdata.h.

Referenced by dv_format_frame().

static int dv_write_ssyb_id ( uint8_t  syb_num,
uint8_t  fr,
uint8_t buf 
) [inline, static]

Definition at line 2710 of file dvdata.h.

Referenced by dv_format_frame().


Variable Documentation

const uint8_t dv_248_areas[64] [static]

Initial value:

 {
    0,0,1,1,1,2,2,3,
    0,0,1,1,2,2,2,3,
    0,1,1,2,2,2,3,3,
    0,1,1,2,2,2,3,3,
    1,1,2,2,2,3,3,3,
    1,1,2,2,2,3,3,3,
    1,2,2,2,3,3,3,3,
    1,2,2,3,3,3,3,3,
}

Definition at line 300 of file dvdata.h.

Referenced by dv_build_unquantize_tables().

const uint8_t dv_88_areas[64] [static]

Initial value:

 {
    0,0,0,1,1,1,2,2,
    0,0,1,1,1,2,2,2,
    0,1,1,1,2,2,2,3,
    1,1,1,2,2,2,3,3,
    1,1,2,2,2,3,3,3,
    1,2,2,2,3,3,3,3,
    2,2,2,3,3,3,3,3,
    2,2,3,3,3,3,3,3,
}

Definition at line 289 of file dvdata.h.

Referenced by dv_build_unquantize_tables().

const av_unused int dv_audio_frequency[3] [static]

Initial value:

 {
    48000, 44100, 32000,
}

Definition at line 2543 of file dvdata.h.

Referenced by dv_extract_audio_info().

const uint8_t dv_audio_shuffle525[10][9] [static]

Initial value:

 {
  {  0, 30, 60, 20, 50, 80, 10, 40, 70 }, 
  {  6, 36, 66, 26, 56, 86, 16, 46, 76 },
  { 12, 42, 72,  2, 32, 62, 22, 52, 82 },
  { 18, 48, 78,  8, 38, 68, 28, 58, 88 },
  { 24, 54, 84, 14, 44, 74,  4, 34, 64 },

  {  1, 31, 61, 21, 51, 81, 11, 41, 71 }, 
  {  7, 37, 67, 27, 57, 87, 17, 47, 77 },
  { 13, 43, 73,  3, 33, 63, 23, 53, 83 },
  { 19, 49, 79,  9, 39, 69, 29, 59, 89 },
  { 25, 55, 85, 15, 45, 75,  5, 35, 65 },
}

Definition at line 2513 of file dvdata.h.

const uint8_t dv_audio_shuffle625[12][9] [static]

Initial value:

 {
  {   0,  36,  72,  26,  62,  98,  16,  52,  88}, 
  {   6,  42,  78,  32,  68, 104,  22,  58,  94},
  {  12,  48,  84,   2,  38,  74,  28,  64, 100},
  {  18,  54,  90,   8,  44,  80,  34,  70, 106},
  {  24,  60,  96,  14,  50,  86,   4,  40,  76},
  {  30,  66, 102,  20,  56,  92,  10,  46,  82},

  {   1,  37,  73,  27,  63,  99,  17,  53,  89}, 
  {   7,  43,  79,  33,  69, 105,  23,  59,  95},
  {  13,  49,  85,   3,  39,  75,  29,  65, 101},
  {  19,  55,  91,   9,  45,  81,  35,  71, 107},
  {  25,  61,  97,  15,  51,  87,   5,  41,  77},
  {  31,  67, 103,  21,  57,  93,  11,  47,  83},
}

Definition at line 2527 of file dvdata.h.

const int dv_iweight_248[64] [static]

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 2502 of file dvdata.h.

Referenced by dv_decode_video_segment().

const int dv_iweight_88[64] [static]

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 2492 of file dvdata.h.

Referenced by dv_decode_video_segment().

const int dv_iweight_bits = 14 [static]

Definition at line 2491 of file dvdata.h.

Referenced by dv_decode_ac().

const uint16_t dv_place_411[1350] [static]

Definition at line 995 of file dvdata.h.

const uint16_t dv_place_411P[1620] [static]

Definition at line 668 of file dvdata.h.

const uint16_t dv_place_420[1620] [static]

Definition at line 341 of file dvdata.h.

const uint16_t dv_place_422_525[2 *10 *27 *5] [static]

Definition at line 1272 of file dvdata.h.

const uint16_t dv_place_422_625[2 *12 *27 *5] [static]

Definition at line 1817 of file dvdata.h.

const DVprofile dv_profiles[] [static]

Definition at line 2547 of file dvdata.h.

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

Definition at line 336 of file dvdata.h.

Referenced by dv_decode_video_segment(), and dv_guess_qnos().

const uint8_t dv_quant_shifts[22][4] [static]

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 311 of file dvdata.h.

Referenced by dv_build_unquantize_tables(), and dv_guess_qnos().

const uint16_t dv_vlc_bits[409] [static]

Definition at line 68 of file dvdata.h.

Referenced by dvvideo_init().

const uint8_t dv_vlc_len[409] [static]

Definition at line 123 of file dvdata.h.

Referenced by dvvideo_init().

const uint8_t dv_vlc_level[409] [static]

Definition at line 233 of file dvdata.h.

Referenced by dvvideo_init().

const uint8_t dv_vlc_run[409] [static]

Definition at line 178 of file dvdata.h.

Referenced by dvvideo_init().

const int dv_weight_248[64] [static]

Initial value:

 {
 131072, 242189, 257107, 237536, 229376, 200636, 242189, 223754,
 224969, 196781, 262144, 242189, 229376, 200636, 257107, 237536,
 211916, 185364, 235923, 217965, 229376, 211916, 206433, 180568,
 242189, 223754, 224969, 196781, 211916, 185364, 235923, 217965,
 200704, 175557, 222935, 205965, 200636, 185364, 195068, 170627,
 229376, 211916, 206433, 180568, 200704, 175557, 222935, 205965,
 175557, 153560, 188995, 174609, 165371, 144651, 200636, 185364,
 195068, 170627, 175557, 153560, 188995, 174609, 165371, 144651,
}

Definition at line 2481 of file dvdata.h.

Referenced by dv_encode_video_segment().

const int dv_weight_88[64] [static]

Initial value:

 {
 131072, 257107, 257107, 242189, 252167, 242189, 235923, 237536,
 237536, 235923, 229376, 231390, 223754, 231390, 229376, 222935,
 224969, 217965, 217965, 224969, 222935, 200636, 218652, 211916,
 212325, 211916, 218652, 200636, 188995, 196781, 205965, 206433,
 206433, 205965, 196781, 188995, 185364, 185364, 200636, 200704,
 200636, 185364, 185364, 174609, 180568, 195068, 195068, 180568,
 174609, 170091, 175557, 189591, 175557, 170091, 165371, 170627,
 170627, 165371, 160727, 153560, 160727, 144651, 144651, 136258,
}

Definition at line 2471 of file dvdata.h.

Referenced by dv_encode_video_segment().

const int dv_weight_bits = 18 [static]

Definition at line 2470 of file dvdata.h.

Referenced by dv_set_class_number().


Generated on Thu Apr 2 07:16:12 2009 for ffmpeg by  doxygen 1.5.6