REVISION
Definition in file ENCODER__mp3media.c.
#include "../SYSTEM/sys_hardware.h"
#include "../codec/codec.h"
#include "../AUDIO/audio.h"
#include "../coder/coder.h"
#include "encoder.h"
Include dependency graph for ENCODER__mp3media.c:

Go to the source code of this file.
Functions | |
| USHORT | ENCODER__mp3media (void) |
| Function serves as the MP3 encoder media access task handle. | |
|
|
Function serves as the MP3 encoder media access task handle.
Definition at line 38 of file ENCODER__mp3media.c. References st_ENCODER::encode, Encoder, ENCODER_putData(), st_CODER::flag, st_ENCODER::mediaPipe, PIPE_readNext(), and SEM_coder. 00039 {
00040 PIPE_Obj * mediaPipe = &Encoder.mediaPipe;
00041
00042 while( PIPE_readFrameNum(mediaPipe))
00043 {
00044 if(0 == Encoder.encode.nested)
00045 {
00046 if(0==ENCODER_putData(mediaPipe->RdFrame.Frame, ENCODER_MEDIA_PIPE_FRAMELEN))
00047 {
00048 //if(0==SEM_count(SEM_coder)) SEM_post(SEM_coder);
00049 break;
00050 }
00051 }
00052 PIPE_readNext(mediaPipe);
00053 }
00054
00055 if(Coder.flag & F_CODER_ENCODER_DATAPENDING)
00056 {
00057 if(0==SEM_count(SEM_coder)) SEM_post(SEM_coder);
00058 }
00059 else if(Coder.flag & F_CODER_ENCODER_SETIDLE)
00060 {
00061 if(!(Coder.flag&F_CODER_ENCODER_IDLE))
00062 if(0==SEM_count(SEM_coder)) SEM_post(SEM_coder);
00063 }
00064 return 0;
00065 }
|
Here is the call graph for this function:

1.3.9.1