User`s manual
Appendix: GEME-VM3000 Series Introduction 149
Frame_Index: Zero index of the frame
Cur_Frame_Index: Current frame index
PlayFactor: The speed to play the MPEG4 file
1: Normal
2: 2x faster
-2: 2x slower
@ Return Code
0: ERROR_NoError
@ Example
< VC/BCB >
int Result;
int m_Decoder_Channel = 0;
long Width=0;
long Height=0;
long Byte_Pixel=0;
long m_total_frame=0;
long m_Time_Seconds=0;
long m_pos=0;
long Mode = 0; //play once
char* m_filename = “test1.m4v”;
char* m4v_filename = “test2.m4v”;
char* avi_filename = “test3.avi”;
void CM4VPlayerView::MediaStreamProc( int
Decoder_Channel ,long int_status,long
VideoBufferaddress )
{
…
…
}
AngeloMPEG4_Decode_Set_Callback(m_Decoder_Channe
l,MediaStreamProc);
AngeloMPEG4_Decode_File(m_Decoder_Channel,m_file
name,&Width,&Height,&Byte_Pixel,&m_total_fr
ame,&m_Time_Seconds);
AngeloMPEG4_Decode_File_Start(m_Decoder_Channel,
Mode);
AngeloMPEG4_Decode_File_Set_Position(m_Decoder_C
hannel,& m_total_frame/2);