MUAN
ffmpeg_rw.c File Reference

Functions

AVStream * add_audio_stream (AVFormatContext *oc, int codec_id)
void open_audio (AVFormatContext *oc, AVStream *st)
void get_audio_frame (int16_t *samples, int frame_size, int nb_channels)
void write_audio_frame (AVFormatContext *oc, AVStream *st)
void close_audio (AVFormatContext *oc, AVStream *st)
AVStream * add_video_stream (AVFormatContext *oc, int codec_id, int width, int height)
void open_video (AVFormatContext *oc, AVStream *st)
void write_video_frame (AVFormatContext *oc, AVStream *st, int frame_count, unsigned char *imgFrame, int key)
void close_video (AVFormatContext *oc, AVStream *st)

Variables

float t
float tincr
float tincr2
int16_t * samples
uint8_taudio_outbuf
int audio_outbuf_size
int audio_input_frame_size
AVFrame * picture
AVFrame * tmp_picture
uint8_tvideo_outbuf
int video_outbuf_size

Function Documentation

AVStream* add_audio_stream ( AVFormatContext *  oc,
int  codec_id 
)
AVStream* add_video_stream ( AVFormatContext *  oc,
int  codec_id,
int  width,
int  height 
)
void close_audio ( AVFormatContext *  oc,
AVStream *  st 
)

References audio_outbuf, and samples.

Referenced by VideoEncoder::avffmpeg_write().

void close_video ( AVFormatContext *  oc,
AVStream *  st 
)

References tmp_picture, and video_outbuf.

Referenced by VideoEncoder::avffmpeg_write().

void get_audio_frame ( int16_t *  samples,
int  frame_size,
int  nb_channels 
)

References samples, t, tincr, and tincr2.

Referenced by write_audio_frame().

void open_audio ( AVFormatContext *  oc,
AVStream *  st 
)
void open_video ( AVFormatContext *  oc,
AVStream *  st 
)
void write_audio_frame ( AVFormatContext *  oc,
AVStream *  st 
)
void write_video_frame ( AVFormatContext *  oc,
AVStream *  st,
int  frame_count,
unsigned char *  imgFrame,
int  key 
)

Variable Documentation

AVFrame* picture
float t
float tincr

Referenced by get_audio_frame(), and open_audio().

float tincr2

Referenced by get_audio_frame(), and open_audio().