MTK audio/video playback method summary

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.