mw::mo::moflex::Reader Structure

Syntax


struct Reader
{
    bool (*m_SetPacketSize)      (void* userData, u32 packetSize);
    u32  (*m_GetPacketSize)      (void* userData);
    bool (*m_GetPacketPtr)       (void* userData, const u8** packetPtr);
    bool (*m_PacketAddBytesRead) (void* userData, u32 bytesRead);
    s64  (*m_GetSize)            (void* userData);
    s64  (*m_GetPosition)        (void* userData);
    bool (*m_SetPosition)        (void* userData, s64 newPosition);
    bool (*m_IsEndOfData)        (void* userData);
};

Structure Fields

Names Description
m_CanChangePacketSize Function that tells if the Reader can accept variable packet size.
m_SetPacketSize Function called by the demuxer to inform the Reader of the current Moflex packet size.
m_GetPacketSize Function that gives the current Reader packet size.
m_GetPacketPtr Function that gives the current unread Reader packet pointer.
m_PacketAddBytesRead Function that tells the Reader the quantity of data consumed by the demuxer, in bytes.
m_GetSize Function that gives the size of the Moflex content in bytes.
m_GetPosition Function that gives the current read position in the Moflex content in bytes.
m_SetPosition Function that tells the Reader to seek to a determined position in bytes from the beginning of the Moflex content.
m_IsEndOfData Function that tells if we reached the end of the Moflex content.

Description

Structure that stores functions used to read a Moflex container from a specific media.

Revision History

2010/04/15
Initial version.