CRI Sofdec2
Last Updated: 2022-11-21 16:25 p
|
Data Structures | |
struct | CriManaLibConfig |
Mana library initialization parameters. More... | |
struct | CriManaPlaybackCommonParams |
Basic parameters for playback work. More... | |
Macros | |
#define | criMana_SetDefaultLibConfig(p_config) |
Set default values for the library initialization config structure. More... | |
#define | CriManaMetaMallocFunc CriManaMallocFunc |
Memory allocation function for meta data work. More... | |
#define | CriManaMetaFreeFunc CriManaFreeFunc |
Memory release function for meta data work. More... | |
Typedefs | |
typedef void *(* | CriManaMallocFunc) (void *obj, CriUint32 size) |
Memory allocation function. More... | |
typedef void(* | CriManaFreeFunc) (void *obj, void *mem) |
Memory release function. More... | |
Enumerations | |
enum | CriManaThreadModel { CRIMANA_THREAD_MODEL_MULTI = 0 , CRIMANA_THREAD_MODEL_SINGLE = 1 , CRIMANA_THREAD_MODEL_ENUM_SIZE_IS_4BYTES = 0x7FFFFFFF } |
Thread model. More... | |
enum | CriManaDecodeMode { CRIMANA_DECODE_MODE_NORMAL = 0 , CRIMANA_DECODE_MODE_B_SKIP = 1 , CRIMANA_DECODE_MODE_ENUM_SIZE_IS_4BYTES = 0x7FFFFFFF } |
Decoder operation mode. More... | |
Functions | |
const CriChar8 * | criMana_GetLibraryVersionString (void) |
Returns the version number of the Mana library and build information. More... | |
void | criMana_SetUserAllocator (CriManaMallocFunc malloc_func, CriManaFreeFunc free_func, void *obj) |
Register user allocator. More... | |
CriSint32 | criMana_CalculateLibWorkSize (const CriManaLibConfig *config) |
Calculate library initialization work area size. More... | |
void | criMana_Initialize (const CriManaLibConfig *config, void *work, CriSint32 work_size) |
Library initialization. More... | |
void | criMana_InitializeFrameARGB32 (void) |
Initialize frame conversion (32bit ARGB8888 format) More... | |
void | criMana_Finalize (void) |
Finalize library. More... | |
CriBool | criMana_IsInitialized (void) |
Get library initialization status. More... | |
void | criMana_ExecuteMain (void) |
Execute server processing. More... | |
void | criMana_SyncMasterTimer (void) |
Synchronize with the master timer. More... | |
void | criMana_AdvanceManualTimer (void) |
void | criMana_ExecuteVideoProcess (void) |
Decode video (all handles at once) More... | |
void | criMana_SetDecodeSkipFlag (CriBool flag) |
Set the decoding skip flag (all handles at once) More... | |
void | criMana_SetAllPauseFlag (CriBool flag) |
Set overall pause (all handles together) More... | |
CriBool | criMana_GetAllPauseFlag (void) |
Get the overall pause flag. More... | |
void | criMana_Lock (void) |
Prevent decoding interruptions. More... | |
void | criMana_Unlock (void) |
Cancel decoding interruption prevention. More... | |
void | criMana_UseStreamerManager (CriBool flag) |
Set control flag on whether to use the streaming management module. More... | |
CriBool | criMana_IsStreamerManagerUsed (void) |
Get the control flag as to whether or not to use the streaming management module. More... | |
void | criManaPlayer_SetExtDecoderWorkAllocator (CriManaPlayerHn player, CriManaExtDecoderWorkMallocFunc allocfunc, CriManaExtDecoderWorkFreeFunc freefunc, void *obj) |
Register callback for extended decoder work allocation. More... | |
void | criManaPlayer_SetSoundCategoryByName (CriManaPlayerHn player, CriUint32 track_id, const CriChar8 *category_name) |
Audio track category setting. More... | |
void | criManaPlayer_UnsetSoundCategory (CriManaPlayerHn player, CriUint32 track_id) |
Delete audio track category. More... | |
#define criMana_SetDefaultLibConfig | ( | p_config | ) |
Set default values for the library initialization config structure.
[out] | p_config | Pointer to the initialization config structure |
#define CriManaMetaMallocFunc CriManaMallocFunc |
Memory allocation function for meta data work.
#define CriManaMetaFreeFunc CriManaFreeFunc |
Memory release function for meta data work.
typedef void*( * CriManaMallocFunc) (void *obj, CriUint32 size) |
Memory allocation function.
[in] | obj | User specified object |
[in] | size | Requested memory size (in bytes) |
typedef void( * CriManaFreeFunc) (void *obj, void *mem) |
Memory release function.
[in] | obj | User specified object |
[in] | mem | Address of memory to release |
enum CriManaThreadModel |
enum CriManaDecodeMode |
Decoder operation mode.
const CriChar8* criMana_GetLibraryVersionString | ( | void | ) |
Returns the version number of the Mana library and build information.
void criMana_SetUserAllocator | ( | CriManaMallocFunc | malloc_func, |
CriManaFreeFunc | free_func, | ||
void * | obj | ||
) |
Register user allocator.
[in] | malloc_func | Memory allocation function |
[in] | free_func | Memory release function |
[in] | obj | User object (optional) |
CriSint32 criMana_CalculateLibWorkSize | ( | const CriManaLibConfig * | config | ) |
Calculate library initialization work area size.
[in] | config | Initialization config structure |
void criMana_Initialize | ( | const CriManaLibConfig * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Library initialization.
[in] | config | Initialization config structure |
[in] | work | Work area address allocated on the app side (aligned internally) |
[in] | work_size | Work area size (=criMana_CalculateLibWorkSize return value) |
void criMana_InitializeFrameARGB32 | ( | void | ) |
Initialize frame conversion (32bit ARGB8888 format)
void criMana_Finalize | ( | void | ) |
Finalize library.
CriBool criMana_IsInitialized | ( | void | ) |
Get library initialization status.
CRI_FALSE | Uninitialized |
CRI_TRUE | Initialized |
void criMana_ExecuteMain | ( | void | ) |
Execute server processing.
void criMana_SyncMasterTimer | ( | void | ) |
Synchronize with the master timer.
void criMana_AdvanceManualTimer | ( | void | ) |
void criMana_ExecuteVideoProcess | ( | void | ) |
Decode video (all handles at once)
void criMana_SetDecodeSkipFlag | ( | CriBool | flag | ) |
Set the decoding skip flag (all handles at once)
void criMana_SetAllPauseFlag | ( | CriBool | flag | ) |
Set overall pause (all handles together)
[in] | flag | Overall pause flag (CRI_TRUE:Enable overall pause, CRI_FALSE:Disable overall pause) |
CriBool criMana_GetAllPauseFlag | ( | void | ) |
Get the overall pause flag.
void criMana_Lock | ( | void | ) |
Prevent decoding interruptions.
void criMana_Unlock | ( | void | ) |
Cancel decoding interruption prevention.
void criMana_UseStreamerManager | ( | CriBool | flag | ) |
Set control flag on whether to use the streaming management module.
[in] | flag | Control flag (CRI_TRUE: use, CRI_FALSE: not use) |
CriBool criMana_IsStreamerManagerUsed | ( | void | ) |
Get the control flag as to whether or not to use the streaming management module.
void criManaPlayer_SetExtDecoderWorkAllocator | ( | CriManaPlayerHn | player, |
CriManaExtDecoderWorkMallocFunc | allocfunc, | ||
CriManaExtDecoderWorkFreeFunc | freefunc, | ||
void * | obj | ||
) |
Register callback for extended decoder work allocation.
[in] | player | Mana player handle |
[in] | allocfunc | Memory allocation function |
[in] | freefunc | Memory release function |
[in] | obj | User object (optional) |
void criManaPlayer_SetSoundCategoryByName | ( | CriManaPlayerHn | player, |
CriUint32 | track_id, | ||
const CriChar8 * | category_name | ||
) |
Audio track category setting.
[in] | player | Mana player handle |
[in] | track_id | Audio track number (0: Main, 1: Sub, 2: Extra) |
[in] | category_name | Category Name |
void criManaPlayer_UnsetSoundCategory | ( | CriManaPlayerHn | player, |
CriUint32 | track_id | ||
) |
Delete audio track category.
[in] | player | Mana player handle |
[in] | track_id | Audio track number (0: Main, 1: Sub, 2: Extra) |