FFmpeg
1.2.4
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavcodec
audio_frame_queue.h
Go to the documentation of this file.
1
/*
2
* Audio Frame Queue
3
* Copyright (c) 2012 Justin Ruggles
4
*
5
* This file is part of Libav.
6
*
7
* Libav is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* Libav is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with Libav; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_AUDIO_FRAME_QUEUE_H
23
#define AVCODEC_AUDIO_FRAME_QUEUE_H
24
25
#include "
avcodec.h
"
26
27
typedef
struct
AudioFrame
{
28
int64_t
pts
;
29
int
duration
;
30
}
AudioFrame
;
31
32
typedef
struct
AudioFrameQueue
{
33
AVCodecContext
*
avctx
;
34
int
remaining_delay
;
35
int
remaining_samples
;
36
AudioFrame
*
frames
;
37
unsigned
frame_count
;
38
unsigned
frame_alloc
;
39
}
AudioFrameQueue
;
40
47
void
ff_af_queue_init
(
AVCodecContext
*avctx,
AudioFrameQueue
*afq);
48
56
void
ff_af_queue_close
(
AudioFrameQueue
*afq);
57
64
int
ff_af_queue_add
(
AudioFrameQueue
*afq,
const
AVFrame
*f);
65
80
void
ff_af_queue_remove
(
AudioFrameQueue
*afq,
int
nb_samples
, int64_t *pts,
81
int
*
duration
);
82
83
#endif
/* AVCODEC_AUDIO_FRAME_QUEUE_H */
Generated on Fri Nov 29 2013 19:14:57 for FFmpeg by
1.8.1.2