dv_profile.c File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "dv_profile.h"
Include dependency graph for dv_profile.c:

Go to the source code of this file.

Functions

const DVprofileavpriv_dv_frame_profile2 (AVCodecContext *codec, const DVprofile *sys, const uint8_t *frame, unsigned buf_size)
 
const DVprofileavpriv_dv_frame_profile (const DVprofile *sys, const uint8_t *frame, unsigned buf_size)
 
const DVprofileavpriv_dv_codec_profile (AVCodecContext *codec)
 
void ff_dv_print_profiles (void *logctx, int loglevel)
 Print all allowed DV profiles into logctx at specified logging level. More...
 

Variables

static DVwork_chunk work_chunks_dv25pal [1 *12 *27]
 
static DVwork_chunk work_chunks_dv25pal411 [1 *12 *27]
 
static DVwork_chunk work_chunks_dv25ntsc [1 *10 *27]
 
static DVwork_chunk work_chunks_dv50pal [2 *12 *27]
 
static DVwork_chunk work_chunks_dv50ntsc [2 *10 *27]
 
static DVwork_chunk work_chunks_dv100palp [2 *12 *27]
 
static DVwork_chunk work_chunks_dv100ntscp [2 *10 *27]
 
static DVwork_chunk work_chunks_dv100pali [4 *12 *27]
 
static DVwork_chunk work_chunks_dv100ntsci [4 *10 *27]
 
static uint32_t dv_idct_factor_sd [2 *2 *22 *64]
 
static uint32_t dv_idct_factor_hd1080 [2 *4 *16 *64]
 
static uint32_t dv_idct_factor_hd720 [2 *4 *16 *64]
 
static const uint8_t dv_audio_shuffle525 [10][9]
 
static const uint8_t dv_audio_shuffle625 [12][9]
 
static const uint8_t block_sizes_dv2550 [8]
 
static const uint8_t block_sizes_dv100 [8]
 
static const DVprofile dv_profiles []
 

Function Documentation

const DVprofile* avpriv_dv_codec_profile ( AVCodecContext codec)

Definition at line 329 of file dv_profile.c.

Referenced by dv_frame_offset(), dv_init_mux(), dv_write_pack(), and dvvideo_init_encoder().

const DVprofile* avpriv_dv_frame_profile ( const DVprofile sys,
const uint8_t frame,
unsigned  buf_size 
)

Definition at line 323 of file dv_profile.c.

Referenced by avpriv_dv_produce_packet(), and dv_read_header().

const DVprofile* avpriv_dv_frame_profile2 ( AVCodecContext codec,
const DVprofile sys,
const uint8_t frame,
unsigned  buf_size 
)

Definition at line 284 of file dv_profile.c.

Referenced by avpriv_dv_frame_profile(), and dvvideo_decode_frame().

void ff_dv_print_profiles ( void logctx,
int  loglevel 
)

Print all allowed DV profiles into logctx at specified logging level.

Definition at line 351 of file dv_profile.c.

Referenced by dvvideo_init_encoder().

Variable Documentation

const uint8_t block_sizes_dv100[8]
static
Initial value:
= {
80, 80, 80, 80, 80, 80, 64, 64,
}

Definition at line 77 of file dv_profile.c.

const uint8_t block_sizes_dv2550[8]
static
Initial value:
= {
112, 112, 112, 112, 80, 80, 0, 0,
}

Definition at line 73 of file dv_profile.c.

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 42 of file dv_profile.c.

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 56 of file dv_profile.c.

uint32_t dv_idct_factor_hd1080[2 *4 *16 *64]
static

Definition at line 39 of file dv_profile.c.

uint32_t dv_idct_factor_hd720[2 *4 *16 *64]
static

Definition at line 40 of file dv_profile.c.

uint32_t dv_idct_factor_sd[2 *2 *22 *64]
static

Definition at line 38 of file dv_profile.c.

const DVprofile dv_profiles[]
static

Definition at line 81 of file dv_profile.c.

DVwork_chunk work_chunks_dv100ntsci[4 *10 *27]
static

Definition at line 36 of file dv_profile.c.

DVwork_chunk work_chunks_dv100ntscp[2 *10 *27]
static

Definition at line 34 of file dv_profile.c.

DVwork_chunk work_chunks_dv100pali[4 *12 *27]
static

Definition at line 35 of file dv_profile.c.

DVwork_chunk work_chunks_dv100palp[2 *12 *27]
static

Definition at line 33 of file dv_profile.c.

DVwork_chunk work_chunks_dv25ntsc[1 *10 *27]
static

Definition at line 30 of file dv_profile.c.

DVwork_chunk work_chunks_dv25pal[1 *12 *27]
static

Definition at line 28 of file dv_profile.c.

DVwork_chunk work_chunks_dv25pal411[1 *12 *27]
static

Definition at line 29 of file dv_profile.c.

DVwork_chunk work_chunks_dv50ntsc[2 *10 *27]
static

Definition at line 32 of file dv_profile.c.

DVwork_chunk work_chunks_dv50pal[2 *12 *27]
static

Definition at line 31 of file dv_profile.c.