Changes between Version 10 and Version 11 of MEDIA_ENGINE_IMPL_MAIN_R3
- Timestamp:
- 08/31/09 16:42:24 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MEDIA_ENGINE_IMPL_MAIN_R3
v10 v11 33 33 = Design = 34 34 So, in order to make audio working, we'll make Decoder C++ class which will unite functionality of video decoding that are provided in [wiki:MEDIA_ENGINE_IMPL_MAIN_R2] and audio decoding from this task. 35 prototype of Decoder.h :35 Prototype of Decoder.h : 36 36 37 37 {{{ … … 81 81 }}} 82 82 83 Most of the methods come from Player class from the second revision of the ticket, but new fields and methods will be introduced ('' info regarding AVFormatContext and all other data types and methods from the FFmpeg library could be found at'' [http://www.dranger.com/ffmpeg/data.html]): 84 * int audiostream - ''the index in the pFormatCtx->streams that is CODEC_TYPE_AUDIO'' 85 * AVCodec *aCodec - ''a pointer to a construct which contains information regarding audio codec'' 86 * uint8_t *audio_buf - ''a buffer which contain the raw data of the decoded audio stream'' 83 87 84 88 … … 96 100 97 101 audio_pkt_size = packet.size; 98 audio_buf =(uint8_t*) av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE *sizeof(uint8_t));102 audio_buf =(uint8_t*) av_malloc(AVCODEC_MAX_AUDIO_FRAME_SIZE * sizeof(uint8_t)); 99 103 buf_size = AVCODEC_MAX_AUDIO_FRAME_SIZE; 100 104