User`s manual
152 Appendix: GEME-VM3000 Series Introduction
begin
m_Decoder_Channel:= 0;
Mode := 0; //play once
m_filenam := ‘test1.m4v’;
m4v_filename:= ‘test2.m4v’;
avi_filename := ‘test3.avi’;
Result :=
AngeloMPEG4_Decode_Set_Callback(m_Decoder_C
hannel, DecoderCallbackProc);
Result
:=AngeloMPEG4_Decode_File(m_Decoder_Channel
,m_filename,Width,Height,Byte_Pixel,m_total
_frame,m_Time_Seconds);
Result :=
AngeloMPEG4_Decode_File_Start(m_Decoder_Cha
nnel,Mode);
Result :=
AngeloMPEG4_Decode_File_Set_Position(m_Deco
der_Channel,m_total_frame div 2);
Result :=
AngeloMPEG4_Decode_File_Pause(m_Decoder_Cha
nnel);
Result :=
AngeloMPEG4_Decode_File_Continue(m_Decoder_
Channel);
Result :=
AngeloMPEG4_Decode_File_Get_Position(m_Deco
der_Channel,m_pos);
Result :=
AngeloMPEG4_Decode_Stop(m_Decoder_Channel);
Result:=AngeloMPEG4_Decode_M4V_2_AVI(m4v_filenam
e,Width,Height,Byte_Pixel,m_total_frame,m_T
ime_Seconds);
Result:=AngeloMPEG4_Decode_AVI_2_M4V(avi_filenam
e,Width,Height,Byte_Pixel,m_total_frame,m_T
ime_Seconds);
end;