User`s manual
Function Library 105
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);
AngeloMPEG4_Decode_File_Pause(m_Decoder_Channel)
;
AngeloMPEG4_Decode_File_Continue(m_Decoder_Chann
el);
AngeloMPEG4_Decode_File_Get_Position(m_Decoder_C
hannel,&m_pos);
AngeloMPEG4_Decode_Stop(m_Decoder_Channel);
AngeloMPEG4_Decode_M4V_2_AVI(m4v_filename,&Width
,&Height,&Byte_Pixel,&m_total_frame,&m_Time
_Seconds);
AngeloMPEG4_Decode_AVI_2_M4V(avi_filename,&Width
,&Height,&Byte_Pixel,&m_total_frame,&m_Time
_Seconds);
< Visual Basic >
Dim Result As Long, m_Decoder_Channel As Long,
Width As Long, Height As Long, Byte_Pixel As
Long, m_total_frame As Long, m_Time_Seconds
As Long, m_pos As Long
Dim m_filename As String, m4v_filename As String,
avi_filename As String,