Changes between Version 12 and Version 13 of MEDIA_ENGINE_IMPL_MAIN_R3


Ignore:
Timestamp:
09/01/09 12:17:35 (16 years ago)
Author:
stefan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MEDIA_ENGINE_IMPL_MAIN_R3

    v12 v13  
    6565 
    6666    AVFormatContext *pFormatContext; 
    67     AVCodecContext *pCodecCtx; 
     67    AVCodecContext *pCodecCtx, *aCodecCtx; 
    6868    int videoStream, audiostream; 
    6969    uint8_t *buffer, *audio_buf; 
     
    8383Most 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]] 
    8484Fields: 
    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]] 
     89Methods: 
     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 
    8994 
    9095 
     
    134139}}} 
    135140 
     141Working 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 
    136144= Implementation = 
    137145^(Describe and link the implementation results here (from the wiki or the repository).)^