FFmpeg
Data Structures | Functions
audio_frame_queue.h File Reference
#include "avcodec.h"

Go to the source code of this file.

Data Structures

struct   AudioFrame
 
struct   AudioFrameQueue
 

Functions

  Initialize AudioFrameQueue.
 
  Close AudioFrameQueue.
 
int  ff_af_queue_add (AudioFrameQueue *afq, const AVFrame *f)
  Add a frame to the queue.
 
void  ff_af_queue_remove (AudioFrameQueue *afq, int nb_samples, int64_t *pts, int *duration)
  Remove frame(s) from the queue.
 

Function Documentation

void ff_af_queue_init ( AVCodecContextavctx,
AudioFrameQueueafq 
)

Initialize AudioFrameQueue.

Parameters
avctx context to use for time_base and av_log
afq queue context

Definition at line 27 of file audio_frame_queue.c.

Referenced by aac_encode_init(), encode_init(), Faac_encode_init(), libopus_encode_init(), mp3lame_encode_init(), oggvorbis_encode_init(), and ra144_encode_init().

void ff_af_queue_close ( AudioFrameQueueafq )

Close AudioFrameQueue.

Frees memory if needed.

Parameters
afq queue context

Definition at line 35 of file audio_frame_queue.c.

Referenced by aac_encode_close(), aac_encode_end(), encode_close(), encode_end(), Faac_encode_close(), libopus_encode_close(), mp3lame_encode_close(), oggvorbis_encode_close(), and ra144_encode_close().

int ff_af_queue_add ( AudioFrameQueueafq,
const AVFramef 
)

Add a frame to the queue.

Parameters
afq queue context
f frame to add to the queue

Definition at line 43 of file audio_frame_queue.c.

Referenced by aac_encode_frame(), encode_frame(), Faac_encode_frame(), libopus_encode(), mp3lame_encode_frame(), oggvorbis_encode_frame(), and ra144_encode_frame().

void ff_af_queue_remove ( AudioFrameQueueafq,
int  nb_samples,
int64_t *  pts,
int *  duration 
)

Remove frame(s) from the queue.

Retrieves the pts of the next available frame, or a generated pts based on the last frame duration if there are no frames left in the queue. The number of requested samples should be the full number of samples represented by the packet that will be output by the encoder. If fewer samples are available in the queue, a smaller value will be used for the output duration.

Parameters
afq queue context
nb_samples number of samples to remove from the queue
[out] pts output packet pts
[out] duration output packet duration

Definition at line 74 of file audio_frame_queue.c.

Referenced by aac_encode_frame(), encode_frame(), Faac_encode_frame(), libopus_encode(), mp3lame_encode_frame(), oggvorbis_encode_frame(), and ra144_encode_frame().


Generated on Sat May 25 2013 03:58:52 for FFmpeg by   doxygen 1.8.2

AltStyle によって変換されたページ (->オリジナル) /