ENCODER__wavmedia.c File Reference


Detailed Description

This module provides WAV encoder media data access handle.

REVISION

Definition in file ENCODER__wavmedia.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__wavmedia.c:

Include dependency graph

Go to the source code of this file.

Functions

USHORT ENCODER__wavmedia (void)
 Function serves as the WAV encoder media access task handle.


Function Documentation

USHORT ENCODER__wavmedia void   ) 
 

Function serves as the WAV encoder media access task handle.

Returns:
Always return 0.

Definition at line 38 of file ENCODER__wavmedia.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 
00065     return 0;
00066 }

Here is the call graph for this function:


Generated on Wed Jan 19 01:12:56 2005 for neuros-firmware by  doxygen 1.3.9.1