Changes between Version 10 and Version 11 of MEDIA_ENGINE_IMPL_MAIN_R3


Ignore:
Timestamp:
08/31/09 16:42:24 (16 years ago)
Author:
stefan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MEDIA_ENGINE_IMPL_MAIN_R3

    v10 v11  
    3333= Design = 
    3434So, 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 : 
     35Prototype of Decoder.h : 
    3636 
    3737{{{ 
     
    8181}}} 
    8282 
     83Most 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'' 
    8387 
    8488 
     
    96100 
    97101    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)); 
    99103    buf_size = AVCODEC_MAX_AUDIO_FRAME_SIZE; 
    100104