Public Member Functions

 OutputStream (const LibavOutputSettings &set, AVFormatContext *oc, const StreamOptions &opts)
 
void init_audio (const LibavOutputSettings &set, AVCodecContext *c)
 
void init_video (const LibavOutputSettings &set, AVCodecContext *c)
 
void open_audio (const LibavOutputSettings &set, AVFormatContext *oc, const AVCodec *codec, AVDictionary *opt_arg)
 
void open_video (const LibavOutputSettings &set, AVFormatContext *oc, const AVCodec *codec, AVDictionary *opt_arg)
 
void open (const LibavOutputSettings &set, AVFormatContext *oc, const AVCodec *codec, AVDictionary *opt_arg)
 
void close (AVFormatContext *oc)
 
AVFrame * get_video_frame ()
 
AVFrame * get_audio_frame ()
 
int write_video_frame (AVFormatContext *fmt_ctx, AVFrame *input_frame)
 
int write_audio_frame (AVFormatContext *fmt_ctx, AVFrame *input_frame)
 

Static Public Member Functions

static AVFrame * alloc_audio_frame (enum AVSampleFormat sample_fmt, const AVChannelLayout *channel_layout, int sample_rate, int nb_samples)
 
static AVFrame * alloc_video_frame (enum AVPixelFormat pix_fmt, int width, int height)
 

Public Attributes

const AVCodec * codec {}
 
AVStream * st {}
 
AVCodecContext * enc {}
 
int64_t next_pts {}
 
int samples_count {}
 
AVFrame * cache_input_frame {}
 
AVFrame * tmp_frame {}
 
AVPacket * tmp_pkt {}
 
struct SwsContext * sws_ctx {}
 
std::vector< std::unique_ptr< r8b::CDSPResampler > > resamplers
 
std::unique_ptr< AudioFrameEncoderencoder
 

The documentation for this struct was generated from the following file: