FFmpegfs Fuse Multi Media Filesystem 2.16
Public Member Functions | Public Attributes | List of all members
FFmpeg_Transcoder::StreamRef Class Reference

In/output stream reference data. More...

#include <ffmpeg_transcoder.h>

Public Member Functions

void set_codec_ctx (AVCodecContext *codec_ctx)
 Set the AVCodecContext pointer. Will be shared and deleted after the last consumer freed it. More...
 
void reset ()
 Close (reset) AVCodecContext pointer. More...
 

Public Attributes

std::shared_ptr< AVCodecContext > m_codec_ctx
 AVCodecContext for this encoder stream. More...
 
AVStream * m_stream
 AVStream for this encoder stream. More...
 
int m_stream_idx
 Stream index in AVFormatContext. More...
 
int64_t m_start_time
 Start time of the stream in stream time base units, may be 0. More...
 

Detailed Description

In/output stream reference data.

<

Definition at line 114 of file ffmpeg_transcoder.h.

Constructor & Destructor Documentation

◆ StreamRef()

FFmpeg_Transcoder::StreamRef::StreamRef ( )

Definition at line 170 of file ffmpeg_transcoder.cc.

◆ ~StreamRef()

FFmpeg_Transcoder::StreamRef::~StreamRef ( )
virtual

Definition at line 178 of file ffmpeg_transcoder.cc.

Member Function Documentation

◆ reset()

void FFmpeg_Transcoder::StreamRef::reset ( )

Close (reset) AVCodecContext pointer.

Definition at line 210 of file ffmpeg_transcoder.cc.

Referenced by FFmpeg_Transcoder::close_input_file(), and FFmpeg_Transcoder::close_output_file().

◆ set_codec_ctx()

void FFmpeg_Transcoder::StreamRef::set_codec_ctx ( AVCodecContext *  codec_ctx)

Member Data Documentation

◆ m_codec_ctx

std::shared_ptr<AVCodecContext> FFmpeg_Transcoder::StreamRef::m_codec_ctx

◆ m_start_time

int64_t FFmpeg_Transcoder::StreamRef::m_start_time

Start time of the stream in stream time base units, may be 0.

Definition at line 135 of file ffmpeg_transcoder.h.

Referenced by FFmpeg_Transcoder::create_audio_frame(), FFmpeg_Transcoder::decode_video_frame(), FFmpeg_Transcoder::open_output(), and FFmpeg_Transcoder::store_packet().

◆ m_stream

AVStream* FFmpeg_Transcoder::StreamRef::m_stream

◆ m_stream_idx

int FFmpeg_Transcoder::StreamRef::m_stream_idx

The documentation for this class was generated from the following files: