![]() |
![]() |
#include <Loader.h>
Data Fields | |
UInt32 | readBufSize |
Size of the read buffer in bytes, needs to be 2xreadSize (??). | |
UInt32 | readSize |
Size of the "window" in bytes. This amount of data will always be made available (if possible). When used with an elementary stream decoder this needs to be the size of the minum sized encoded frame. | |
UInt32 | readAhead |
In the asynchronous case the thread calling Loader_readData may want to load further in advance of the window, and this parameter lets you specify the amount of bytes in advance to read. This parameter is ignored in the synchronous case. | |
UInt32 | vBufSize |
Some platforms may benefit from tweaking the stdio buffer size using setvbuf. This parameter allows tweaking the size of this buffer. If set to 0, no setvbuf call will be made. | |
Int | async |
When set to TRUE, this enables asynchronous mode in the Loader module. This is used to parallellize the I/O with the processing, and is achieved by calling Loader_readData in a separate thread from Loader_getFrame. | |
Memory_AllocParams | mParams |
Memory allocation parameters used to allocate the read buffer of the Loader. |
UInt32 Loader_Attrs::readBufSize |
Size of the read buffer in bytes, needs to be 2xreadSize (??).
UInt32 Loader_Attrs::readSize |
Size of the "window" in bytes. This amount of data will always be made available (if possible). When used with an elementary stream decoder this needs to be the size of the minum sized encoded frame.
UInt32 Loader_Attrs::readAhead |
In the asynchronous case the thread calling Loader_readData may want to load further in advance of the window, and this parameter lets you specify the amount of bytes in advance to read. This parameter is ignored in the synchronous case.
UInt32 Loader_Attrs::vBufSize |
Some platforms may benefit from tweaking the stdio buffer size using setvbuf. This parameter allows tweaking the size of this buffer. If set to 0, no setvbuf call will be made.
When set to TRUE, this enables asynchronous mode in the Loader module. This is used to parallellize the I/O with the processing, and is achieved by calling Loader_readData in a separate thread from Loader_getFrame.
Memory_AllocParams Loader_Attrs::mParams |
Memory allocation parameters used to allocate the read buffer of the Loader.