FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
dv.h File Reference

Constants for DV codec. More...

#include "avcodec.h"
#include "dv_profile.h"
#include "me_cmp.h"
#include "vlc.h"

Go to the source code of this file.

Data Structures

struct  DVwork_chunk
 
struct  DVVideoContext
 

Macros

#define DV_PROFILE_IS_HD(p)   ((p)->video_stype & 0x10)
 
#define DV_PROFILE_IS_1080i50(p)   (((p)->video_stype == 0x14) && ((p)->dsf == 1))
 
#define DV_PROFILE_IS_720p50(p)   (((p)->video_stype == 0x18) && ((p)->dsf == 1))
 
#define DV_MAX_FRAME_SIZE   576000
 largest possible DV frame, in bytes (1080i50) More...
 
#define DV_MAX_BPM   8
 maximum number of blocks per macroblock in any DV format More...
 
#define TEX_VLC_BITS   10
 

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

int ff_dv_init_dynamic_tables (DVVideoContext *s, const AVDVProfile *d)
 
int ff_dvvideo_init (AVCodecContext *avctx)
 
static int dv_work_pool_size (const AVDVProfile *d)
 
static void dv_calculate_mb_xy (DVVideoContext *s, DVwork_chunk *work_chunk, int m, int *mb_x, int *mb_y)
 

Variables

RL_VLC_ELEM ff_dv_rl_vlc [1664]
 

Detailed Description

Constants for DV codec.

Definition in file dv.h.

Macro Definition Documentation

#define DV_PROFILE_IS_HD (   p)    ((p)->video_stype & 0x10)

Definition at line 82 of file dv.h.

Referenced by dv_decode_video_segment(), and dv_init_weight_tables().

#define DV_PROFILE_IS_1080i50 (   p)    (((p)->video_stype == 0x14) && ((p)->dsf == 1))

Definition at line 83 of file dv.h.

Referenced by dv_work_pool_size(), and ff_dv_init_dynamic_tables().

#define DV_PROFILE_IS_720p50 (   p)    (((p)->video_stype == 0x18) && ((p)->dsf == 1))

Definition at line 84 of file dv.h.

Referenced by dv_work_pool_size(), and ff_dv_init_dynamic_tables().

#define DV_MAX_FRAME_SIZE   576000

largest possible DV frame, in bytes (1080i50)

Definition at line 89 of file dv.h.

#define DV_MAX_BPM   8

maximum number of blocks per macroblock in any DV format

Definition at line 94 of file dv.h.

Referenced by dv_decode_video_segment(), and dv_encode_video_segment().

#define TEX_VLC_BITS   10

Enumeration Type Documentation

Enumerator
dv_sect_header 
dv_sect_subcode 
dv_sect_vaux 
dv_sect_audio 
dv_sect_video 

Definition at line 59 of file dv.h.

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 67 of file dv.h.

Function Documentation

int ff_dv_init_dynamic_tables ( DVVideoContext s,
const AVDVProfile d 
)

Definition at line 175 of file dv.c.

Referenced by dvvideo_decode_frame(), and dvvideo_encode_init().

int ff_dvvideo_init ( AVCodecContext avctx)

Definition at line 198 of file dv.c.

Referenced by dvvideo_decode_init(), and dvvideo_encode_init().

static int dv_work_pool_size ( const AVDVProfile d)
inlinestatic

Definition at line 104 of file dv.h.

Referenced by dvvideo_decode_frame(), and dvvideo_encode_frame().

static void dv_calculate_mb_xy ( DVVideoContext s,
DVwork_chunk work_chunk,
int  m,
int mb_x,
int mb_y 
)
inlinestatic

Definition at line 114 of file dv.h.

Referenced by dv_decode_video_segment(), and dv_encode_video_segment().

Variable Documentation

RL_VLC_ELEM ff_dv_rl_vlc[1664]

Definition at line 52 of file dv.c.

Referenced by dv_decode_ac().