libavformat/dvenc.c File Reference

#include <time.h>
#include <stdarg.h>
#include "avformat.h"
#include "internal.h"
#include "libavcodec/dvdata.h"
#include "dv.h"
#include "libavutil/fifo.h"

Go to the source code of this file.

Data Structures

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, uint8_t *data, int data_size, uint8_t **frame)
DVMuxContextdv_init_mux (AVFormatContext *s)
void dv_delete_mux (DVMuxContext *c)

Variables

static const int dv_aaux_packs_dist [12][9]


Function Documentation

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

Definition at line 235 of file dvenc.c.

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

Definition at line 66 of file dvenc.c.

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

void dv_delete_mux ( DVMuxContext c  ) 

Definition at line 357 of file dvenc.c.

DVMuxContext* dv_init_mux ( AVFormatContext s  ) 

Definition at line 288 of file dvenc.c.

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

Definition at line 180 of file dvenc.c.

Referenced by dv_assemble_frame().

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

Definition at line 202 of file dvenc.c.

Referenced by dv_assemble_frame().

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

Definition at line 72 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 51 of file dvenc.c.

Referenced by dv_inject_audio().


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8