FFmpeg
Data Structures | Macros | Enumerations | Functions | Variables
dv.h File Reference
#include "avcodec.h"
#include "dv_profile.h"
#include "me_cmp.h"
#include "vlc.h"
#include "idctdsp.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_1080i60(p)   (((p)->video_stype == 0x14) && ((p)->dsf == 0))
 
#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

◆ DV_PROFILE_IS_HD

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

Definition at line 84 of file dv.h.

◆ DV_PROFILE_IS_1080i50

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

Definition at line 85 of file dv.h.

◆ DV_PROFILE_IS_1080i60

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

Definition at line 86 of file dv.h.

◆ DV_PROFILE_IS_720p50

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

Definition at line 87 of file dv.h.

◆ DV_MAX_FRAME_SIZE

#define DV_MAX_FRAME_SIZE   576000

largest possible DV frame, in bytes (1080i50)

Definition at line 92 of file dv.h.

◆ DV_MAX_BPM

#define DV_MAX_BPM   8

maximum number of blocks per macroblock in any DV format

Definition at line 97 of file dv.h.

◆ TEX_VLC_BITS

#define TEX_VLC_BITS   10

Definition at line 99 of file dv.h.

Enumeration Type Documentation

◆ dv_section_type

Enumerator
dv_sect_header 
dv_sect_subcode 
dv_sect_vaux 
dv_sect_audio 
dv_sect_video 

Definition at line 61 of file dv.h.

◆ dv_pack_type

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

Function Documentation

◆ ff_dv_init_dynamic_tables()

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().

◆ ff_dvvideo_init()

int ff_dvvideo_init ( AVCodecContext avctx)

Definition at line 198 of file dv.c.

Referenced by dvvideo_decode_init(), and dvvideo_encode_init().

◆ dv_work_pool_size()

static int dv_work_pool_size ( const AVDVProfile d)
inlinestatic

Definition at line 107 of file dv.h.

Referenced by dvvideo_decode_frame(), and dvvideo_encode_frame().

◆ dv_calculate_mb_xy()

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

Definition at line 117 of file dv.h.

Referenced by dv_decode_video_segment(), and dv_encode_video_segment().

Variable Documentation

◆ ff_dv_rl_vlc

RL_VLC_ELEM ff_dv_rl_vlc[1664]

Definition at line 52 of file dv.c.

Referenced by dv_decode_ac(), and ff_dvvideo_init().