Changes between Version 12 and Version 13 of MEDIA_ENGINE_IMPL_MAIN_R3
- Timestamp:
- 09/01/09 12:17:35 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MEDIA_ENGINE_IMPL_MAIN_R3
v12 v13 65 65 66 66 AVFormatContext *pFormatContext; 67 AVCodecContext *pCodecCtx ;67 AVCodecContext *pCodecCtx, *aCodecCtx; 68 68 int videoStream, audiostream; 69 69 uint8_t *buffer, *audio_buf; … … 83 83 Most of the methods come from Player class from the second revision of the ticket ( [wiki:MEDIA_ENGINE_IMPL_MAIN_R2] ), 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] ): [[BR]] 84 84 Fields: 85 * int audiostream - ''the index in the pFormatCtx->streams that is CODEC_TYPE_AUDIO'' 86 * AVCodec *aCodec - ''a pointer to a construct which contains information regarding audio codec'' 87 * uint8_t *audio_buf - ''a buffer which contain the raw data of the decoded audio stream'' 88 * 85 * int audiostream - ''the index in the pFormatCtx->streams that is CODEC_TYPE_AUDIO.'' 86 * AVCodecContext *aCodecCtx - ''a pointer to a construct which contains information audio codecs to be opened.'' 87 * AVCodec *aCodec - ''a pointer to a construct which contains information regarding audio codec.'' 88 * uint8_t *audio_buf - ''a buffer which contain the raw data of the decoded audio stream.''[[BR]] 89 Methods: 90 * bool readAudioFrame() - ''reads an audio frame in packets.'' 91 * int* decodeAudioFrame(int*) - ''decodes the packets read.'' 92 * int* saveAudioBuffer(uint8_t*, int) - ''save the decoded information.'' 93 89 94 90 95 … … 134 139 }}} 135 140 141 Working branch for this task is: [http://www.sophie2.org/trac/browser/branches/private/nenko/experimental], but probably it will be changed to [http://www.sophie2.org/trac/browser/branches/second_resource_refactoring/sophie2-natives] or something similar. 142 143 136 144 = Implementation = 137 145 ^(Describe and link the implementation results here (from the wiki or the repository).)^