MythTV  master
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MythAVFormatBuffer Class Reference

#include <libmythtv/io/mythavformatbuffer.h>

Collaboration diagram for MythAVFormatBuffer:
[legend]

Public Member Functions

 MythAVFormatBuffer (MythMediaBuffer *Buffer, bool write_flag, bool force_seek)
 
 ~MythAVFormatBuffer ()
 
void SetInInit (bool State)
 
bool IsInInit (void) const
 
AVIOContext * getAVIOContext ()
 

Private Member Functions

AVIOContext * alloc_context (bool write_flag, bool force_seek)
 

Static Private Member Functions

static int read_packet (void *opaque, uint8_t *buf, int buf_size)
 
static int write_packet (void *opaque, const uint8_t *buf, int buf_size)
 
static int64_t seek (void *opaque, int64_t offset, int whence)
 

Private Attributes

MythMediaBufferm_buffer { nullptr }
 
bool m_initState { true }
 
AVIOContext * m_avioContext { nullptr }
 

Detailed Description

Definition at line 12 of file mythavformatbuffer.h.

Constructor & Destructor Documentation

◆ MythAVFormatBuffer()

MythAVFormatBuffer::MythAVFormatBuffer ( MythMediaBuffer Buffer,
bool  write_flag,
bool  force_seek 
)

Definition at line 14 of file mythavformatbuffer.cpp.

◆ ~MythAVFormatBuffer()

MythAVFormatBuffer::~MythAVFormatBuffer ( )

Definition at line 23 of file mythavformatbuffer.cpp.

Member Function Documentation

◆ SetInInit()

void MythAVFormatBuffer::SetInInit ( bool  State)

Definition at line 103 of file mythavformatbuffer.cpp.

Referenced by AvFormatDecoder::OpenFile().

◆ IsInInit()

bool MythAVFormatBuffer::IsInInit ( void  ) const

Definition at line 109 of file mythavformatbuffer.cpp.

◆ getAVIOContext()

AVIOContext* MythAVFormatBuffer::getAVIOContext ( )
inline

◆ read_packet()

int MythAVFormatBuffer::read_packet ( void *  opaque,
uint8_t *  buf,
int  buf_size 
)
staticprivate

Definition at line 66 of file mythavformatbuffer.cpp.

Referenced by alloc_context().

◆ write_packet()

int MythAVFormatBuffer::write_packet ( void *  opaque,
const uint8_t *  buf,
int  buf_size 
)
staticprivate

Definition at line 79 of file mythavformatbuffer.cpp.

Referenced by alloc_context().

◆ seek()

int64_t MythAVFormatBuffer::seek ( void *  opaque,
int64_t  offset,
int  whence 
)
staticprivate

Definition at line 88 of file mythavformatbuffer.cpp.

Referenced by alloc_context().

◆ alloc_context()

AVIOContext * MythAVFormatBuffer::alloc_context ( bool  write_flag,
bool  force_seek 
)
private

Definition at line 43 of file mythavformatbuffer.cpp.

Member Data Documentation

◆ m_buffer

MythMediaBuffer* MythAVFormatBuffer::m_buffer { nullptr }
private

Definition at line 30 of file mythavformatbuffer.h.

Referenced by alloc_context(), and SetInInit().

◆ m_initState

bool MythAVFormatBuffer::m_initState { true }
private

Definition at line 31 of file mythavformatbuffer.h.

Referenced by IsInInit(), and SetInInit().

◆ m_avioContext

AVIOContext* MythAVFormatBuffer::m_avioContext { nullptr }
private

Definition at line 32 of file mythavformatbuffer.h.

Referenced by getAVIOContext(), MythAVFormatBuffer(), and ~MythAVFormatBuffer().


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