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

#include <mythavformatbuffer.h>

Collaboration diagram for MythAVFormatBuffer:
Collaboration graph
[legend]

Public Member Functions

 MythAVFormatBuffer (MythMediaBuffer *Buffer=nullptr)
 
void SetBuffer (MythMediaBuffer *Buffer)
 
MythMediaBufferGetBuffer (void)
 
void SetInInit (bool State)
 
bool IsInInit (void) const
 

Static Public Member Functions

static URLProtocol * GetURLProtocol (void)
 
static int WritePacket (void *Context, uint8_t *Buffer, int Size)
 
static int ReadPacket (void *Context, uint8_t *Buffer, int Size)
 
static int64_t SeekPacket (void *Context, int64_t Offset, int Whence)
 
static int Open (URLContext *Context, const char *Filename, int Flags)
 
static int Read (URLContext *Context, uint8_t *Buffer, int Size)
 
static int Write (URLContext *Context, const uint8_t *Buffer, int Size)
 
static int64_t Seek (URLContext *Context, int64_t Offset, int Whence)
 
static int Close (URLContext *)
 

Private Attributes

MythMediaBufferm_buffer { nullptr }
 
bool m_initState { true }
 

Static Private Attributes

static URLProtocol s_avfrURL
 

Detailed Description

Definition at line 13 of file mythavformatbuffer.h.

Constructor & Destructor Documentation

◆ MythAVFormatBuffer()

MythAVFormatBuffer::MythAVFormatBuffer ( MythMediaBuffer Buffer = nullptr)
explicit

Definition at line 7 of file mythavformatbuffer.cpp.

Member Function Documentation

◆ SetBuffer()

void MythAVFormatBuffer::SetBuffer ( MythMediaBuffer Buffer)

Definition at line 12 of file mythavformatbuffer.cpp.

◆ GetBuffer()

MythMediaBuffer * MythAVFormatBuffer::GetBuffer ( void  )

Definition at line 17 of file mythavformatbuffer.cpp.

Referenced by Read(), Seek(), SetInInit(), and Write().

◆ GetURLProtocol()

URLProtocol * MythAVFormatBuffer::GetURLProtocol ( void  )
static

◆ WritePacket()

int MythAVFormatBuffer::WritePacket ( void *  Context,
uint8_t *  Buffer,
int  Size 
)
static

Definition at line 70 of file mythavformatbuffer.cpp.

Referenced by AvFormatDecoder::InitByteContext().

◆ ReadPacket()

int MythAVFormatBuffer::ReadPacket ( void *  Context,
uint8_t *  Buffer,
int  Size 
)
static

Definition at line 77 of file mythavformatbuffer.cpp.

Referenced by AvFormatDecoder::InitByteContext().

◆ SeekPacket()

int64_t MythAVFormatBuffer::SeekPacket ( void *  Context,
int64_t  Offset,
int  Whence 
)
static

Definition at line 84 of file mythavformatbuffer.cpp.

Referenced by AvFormatDecoder::InitByteContext().

◆ Open()

int MythAVFormatBuffer::Open ( URLContext *  Context,
const char *  Filename,
int  Flags 
)
static

Definition at line 22 of file mythavformatbuffer.cpp.

Referenced by GetURLProtocol().

◆ Read()

int MythAVFormatBuffer::Read ( URLContext *  Context,
uint8_t *  Buffer,
int  Size 
)
static

Definition at line 28 of file mythavformatbuffer.cpp.

Referenced by GetURLProtocol().

◆ Write()

int MythAVFormatBuffer::Write ( URLContext *  Context,
const uint8_t *  Buffer,
int  Size 
)
static

Definition at line 41 of file mythavformatbuffer.cpp.

Referenced by GetURLProtocol().

◆ Seek()

int64_t MythAVFormatBuffer::Seek ( URLContext *  Context,
int64_t  Offset,
int  Whence 
)
static

Definition at line 50 of file mythavformatbuffer.cpp.

Referenced by GetURLProtocol().

◆ Close()

int MythAVFormatBuffer::Close ( URLContext *  )
static

Definition at line 65 of file mythavformatbuffer.cpp.

Referenced by GetURLProtocol().

◆ SetInInit()

void MythAVFormatBuffer::SetInInit ( bool  State)

Definition at line 118 of file mythavformatbuffer.cpp.

Referenced by AvFormatDecoder::OpenFile().

◆ IsInInit()

bool MythAVFormatBuffer::IsInInit ( void  ) const

Definition at line 124 of file mythavformatbuffer.cpp.

Member Data Documentation

◆ m_buffer

MythMediaBuffer* MythAVFormatBuffer::m_buffer { nullptr }
private

Definition at line 32 of file mythavformatbuffer.h.

Referenced by GetBuffer(), and SetBuffer().

◆ m_initState

bool MythAVFormatBuffer::m_initState { true }
private

Definition at line 33 of file mythavformatbuffer.h.

Referenced by IsInInit(), and SetInInit().

◆ s_avfrURL

URLProtocol MythAVFormatBuffer::s_avfrURL
staticprivate

Definition at line 34 of file mythavformatbuffer.h.

Referenced by GetURLProtocol().


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