CRI Sofdec2
Last Updated: 2022-11-21 16:25 p
|
Data Structures | |
struct | CriManaEventPoint |
Event point information. More... | |
struct | CriManaCuePointInfo |
Cuepoint information. More... | |
struct | CriManaPlayerConfig |
Configuration structure for player creation. More... | |
struct | CriManaPlaybackVideoParams |
Video-related playback parameters. More... | |
struct | CriManaPlaybackAudioParams |
Audio-related playback parameters. More... | |
struct | CriManaPlaybackSubtitleParams |
Subtitle-related playback parameters. More... | |
struct | CriManaPlaybackAlphaParams |
Alpha channel parameters. More... | |
struct | CriManaPlaybackBasicWorkConfig |
Playback work parameter structure (basic) More... | |
struct | CriManaPlaybackExWorkConfig |
Playback work parameter structure (extended) More... | |
struct | CriManaAudioInfo |
Audio parameters. More... | |
struct | CriManaVideoInfo |
Video parameters. More... | |
struct | CriManaAlphaInfo |
Alpha parameters. More... | |
struct | CriManaMovieInfo |
Movie information structure. More... | |
struct | CriManaImageBufferInfo |
Image information. More... | |
struct | CriManaFrameInfo |
Video frame information. More... | |
struct | CriManaTextureBuffer |
Texture buffer structure. More... | |
struct | CriManaTextureBuffersYUV |
YUV texture buffer structure. More... | |
Macros | |
#define | CRIMANA_MAX_VIDEO_NUM (1) |
Maximum number of video streams in a movie file. More... | |
#define | CRIMANA_MAX_AUDIO_NUM (32) |
Maximum number of audio streams in a movie file. More... | |
#define | CRIMANA_MAX_ALPHA_NUM (1) |
Maximum number of alpha streams in a movie file. More... | |
#define | CRIMANA_AUDIO_TRACK_OFF (-1) |
Specified value for turning off audio playback. More... | |
#define | CRIMANA_AUDIO_TRACK_AUTO (100) |
Default value for audio tracks. More... | |
#define | CRIMANA_MAX_SUBTITLE_NUM (16) |
Maximum number of subtitle channels. More... | |
#define | CRIMANA_MAX_FILE_NAME (256) |
Maximum file name length that can be specified in the Mana player. More... | |
#define | criManaPlayer_SetDefaultHandleConfig(p_config) |
Set default values for the player creation config structure. More... | |
Typedefs | |
typedef CriManaPlayerObj * | CriManaPlayerHn |
Player handle. More... | |
typedef void(* | CriManaPlayerDataRequestCbFunc) (void *obj, CriManaPlayerHn player) |
Data request callback function. More... | |
typedef void(* | CriManaPlayerCuePointCbFunc) (void *obj, CriManaPlayerHn player, CriManaEventPoint *eventinfo) |
Cuepoint callback function. More... | |
Functions | |
CriSint32 | criManaPlayer_CalculateHandleWorkSize (void) |
Calculate ManaPlayer work area size (no config specified) More... | |
CriSint32 | criManaPlayer_CalculateHandleWorkSizeWithConfig (const CriManaPlayerConfig *config) |
Calculate ManaPlayer work area size (config specified) More... | |
CriManaPlayerHn | criManaPlayer_Create (void *work, CriSint32 work_size) |
Create Mana player (no config specified) More... | |
CriManaPlayerHn | criManaPlayer_CreateWithConfig (const CriManaPlayerConfig *config, void *work, CriSint32 work_size) |
Create Mana player (config specified) More... | |
void | criManaPlayer_Destroy (CriManaPlayerHn player) |
Destroy the Mana player. More... | |
void | criManaPlayer_SetMetaDataWorkAllocator (CriManaPlayerHn player, CriManaMetaMallocFunc allocfunc, CriManaMetaFreeFunc freefunc, void *obj, CriManaMetaFlag meta_flag) |
Register meta data allocator. More... | |
CriBool | criManaPlayer_GetPlaybackWorkParam (CriManaPlayerHn player, CriManaPlaybackBasicWorkConfig *config_basic, CriManaPlaybackExWorkConfig *config_ex) |
Get playback work parameter structure. More... | |
CriSint32 | criManaPlayer_CalculatePlaybackWorkSize (CriManaPlayerHn player, const CriManaPlaybackBasicWorkConfig *config_basic, const CriManaPlaybackExWorkConfig *config_ex) |
Calculate playback work area size. More... | |
void | criManaPlayer_SetPlaybackWork (CriManaPlayerHn player, const CriManaPlaybackBasicWorkConfig *config_basic, const CriManaPlaybackExWorkConfig *config_ex, void *work, CriSint32 work_size) |
Set playback work area. More... | |
void | criManaPlayer_FreePlaybackWork (CriManaPlayerHn player) |
Release playback work. More... | |
CriManaPlayerStatus | criManaPlayer_GetStatus (CriManaPlayerHn player) |
Get the Mana player status. More... | |
void | criManaPlayer_ExecuteMain (CriManaPlayerHn player) |
Execute Mana player server processing. More... | |
void | criManaPlayer_SyncMasterTimer (CriManaPlayerHn player) |
Synchronize with the master timer. More... | |
void | criManaPlayer_SetMasterTimerType (CriManaPlayerHn player, CriManaTimerType type) |
Set master timer type. More... | |
CriManaTimerType | criManaPlayer_GetMasterTimerType (CriManaPlayerHn player) |
Get master timer type. More... | |
void | criManaPlayer_SetUserTime (CriManaPlayerHn player, CriUint64 user_count, CriUint64 user_unit) |
Set the user timer time to the master timer time. More... | |
void | criManaPlayer_SetManualTimerUnit (CriManaPlayerHn player, CriUint64 timer_manual_unit_n, CriUint64 timer_manual_unit_d) |
Set unit of manual timer time advancement (rational number format) More... | |
void | criManaPlayer_AdvanceManualTimer (CriManaPlayerHn player) |
Advance manual timer time (count value) More... | |
CriBool | criManaPlayer_ExecuteVideoProcess (CriManaPlayerHn player) |
Video decoding. More... | |
void | criManaPlayer_SetFile (CriManaPlayerHn player, CriFsBinderHn bndrhn, const CriChar8 *path) |
Set movie file. More... | |
void | criManaPlayer_SetData (CriManaPlayerHn player, const void *dataptr, CriSint64 datasize) |
Set data for memory playback. More... | |
void | criManaPlayer_SetContentId (CriManaPlayerHn player, CriFsBinderHn bndrhn, CriSint32 id) |
Set movie file to play (specify CPK Content ID) More... | |
void | criManaPlayer_SetFileRange (CriManaPlayerHn player, const CriChar8 *fname, CriUint64 offset, CriSint64 range) |
Specify the movie file in the pack file (specify file range) More... | |
void | criManaPlayer_SetPreviousDataAgain (CriManaPlayerHn player) |
Reset the same movie data. More... | |
CriBool | criManaPlayer_GetMovieInfo (CriManaPlayerHn player, CriManaMovieInfo *mvinf) |
Get movie header information. More... | |
void | criManaPlayer_DecodeHeader (CriManaPlayerHn player) |
Request header decoding. More... | |
void | criManaPlayer_Prepare (CriManaPlayerHn player) |
Request playback preparation. More... | |
void | criManaPlayer_Start (CriManaPlayerHn player) |
Start playback. More... | |
void | criManaPlayer_Stop (CriManaPlayerHn player) |
Requests play to stop. More... | |
void | criManaPlayer_StopAndWaitCompletion (CriManaPlayerHn player) |
Stop playback (complete return API) More... | |
void | criManaPlayer_Pause (CriManaPlayerHn player, CriBool sw) |
Switch play pause. More... | |
CriBool | criManaPlayer_IsPaused (CriManaPlayerHn player) |
Get play pause status. More... | |
void | criManaPlayer_Loop (CriManaPlayerHn player, CriBool sw) |
Switch play loop. More... | |
void | criManaPlayer_GetTime (CriManaPlayerHn player, CriUint64 *count, CriUint64 *unit) |
Get playback time. More... | |
CriSint32 | criManaPlayer_GetInputBufferSize (CriManaPlayerHn player) |
Get input buffer size. More... | |
CriSint32 | criManaPlayer_GetInputBufferRemainSize (CriManaPlayerHn player) |
Get amount of remaining data in input buffer. More... | |
void | criManaPlayer_SetNumberOfFramePools (CriManaPlayerHn player, CriUint32 npools) |
Specify the number of internal video buffers (frame pools) More... | |
void | criManaPlayer_SetBufferingTime (CriManaPlayerHn player, CriFloat32 sec) |
Specify input data buffering time. More... | |
void | criManaPlayer_SetMinBufferSize (CriManaPlayerHn player, CriUint32 min_buffer_size) |
Specify minimum buffer size. More... | |
void | criManaPlayer_SetFileStreamingFlag (CriManaPlayerHn player, CriBool streaming_flag) |
Set streaming flag. More... | |
void | criManaPlayer_SetMaxMovieSize (CriManaPlayerHn player, CriSint32 max_width, CriSint32 max_height) |
Specify maximum resolution. More... | |
void | criManaPlayer_SetMaxPictureDataSize (CriManaPlayerHn player, CriUint32 max_data_size) |
Specify maximum resolution. More... | |
void | criManaPlayer_ExecuteAutoSkip (CriManaPlayerHn player, CriManaFrameInfo *frame_info) |
Execute decision to automatically skip a decoded frame. More... | |
void | criManaPlayer_SetAudioTrack (CriManaPlayerHn player, CriSint32 track) |
Set the main audio track number. More... | |
void | criManaPlayer_SetSubAudioTrack (CriManaPlayerHn player, CriSint32 track) |
Set the subaudio track number. More... | |
void | criManaPlayer_SetExtraAudioTrack (CriManaPlayerHn player, CriSint32 track) |
Set the extra audio track index. More... | |
void | criManaPlayer_SetVolume (CriManaPlayerHn player, CriFloat32 volume) |
Set audio volume (main audio track) More... | |
CriFloat32 | criManaPlayer_GetVolume (CriManaPlayerHn player) |
Get audio volume (main audio track) More... | |
CriAtomExPlayerHn | criManaPlayer_GetAtomExPlayerByTrackId (CriManaPlayerHn player, CriUint32 track_id) |
Get AtomExPlayerHn. More... | |
void | criManaPlayer_SetSubAudioVolume (CriManaPlayerHn player, CriFloat32 volume) |
Set audio volume (subaudio track) More... | |
CriFloat32 | criManaPlayer_GetSubAudioVolume (CriManaPlayerHn player) |
Get audio volume (subaudio track) More... | |
void | criManaPlayer_SetExtraAudioVolume (CriManaPlayerHn player, CriFloat32 volume) |
Set the audio volume of the extra audio track. More... | |
CriFloat32 | criManaPlayer_GetExtraAudioVolume (CriManaPlayerHn player) |
Get the audio volume of the extra audio track. More... | |
void | criManaPlayer_SetPan (CriManaPlayerHn player, CriSint32 ch, CriFloat32 pan) |
Get 2D pan (main audio track) More... | |
CriFloat32 | criManaPlayer_GetPan (CriManaPlayerHn player, CriSint32 ch) |
Get 2D pan (main audio track) More... | |
void | criManaPlayer_ResetSendLevel (CriManaPlayerHn player) |
Reset send level (main audio track) More... | |
void | criManaPlayer_SetSendLevel (CriManaPlayerHn player, CriSint32 ch, CriAtomSpeakerId spk, CriFloat32 level) |
Set send level (main audio track) More... | |
void | criManaPlayer_ResetSubAudioSendLevel (CriManaPlayerHn player) |
Reset send level (subaudio track) More... | |
void | criManaPlayer_SetSubAudioSendLevel (CriManaPlayerHn player, CriSint32 ch, CriAtomSpeakerId spk, CriFloat32 level) |
Set send level (subaudio track) More... | |
void | criManaPlayer_ResetExtraAudioSendLevel (CriManaPlayerHn player) |
Reset the send level of the extra audio track. More... | |
void | criManaPlayer_SetExtraAudioSendLevel (CriManaPlayerHn player, CriSint32 ch, CriAtomSpeakerId spk, CriFloat32 level) |
Set the send level of the extra audio track. More... | |
void | criManaPlayer_SetBusSendLevelByName (CriManaPlayerHn player, const CriChar8 *bus_name, CriFloat32 level) |
Set bus send level (main audio track) More... | |
void | criManaPlayer_SetSubAudioBusSendLevelByName (CriManaPlayerHn player, const CriChar8 *bus_name, CriFloat32 level) |
Set bus send level (sub audio track) More... | |
void | criManaPlayer_SetExtraAudioBusSendLevelByName (CriManaPlayerHn player, const CriChar8 *bus_name, CriFloat32 level) |
Set the bus send level of the extra audio track. More... | |
void | criManaPlayer_ResetBusSendLevelAll (CriManaPlayerHn player) |
Bus send level reset (all tracks) More... | |
void | criManaPlayer_SetSoundRendererType (CriManaPlayerHn player, CriAtomSoundRendererType sound_renderer_type) |
Set sound renderer type. More... | |
void | criManaPlayer_SetAsrRackId (CriManaPlayerHn player, CriSint32 asr_rack_id) |
Set the ASR rack ID. More... | |
CriBool | criManaPlayer_ReferFrame (CriManaPlayerHn player, CriManaFrameInfo *frame_info) |
Refer to decoded frame information. More... | |
CriBool | criManaPlayer_IsFrameOnTime (CriManaPlayerHn player, const CriManaFrameInfo *frame_info) |
Determine frame time. More... | |
CriBool | criManaPlayer_KeepFrame (CriManaPlayerHn player, CriManaFrameInfo *frame_info) |
Keep frame. More... | |
CriSint32 | criManaPlayer_GetNumberOfKeepFrames (CriManaPlayerHn player) |
Get the number of kept frames. More... | |
void | criManaPlayer_CopyFrameToBufferARGB32 (CriManaPlayerHn player, const CriManaFrameInfo *frame_info, CriManaTextureBuffer *frame_buf) |
Get decoding results (32bit ARGB format) More... | |
void | criManaPlayer_CopyFrameToBuffersYUV (CriManaPlayerHn player, const CriManaFrameInfo *frame_info, CriManaTextureBuffersYUV *frame_buf) |
Get decoding results (YUV individual buffer format) More... | |
void | criManaPlayer_DiscardFrame (CriManaPlayerHn player, const CriManaFrameInfo *frame_info) |
Release frame. More... | |
void | criManaPlayer_DiscardOneKeepFrame (CriManaPlayerHn player) |
Release frame. More... | |
void | criManaPlayer_SetDataRequestCallback (CriManaPlayerHn player, CriManaPlayerDataRequestCbFunc func, void *obj) |
Register data request callback. More... | |
void | criManaPlayer_DeferCallback (CriManaPlayerHn player) |
Request to re-execute the data request callback. More... | |
void | criManaPlayer_SetSeekPosition (CriManaPlayerHn player, CriSint32 seek_frame_no) |
Set seek position. More... | |
void | criManaPlayer_SetMovieEventSyncMode (CriManaPlayerHn player, CriManaPlayerMovieEventSyncMode mode) |
Set the sync mode of movie events. More... | |
void | criManaPlayer_SetSubtitleChannel (CriManaPlayerHn player, CriSint32 channel) |
Get subtitle channel. More... | |
CriUint32 | criManaPlayer_GetSubtitleOnTime (CriManaPlayerHn player, CriUint8 *bufptr, CriUint32 bufsize) |
Get subtitles. More... | |
CriManaCuePointInfo * | criManaPlayer_GetCuePointInfo (CriManaPlayerHn player) |
Get a list of Cuepoint information. More... | |
void | criManaPlayer_SetCuePointCallback (CriManaPlayerHn player, CriManaPlayerCuePointCbFunc func, void *obj) |
Set Cuepoint callback. More... | |
CriSint32 | criManaPlayer_CalcFrameNoFromTime (CriManaPlayerHn player, CriUint64 count, CriUint64 unit) |
Calculate frame number from playback time. More... | |
CriUint64 | criManaPlayer_CalcTimeFromFrameNo (CriManaPlayerHn player, CriSint32 frame_no, CriUint64 unit) |
Calculate playback time from the frame number. More... | |
CriSint32 | criManaPlayer_SearchNextEventPointByTime (CriManaPlayerHn player, CriUint64 count, CriUint64 unit, CriSint32 type, CriManaEventPoint *eventinfo) |
Search event point directly after a specified time. More... | |
CriSint32 | criManaPlayer_SearchPrevEventPointByTime (CriManaPlayerHn player, CriUint64 count, CriUint64 unit, CriSint32 type, CriManaEventPoint *eventinfo) |
Search event point directly before a specified time. More... | |
void | criManaPlayer_SetSpeed (CriManaPlayerHn player, CriSint32 speed_numerator, CriSint32 speed_denominator) |
Set playback speed. More... | |
void | criManaPlayer_SetDecodeMode (CriManaPlayerHn player, CriManaDecodeMode mode) |
Set decode operation mode. More... | |
CriSint32 | criManaPlayer_CalculateExtDecoderWorkSize (CriManaPlayerHn player, const CriManaPlaybackBasicWorkConfig *config_basic, const CriManaPlaybackExWorkConfig *config_ex) |
Calculate extended decoder work area size. More... | |
void | criManaPlayer_SetExtDecoderWork (CriManaPlayerHn player, const CriManaPlaybackBasicWorkConfig *config_basic, const CriManaPlaybackExWorkConfig *config_ex, void *work, CriSint32 work_size) |
Set extended decoder work area. More... | |
void | criManaPlayer_SetNumberOfFramesForPrep (CriManaPlayerHn player, CriUint32 num_frames) |
Set number of frames stored during playback preparation. More... | |
#define CRIMANA_MAX_VIDEO_NUM (1) |
Maximum number of video streams in a movie file.
#define CRIMANA_MAX_AUDIO_NUM (32) |
Maximum number of audio streams in a movie file.
#define CRIMANA_MAX_ALPHA_NUM (1) |
Maximum number of alpha streams in a movie file.
#define CRIMANA_AUDIO_TRACK_OFF (-1) |
#define CRIMANA_AUDIO_TRACK_AUTO (100) |
Default value for audio tracks.
#define CRIMANA_MAX_SUBTITLE_NUM (16) |
Maximum number of subtitle channels.
#define CRIMANA_MAX_FILE_NAME (256) |
Maximum file name length that can be specified in the Mana player.
#define criManaPlayer_SetDefaultHandleConfig | ( | p_config | ) |
Set default values for the player creation config structure.
[out] | p_config | Pointer to the player creation config structure |
typedef CriManaPlayerObj* CriManaPlayerHn |
Player handle.
typedef void( * CriManaPlayerDataRequestCbFunc) (void *obj, CriManaPlayerHn player) |
Data request callback function.
[in] | obj | User specified object |
[in] | player | Mana player handle |
typedef void( * CriManaPlayerCuePointCbFunc) (void *obj, CriManaPlayerHn player, CriManaEventPoint *eventinfo) |
Cuepoint callback function.
[in] | obj | User specified object |
[in] | player | Mana player handle |
[in] | eventinfo | Cuepoint event information |
enum CriManaPlayerStatus |
Player status.
enum CriManaTimerType |
Timer type.
Video codec types.
Enumerator | |
---|---|
CRIMANA_VIDEO_CODEC_UNKNOWN | Unknown |
CRIMANA_VIDEO_CODEC_SOFDEC_PRIME | Sofdec.Prime |
CRIMANA_VIDEO_CODEC_H264 | H.264/AVC |
CRIMANA_VIDEO_CODEC_VP9 | VP9 |
enum CriManaAlphaType |
Alpha movie composition mode.
enum CriManaMetaFlag |
Flags used by meta data [currently not supported].
Enumerator | |
---|---|
CRIMANA_META_FLAG_NONE | Do not use meta data |
CRIMANA_META_FLAG_CUE | Unsupported |
CRIMANA_META_FLAG_SEEK | Unsupported |
CRIMANA_META_FLAG_ALL | Use all meta data formats |
ReferFrame frame reference results (debug information)
Sync mode for movie events (cue points, subtitles)
CriSint32 criManaPlayer_CalculateHandleWorkSize | ( | void | ) |
Calculate ManaPlayer work area size (no config specified)
CriSint32 criManaPlayer_CalculateHandleWorkSizeWithConfig | ( | const CriManaPlayerConfig * | config | ) |
Calculate ManaPlayer work area size (config specified)
[in] | config | Pointer to the config structure for creating a Mana player handle |
CriManaPlayerHn criManaPlayer_Create | ( | void * | work, |
CriSint32 | work_size | ||
) |
Create Mana player (no config specified)
[in] | work | Work area address (align internally) |
[in] | work_size | Work area size |
CriManaPlayerHn criManaPlayer_CreateWithConfig | ( | const CriManaPlayerConfig * | config, |
void * | work, | ||
CriSint32 | work_size | ||
) |
Create Mana player (config specified)
[in] | config | Pointer to the config structure for creating a Mana player handle |
[in] | work | Work area address (align internally) |
[in] | work_size | Work area size |
void criManaPlayer_Destroy | ( | CriManaPlayerHn | player | ) |
Destroy the Mana player.
[in] | player | Mana player handle |
void criManaPlayer_SetMetaDataWorkAllocator | ( | CriManaPlayerHn | player, |
CriManaMetaMallocFunc | allocfunc, | ||
CriManaMetaFreeFunc | freefunc, | ||
void * | obj, | ||
CriManaMetaFlag | meta_flag | ||
) |
Register meta data allocator.
[in] | player | Mana player handle |
[in] | allocfunc | Meta data work allocation callback function |
[in] | freefunc | Meta data work release callback function |
[in] | obj | User object (optional) |
[in] | meta_flag | Used meta flag (unsupported) |
CriBool criManaPlayer_GetPlaybackWorkParam | ( | CriManaPlayerHn | player, |
CriManaPlaybackBasicWorkConfig * | config_basic, | ||
CriManaPlaybackExWorkConfig * | config_ex | ||
) |
Get playback work parameter structure.
[in] | player | Mana player handle |
[out] | config_basic | Pointer to the basic playback work parameters (required) |
[out] | config_ex | Pointer to the extended playback work parameters (additional) - can be specified as NULL |
CriSint32 criManaPlayer_CalculatePlaybackWorkSize | ( | CriManaPlayerHn | player, |
const CriManaPlaybackBasicWorkConfig * | config_basic, | ||
const CriManaPlaybackExWorkConfig * | config_ex | ||
) |
Calculate playback work area size.
[in] | player | Mana player handle |
[in] | config_basic | Pointer to the basic playback work parameters (required) |
[in] | config_ex | Pointer to the extended playback work parameters (additional) can be specified as NULL |
void criManaPlayer_SetPlaybackWork | ( | CriManaPlayerHn | player, |
const CriManaPlaybackBasicWorkConfig * | config_basic, | ||
const CriManaPlaybackExWorkConfig * | config_ex, | ||
void * | work, | ||
CriSint32 | work_size | ||
) |
Set playback work area.
[in] | player | Mana player handle |
[in] | config_basic | Pointer to the basic playback work parameters (required) |
[in] | config_ex | Pointer to the extended playback work parameters (additional) can be specified as NULL |
[in] | work | Work area allocated by the app (automatically aligned internally) |
[in] | work_size | Work size |
void criManaPlayer_FreePlaybackWork | ( | CriManaPlayerHn | player | ) |
Release playback work.
[in] | player | Mana player handle |
CriManaPlayerStatus criManaPlayer_GetStatus | ( | CriManaPlayerHn | player | ) |
Get the Mana player status.
[in] | player | Mana player handle |
void criManaPlayer_ExecuteMain | ( | CriManaPlayerHn | player | ) |
Execute Mana player server processing.
[in] | player | Mana player handle |
void criManaPlayer_SyncMasterTimer | ( | CriManaPlayerHn | player | ) |
Synchronize with the master timer.
[in] | player | Mana player handle |
void criManaPlayer_SetMasterTimerType | ( | CriManaPlayerHn | player, |
CriManaTimerType | type | ||
) |
Set master timer type.
[in] | player | Mana player handle |
[in] | type | Master timer type |
CriManaTimerType criManaPlayer_GetMasterTimerType | ( | CriManaPlayerHn | player | ) |
Get master timer type.
[in] | player | Mana player handle |
void criManaPlayer_SetUserTime | ( | CriManaPlayerHn | player, |
CriUint64 | user_count, | ||
CriUint64 | user_unit | ||
) |
Set the user timer time to the master timer time.
[in] | player | Mana player handle |
[in] | user_count | User Timer Count |
[in] | user_unit | User timer count per second. Use "user_count / user_unit" to set the time in seconds. |
void criManaPlayer_SetManualTimerUnit | ( | CriManaPlayerHn | player, |
CriUint64 | timer_manual_unit_n, | ||
CriUint64 | timer_manual_unit_d | ||
) |
Set unit of manual timer time advancement (rational number format)
[in] | player | Mana player handle |
[in] | timer_manual_unit_n | Numerator of unit of time advancement. |
[in] | timer_manual_unit_d | Denominator of unit of time advancement. |
Main loop (app refresh rate) | Numerator (timer_manual_unit_n) | Denominator (timer_manual_unit_d) | Unit of time advancement |
---|---|---|---|
60 fps | 1 | 60 | 1 / 60 (=~ 16.6 msec) |
59.94 fps | 1001 | 60000 | 1001 / 60000 (=~ 16.7 msec) |
30 fps | 1 | 30 | 1 / 30 (=~ 33.3 msec) |
29.97 fps | 1001 | 30000 | 1001 / 30000 (=~ 33.4 msec) |
Internal Mana player time will be calculated using the values set with this function and the count value advanced by the criMana_AdvanceManualTimer function or the criManaPlayer_AdvanceManualTimer function.
void criManaPlayer_AdvanceManualTimer | ( | CriManaPlayerHn | player | ) |
Advance manual timer time (count value)
[in] | player | Mana player handle |
CriBool criManaPlayer_ExecuteVideoProcess | ( | CriManaPlayerHn | player | ) |
Video decoding.
[in] | player | Mana player handle |
void criManaPlayer_SetFile | ( | CriManaPlayerHn | player, |
CriFsBinderHn | bndrhn, | ||
const CriChar8 * | path | ||
) |
Set movie file.
[in] | player | Mana player handle |
[in] | bndrhn | Binder handle for bound CPK files |
[in] | path | Content path in CPK file |
void criManaPlayer_SetData | ( | CriManaPlayerHn | player, |
const void * | dataptr, | ||
CriSint64 | datasize | ||
) |
Set data for memory playback.
[in] | player | Mana player handle |
[in] | dataptr | Buffer address for all the movie data that has finished loading |
[in] | datasize | Buffer size |
void criManaPlayer_SetContentId | ( | CriManaPlayerHn | player, |
CriFsBinderHn | bndrhn, | ||
CriSint32 | id | ||
) |
Set movie file to play (specify CPK Content ID)
[in] | player | Mana player handle |
[in] | bndrhn | Binder handle for bound CPK |
[in] | id | Content ID in CPK file |
void criManaPlayer_SetFileRange | ( | CriManaPlayerHn | player, |
const CriChar8 * | fname, | ||
CriUint64 | offset, | ||
CriSint64 | range | ||
) |
Specify the movie file in the pack file (specify file range)
[in] | player | Mana player handle |
[in] | fname | Buffer file path that includes the movie file |
[in] | offset | Offset to the movie from the pack file beginning |
[in] | range | Movie data range (unit: byte) |
void criManaPlayer_SetPreviousDataAgain | ( | CriManaPlayerHn | player | ) |
Reset the same movie data.
[in] | player | Mana player handle |
CriBool criManaPlayer_GetMovieInfo | ( | CriManaPlayerHn | player, |
CriManaMovieInfo * | mvinf | ||
) |
Get movie header information.
[in] | player | Mana player handle |
[out] | mvinf | Address to the movie information structure |
void criManaPlayer_DecodeHeader | ( | CriManaPlayerHn | player | ) |
Request header decoding.
[in] | player | Mana player handle |
void criManaPlayer_Prepare | ( | CriManaPlayerHn | player | ) |
Request playback preparation.
[in] | player | Mana player handle |
void criManaPlayer_Start | ( | CriManaPlayerHn | player | ) |
Start playback.
[in] | player | Mana player handle |
void criManaPlayer_Stop | ( | CriManaPlayerHn | player | ) |
Requests play to stop.
[in] | player | Mana player handle |
void criManaPlayer_StopAndWaitCompletion | ( | CriManaPlayerHn | player | ) |
Stop playback (complete return API)
[in] | player | Mana player handle |
void criManaPlayer_Pause | ( | CriManaPlayerHn | player, |
CriBool | sw | ||
) |
Switch play pause.
[in] | player | Mana player handle |
[in] | sw | Pause switch (CRI_ON:Pause, CRI_OFF:Unpause) |
CriBool criManaPlayer_IsPaused | ( | CriManaPlayerHn | player | ) |
Get play pause status.
[in] | player | Mana player handle |
void criManaPlayer_Loop | ( | CriManaPlayerHn | player, |
CriBool | sw | ||
) |
Switch play loop.
[in] | player | Mana player handle |
[in] | sw | Loop switch (CRI_FALSE:No loop, CRI_TRUE:Loop present) |
void criManaPlayer_GetTime | ( | CriManaPlayerHn | player, |
CriUint64 * | count, | ||
CriUint64 * | unit | ||
) |
Get playback time.
[in] | player | Mana player handle |
[out] | count | Timer count |
[out] | unit | Number of timer counts per second. Time is in second units because count / unit. |
CriSint32 criManaPlayer_GetInputBufferSize | ( | CriManaPlayerHn | player | ) |
Get input buffer size.
[in] | player | Mana player handle |
CriSint32 criManaPlayer_GetInputBufferRemainSize | ( | CriManaPlayerHn | player | ) |
Get amount of remaining data in input buffer.
[in] | player | Mana player handle |
void criManaPlayer_SetNumberOfFramePools | ( | CriManaPlayerHn | player, |
CriUint32 | npools | ||
) |
Specify the number of internal video buffers (frame pools)
[in] | player | Mana player handle |
[in] | npools | Number of internal video buffers (minimum of one) |
void criManaPlayer_SetBufferingTime | ( | CriManaPlayerHn | player, |
CriFloat32 | sec | ||
) |
Specify input data buffering time.
[in] | player | Mana player handle |
[in] | sec | Buffering time. The unit is seconds. |
void criManaPlayer_SetMinBufferSize | ( | CriManaPlayerHn | player, |
CriUint32 | min_buffer_size | ||
) |
Specify minimum buffer size.
[in] | player | Mana player handle |
[in] | min_buffer_size | Minimum buffer size [byte] |
void criManaPlayer_SetFileStreamingFlag | ( | CriManaPlayerHn | player, |
CriBool | streaming_flag | ||
) |
Set streaming flag.
[in] | player | Mana player handle |
[in] | streaming_flag | Streaming flag |
void criManaPlayer_SetMaxMovieSize | ( | CriManaPlayerHn | player, |
CriSint32 | max_width, | ||
CriSint32 | max_height | ||
) |
Specify maximum resolution.
[in] | player | Mana player handle |
[in] | max_width | Maximum movie width |
[in] | max_height | Maximum movie height |
void criManaPlayer_SetMaxPictureDataSize | ( | CriManaPlayerHn | player, |
CriUint32 | max_data_size | ||
) |
Specify maximum resolution.
[in] | player | Mana player handle |
[in] | max_data_size | Maximum resolution [byte] |
void criManaPlayer_ExecuteAutoSkip | ( | CriManaPlayerHn | player, |
CriManaFrameInfo * | frame_info | ||
) |
Execute decision to automatically skip a decoded frame.
[in] | player | Mana player handle |
[in] | frame_info | Frame information structure |
Refer to the decoded frame information and call this function when the time of the frame returns CRI_TRUE.
void criManaPlayer_SetAudioTrack | ( | CriManaPlayerHn | player, |
CriSint32 | track | ||
) |
Set the main audio track number.
[in] | player | Mana player handle |
[in] | track | Track number |
void criManaPlayer_SetSubAudioTrack | ( | CriManaPlayerHn | player, |
CriSint32 | track | ||
) |
Set the subaudio track number.
[in] | player | Mana player handle |
[in] | track | Subaudio track number |
void criManaPlayer_SetExtraAudioTrack | ( | CriManaPlayerHn | player, |
CriSint32 | track | ||
) |
Set the extra audio track index.
[in] | player | Mana player handle |
[in] | track | Extra audio track index |
void criManaPlayer_SetVolume | ( | CriManaPlayerHn | player, |
CriFloat32 | volume | ||
) |
Set audio volume (main audio track)
[in] | player | Mana player handle |
[in] | volume | Volume |
CriFloat32 criManaPlayer_GetVolume | ( | CriManaPlayerHn | player | ) |
Get audio volume (main audio track)
[in] | player | Mana player handle |
CriAtomExPlayerHn criManaPlayer_GetAtomExPlayerByTrackId | ( | CriManaPlayerHn | player, |
CriUint32 | track_id | ||
) |
Get AtomExPlayerHn.
[in] | player | Mana player handle |
[in] | track_id | Audio track number (0: main, 1: sub, 2: extra) |
void criManaPlayer_SetSubAudioVolume | ( | CriManaPlayerHn | player, |
CriFloat32 | volume | ||
) |
Set audio volume (subaudio track)
[in] | player | Mana player handle |
[in] | volume | Volume |
CriFloat32 criManaPlayer_GetSubAudioVolume | ( | CriManaPlayerHn | player | ) |
Get audio volume (subaudio track)
[in] | player | Mana player handle |
void criManaPlayer_SetExtraAudioVolume | ( | CriManaPlayerHn | player, |
CriFloat32 | volume | ||
) |
Set the audio volume of the extra audio track.
[in] | player | Mana player handle |
[in] | volume | Volume |
CriFloat32 criManaPlayer_GetExtraAudioVolume | ( | CriManaPlayerHn | player | ) |
Get the audio volume of the extra audio track.
[in] | player | Mana player handle |
void criManaPlayer_SetPan | ( | CriManaPlayerHn | player, |
CriSint32 | ch, | ||
CriFloat32 | pan | ||
) |
Get 2D pan (main audio track)
[in] | player | Mana player handle |
[in] | ch | Channel number |
[in] | pan | Pan setting (-1.0f~1.0f) |
CriFloat32 criManaPlayer_GetPan | ( | CriManaPlayerHn | player, |
CriSint32 | ch | ||
) |
Get 2D pan (main audio track)
[in] | player | Mana player handle |
[in] | ch | Channel number |
void criManaPlayer_ResetSendLevel | ( | CriManaPlayerHn | player | ) |
Reset send level (main audio track)
[in] | player | Mana player handle |
void criManaPlayer_SetSendLevel | ( | CriManaPlayerHn | player, |
CriSint32 | ch, | ||
CriAtomSpeakerId | spk, | ||
CriFloat32 | level | ||
) |
Set send level (main audio track)
[in] | player | Mana player handle |
[in] | ch | Channel number |
[in] | spk | Speaker ID |
[in] | level | Volume setting (0.0f to 1.0f) |
void criManaPlayer_ResetSubAudioSendLevel | ( | CriManaPlayerHn | player | ) |
Reset send level (subaudio track)
[in] | player | Mana player handle |
void criManaPlayer_SetSubAudioSendLevel | ( | CriManaPlayerHn | player, |
CriSint32 | ch, | ||
CriAtomSpeakerId | spk, | ||
CriFloat32 | level | ||
) |
Set send level (subaudio track)
[in] | player | Mana player handle |
[in] | ch | Channel number |
[in] | spk | Speaker ID |
[in] | level | Volume (0.0f~1.0f) |
void criManaPlayer_ResetExtraAudioSendLevel | ( | CriManaPlayerHn | player | ) |
Reset the send level of the extra audio track.
[in] | player | Mana player handle |
void criManaPlayer_SetExtraAudioSendLevel | ( | CriManaPlayerHn | player, |
CriSint32 | ch, | ||
CriAtomSpeakerId | spk, | ||
CriFloat32 | level | ||
) |
Set the send level of the extra audio track.
[in] | player | Mana player handle |
[in] | ch | Channel number |
[in] | spk | Speaker ID |
[in] | level | Volume (0.0f~1.0f) |
void criManaPlayer_SetBusSendLevelByName | ( | CriManaPlayerHn | player, |
const CriChar8 * | bus_name, | ||
CriFloat32 | level | ||
) |
Set bus send level (main audio track)
[in] | player | Mana player handle |
[in] | bus_name | Bus name |
[in] | level | Send level value (0.0f to 1.0f) |
void criManaPlayer_SetSubAudioBusSendLevelByName | ( | CriManaPlayerHn | player, |
const CriChar8 * | bus_name, | ||
CriFloat32 | level | ||
) |
Set bus send level (sub audio track)
[in] | player | Mana player handle |
[in] | bus_id | Bus ID |
[in] | level | Send level (0.0f to 1.0f) |
void criManaPlayer_SetExtraAudioBusSendLevelByName | ( | CriManaPlayerHn | player, |
const CriChar8 * | bus_name, | ||
CriFloat32 | level | ||
) |
Set the bus send level of the extra audio track.
[in] | player | Mana player handle |
[in] | bus_id | Bus ID |
[in] | level | Send level (0.0f to 1.0f) |
void criManaPlayer_ResetBusSendLevelAll | ( | CriManaPlayerHn | player | ) |
Bus send level reset (all tracks)
[in] | player | Mana player handle |
void criManaPlayer_SetSoundRendererType | ( | CriManaPlayerHn | player, |
CriAtomSoundRendererType | sound_renderer_type | ||
) |
Set sound renderer type.
[in] | player | Mana player handle |
[in] | sound_renderer_type | Set sound renderer type |
void criManaPlayer_SetAsrRackId | ( | CriManaPlayerHn | player, |
CriSint32 | asr_rack_id | ||
) |
Set the ASR rack ID.
[in] | player | Mana player handle |
[in] | asr_rack_id | ASR rack ID |
CriBool criManaPlayer_ReferFrame | ( | CriManaPlayerHn | player, |
CriManaFrameInfo * | frame_info | ||
) |
Refer to decoded frame information.
[in] | player | Mana player handle |
[out] | frame_info | Frame information structure |
CriBool criManaPlayer_IsFrameOnTime | ( | CriManaPlayerHn | player, |
const CriManaFrameInfo * | frame_info | ||
) |
Determine frame time.
[in] | player | Mana player handle |
[in] | frame_info | Frame information structure |
CriBool criManaPlayer_KeepFrame | ( | CriManaPlayerHn | player, |
CriManaFrameInfo * | frame_info | ||
) |
Keep frame.
[in] | player | Mana player handle |
[out] | frame_info | Frame information structure |
CriSint32 criManaPlayer_GetNumberOfKeepFrames | ( | CriManaPlayerHn | player | ) |
Get the number of kept frames.
[in] | player | Mana player handle |
void criManaPlayer_CopyFrameToBufferARGB32 | ( | CriManaPlayerHn | player, |
const CriManaFrameInfo * | frame_info, | ||
CriManaTextureBuffer * | frame_buf | ||
) |
Get decoding results (32bit ARGB format)
[in] | player | Mana player handle |
[out] | frame_info | Frame information structure |
[out] | frame_buf | Frame buffer (for drawing) at destination |
void criManaPlayer_CopyFrameToBuffersYUV | ( | CriManaPlayerHn | player, |
const CriManaFrameInfo * | frame_info, | ||
CriManaTextureBuffersYUV * | frame_buf | ||
) |
Get decoding results (YUV individual buffer format)
[in] | player | Mana player handle |
[out] | frame_info | Frame information structure |
[in] | frame_buf | Frame buffer (for drawing) at destination |
void criManaPlayer_DiscardFrame | ( | CriManaPlayerHn | player, |
const CriManaFrameInfo * | frame_info | ||
) |
Release frame.
[in] | player | Mana player handle |
[in] | frame_info | Frame information structure |
void criManaPlayer_DiscardOneKeepFrame | ( | CriManaPlayerHn | player | ) |
Release frame.
[in] | player | Mana player handle |
void criManaPlayer_SetDataRequestCallback | ( | CriManaPlayerHn | player, |
CriManaPlayerDataRequestCbFunc | func, | ||
void * | obj | ||
) |
Register data request callback.
[in] | player | Mana player handle |
[in] | func | Data request callback |
[in] | obj | User data passed as a data request callback argument |
void criManaPlayer_DeferCallback | ( | CriManaPlayerHn | player | ) |
Request to re-execute the data request callback.
[in] | player | Mana player handle |
void criManaPlayer_SetSeekPosition | ( | CriManaPlayerHn | player, |
CriSint32 | seek_frame_no | ||
) |
Set seek position.
[in] | player | Mana player handle |
[in] | seek_frame_no | Seek frame number (change to seek_frame_no) |
void criManaPlayer_SetMovieEventSyncMode | ( | CriManaPlayerHn | player, |
CriManaPlayerMovieEventSyncMode | mode | ||
) |
Set the sync mode of movie events.
[in] | player | Mana player handle |
[in] | mode | Movie event synchronization mode |
void criManaPlayer_SetSubtitleChannel | ( | CriManaPlayerHn | player, |
CriSint32 | channel | ||
) |
Get subtitle channel.
[in] | player | Mana player handle |
[in] | channel | Subtitle channel number |
CriUint32 criManaPlayer_GetSubtitleOnTime | ( | CriManaPlayerHn | player, |
CriUint8 * | bufptr, | ||
CriUint32 | bufsize | ||
) |
Get subtitles.
[in] | player | Mana player handle |
[out] | bufptr | Subtitle buffer address of the write destination |
[in] | bufsize | Size of the write subtitle buffer |
CriManaCuePointInfo* criManaPlayer_GetCuePointInfo | ( | CriManaPlayerHn | player | ) |
Get a list of Cuepoint information.
[in] | player | Mana player handle |
void criManaPlayer_SetCuePointCallback | ( | CriManaPlayerHn | player, |
CriManaPlayerCuePointCbFunc | func, | ||
void * | obj | ||
) |
Set Cuepoint callback.
[in] | player | Mana player handle |
[in] | func | Get Cuepoint callback function |
[in] | obj | User object (optional) |
CriSint32 criManaPlayer_CalcFrameNoFromTime | ( | CriManaPlayerHn | player, |
CriUint64 | count, | ||
CriUint64 | unit | ||
) |
Calculate frame number from playback time.
[in] | player | Mana player handle |
[in] | count | Timer count |
[in] | unit | Timer count per second. Time is in second units because count / unit. |
CriUint64 criManaPlayer_CalcTimeFromFrameNo | ( | CriManaPlayerHn | player, |
CriSint32 | frame_no, | ||
CriUint64 | unit | ||
) |
Calculate playback time from the frame number.
[in] | player | Mana player handle |
[in] | frame_no | Frame number |
[in] | unit | Timer count per second. Time is in second units because count / unit. |
CriSint32 criManaPlayer_SearchNextEventPointByTime | ( | CriManaPlayerHn | player, |
CriUint64 | count, | ||
CriUint64 | unit, | ||
CriSint32 | type, | ||
CriManaEventPoint * | eventinfo | ||
) |
Search event point directly after a specified time.
[in] | player | Mana player handle |
[in] | count | Timer count |
[in] | unit | Timer count per second. Time is in second units because count / unit. |
[in] | type | Type value of the event point to be searched |
[in] | eventinfo | Information on the event point found |
CriSint32 criManaPlayer_SearchPrevEventPointByTime | ( | CriManaPlayerHn | player, |
CriUint64 | count, | ||
CriUint64 | unit, | ||
CriSint32 | type, | ||
CriManaEventPoint * | eventinfo | ||
) |
Search event point directly before a specified time.
[in] | player | Mana player handle |
[in] | count | Timer count |
[in] | unit | Timer count per second. Time is in second units because count / unit. |
[in] | type | Type value of the event point to be searched |
[in] | eventinfo | Information on the event point found |
void criManaPlayer_SetSpeed | ( | CriManaPlayerHn | player, |
CriSint32 | speed_numerator, | ||
CriSint32 | speed_denominator | ||
) |
Set playback speed.
[in] | player | Mana player handle |
[in] | speed_numerator | Specified speed playback numerator. |
[in] | speed_denominator | Specified playback speed denominator. |
Numerator (numerator) | Denominator (denominator) | Meaning |
---|---|---|
1 | 1 | Same speed playback (default) |
2 | 1 | 2x playback |
1 | 2 | Half speed playback |
1000 | 1001 | Play 30fps videos at 29.97fps or 60fps videos at 59.94fps |
void criManaPlayer_SetDecodeMode | ( | CriManaPlayerHn | player, |
CriManaDecodeMode | mode | ||
) |
Set decode operation mode.
[in] | player | Mana player handle |
[in] | mode | Decode operation mode |
CriSint32 criManaPlayer_CalculateExtDecoderWorkSize | ( | CriManaPlayerHn | player, |
const CriManaPlaybackBasicWorkConfig * | config_basic, | ||
const CriManaPlaybackExWorkConfig * | config_ex | ||
) |
Calculate extended decoder work area size.
[in] | player | Mana player handle |
[in] | config_basic | Pointer to the basic playback work parameters (required) |
[in] | config_ex | Pointer to the extended playback work parameters (additional) can be specified as NULL |
void criManaPlayer_SetExtDecoderWork | ( | CriManaPlayerHn | player, |
const CriManaPlaybackBasicWorkConfig * | config_basic, | ||
const CriManaPlaybackExWorkConfig * | config_ex, | ||
void * | work, | ||
CriSint32 | work_size | ||
) |
Set extended decoder work area.
[in] | player | Mana player handle |
[in] | config_basic | Pointer to the basic playback work parameters (required) |
[in] | config_ex | Pointer to the extended playback work parameters (additional) can be specified as NULL |
[in] | work | Work size allocated by the app (automatically aligned internally) |
[in] | work_size | Work size |
void criManaPlayer_SetNumberOfFramesForPrep | ( | CriManaPlayerHn | player, |
CriUint32 | num_frames | ||
) |
Set number of frames stored during playback preparation.
[in] | player | Mana player handle |
[in] | num_frames | Number of frames determined when playback preparations are complete (number is less than the number of frame pools) |
The number of frame pools will apply if nothing is set. Use this function when you want to increase the number of frame pools but minimize the playback latency as much as possible.