I. Video Playback
1) create a play_window_layer
2) The play_window_layer address buffer is used as the decoder output address, generally rgb565. (Yuv422 can also be directly output in the new version. You need to call gdi_layer_set_color_format (gdi_color_format_uyvy422) to set it to screen flushing by yuv422 .)
3) after each frame is decoded, call gdi_layer_blt_previous to fl the screen. Or you can use the write Register Method to screen more quickly. For more information, see start_ LCD _transfer.
Ii. Audio Playback
Call interfaces such as amr_open and daf_open and implement callback functions similar to vid_audio_play_callback.
MTK generally supports hard decoding of MP4, Amr, and AAC. If you want to compare the WMA or rmvb audio software, you can use pcm_strm_open to resample the audio into 8 K or 16 k Hz.
3. Call the MTK system player
Call mdi_video_ply_open_file. For MMI processing, see vdoplyapp. C.