dvenc.c File Reference

Go to the source code of this file.

Classes

struct  DVMuxContext

Functions

static int dv_audio_frame_size (const DVprofile *sys, int frame)
static int dv_write_pack (enum dv_pack_type pack_id, DVMuxContext *c, uint8_t *buf,...)
static void dv_inject_audio (DVMuxContext *c, int channel, uint8_t *frame_ptr)
static void dv_inject_metadata (DVMuxContext *c, uint8_t *frame)
int dv_assemble_frame (DVMuxContext *c, AVStream *st, const uint8_t *data, int data_size, uint8_t **frame)
DVMuxContextdv_init_mux (AVFormatContext *s)
void dv_delete_mux (DVMuxContext *c)
static int dv_write_header (AVFormatContext *s)
static int dv_write_packet (struct AVFormatContext *s, AVPacket *pkt)
static int dv_write_trailer (struct AVFormatContext *s)

Variables

static const int dv_aaux_packs_dist [12][9]
AVOutputFormat dv_muxer


Function Documentation

static int dv_audio_frame_size ( const DVprofile sys,
int  frame 
) [static]

Definition at line 64 of file dvenc.c.

Referenced by dv_assemble_frame(), dv_inject_audio(), and dv_write_pack().

static int dv_write_pack ( enum dv_pack_type  pack_id,
DVMuxContext c,
uint8_t *  buf,
  ... 
) [static]

Definition at line 70 of file dvenc.c.

static void dv_inject_audio ( DVMuxContext c,
int  channel,
uint8_t *  frame_ptr 
) [static]

Definition at line 178 of file dvenc.c.

Referenced by dv_assemble_frame().

static void dv_inject_metadata ( DVMuxContext c,
uint8_t *  frame 
) [static]

Definition at line 200 of file dvenc.c.

Referenced by dv_assemble_frame().

int dv_assemble_frame ( DVMuxContext c,
AVStream st,
const uint8_t *  data,
int  data_size,
uint8_t **  frame 
)

Definition at line 233 of file dvenc.c.

Referenced by dv_write_packet().

DVMuxContext* dv_init_mux ( AVFormatContext s  ) 

Definition at line 286 of file dvenc.c.

Referenced by dv_write_header().

void dv_delete_mux ( DVMuxContext c  ) 

Definition at line 355 of file dvenc.c.

Referenced by dv_write_trailer().

static int dv_write_header ( AVFormatContext s  )  [static]

Definition at line 363 of file dvenc.c.

static int dv_write_packet ( struct AVFormatContext s,
AVPacket pkt 
) [static]

Definition at line 375 of file dvenc.c.

static int dv_write_trailer ( struct AVFormatContext s  )  [static]

Definition at line 395 of file dvenc.c.


Variable Documentation

const int dv_aaux_packs_dist[12][9] [static]

Initial value:

 {
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
    { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
    { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
}

Definition at line 49 of file dvenc.c.

Referenced by dv_inject_audio().

Initial value:

 {
    "dv",
    "DV video format",
    NULL,
    "dv",
    sizeof(DVMuxContext),
    CODEC_ID_PCM_S16LE,
    CODEC_ID_DVVIDEO,
    dv_write_header,
    dv_write_packet,
    dv_write_trailer,
}

Definition at line 403 of file dvenc.c.


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5