Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavcodec
libdirac_libschro.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 BBC, Anuradha Suraparaju <asuraparaju at gmail dot com >
3
*
4
* This file is part of Libav.
5
*
6
* Libav is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* Libav is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with Libav; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
26
#ifndef AVCODEC_LIBDIRAC_LIBSCHRO_H
27
#define AVCODEC_LIBDIRAC_LIBSCHRO_H
28
29
#include "
avcodec.h
"
30
31
typedef
struct
{
32
uint16_t
width
;
33
uint16_t
height
;
34
uint16_t
frame_rate_num
;
35
uint16_t
frame_rate_denom
;
36
}
DiracSchroVideoFormatInfo
;
37
41
unsigned
int
ff_dirac_schro_get_video_format_idx
(
AVCodecContext
*avccontext);
42
46
typedef
struct
DiracSchroEncodedFrame
{
48
uint8_t *
p_encbuf
;
49
51
uint32_t
size
;
52
54
uint32_t
frame_num
;
55
57
uint16_t
key_frame
;
58
}
DiracSchroEncodedFrame
;
59
63
typedef
struct
DiracSchroQueueElement
{
65
void
*
data
;
67
struct
DiracSchroQueueElement
*
next
;
68
}
DiracSchroQueueElement
;
69
70
74
typedef
struct
DiracSchroQueue
{
76
DiracSchroQueueElement
*
p_head
;
78
DiracSchroQueueElement
*
p_tail
;
80
int
size
;
81
}
DiracSchroQueue
;
82
86
void
ff_dirac_schro_queue_init
(
DiracSchroQueue
*queue);
87
91
int
ff_dirac_schro_queue_push_back
(
DiracSchroQueue
*queue,
void
*p_data);
92
96
void
*
ff_dirac_schro_queue_pop
(
DiracSchroQueue
*queue);
97
103
void
ff_dirac_schro_queue_free
(
DiracSchroQueue
*queue,
104
void
(*free_func)(
void
*));
105
#endif
/* AVCODEC_LIBDIRAC_LIBSCHRO_H */