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;
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;
59 
63 typedef struct DiracSchroQueueElement {
65  void *data;
69 
70 
74 typedef struct DiracSchroQueue {
80  int size;
82 
87 
91 int ff_dirac_schro_queue_push_back(DiracSchroQueue *queue, void *p_data);
92 
97 
104  void (*free_func)(void *));
105 #endif /* AVCODEC_LIBDIRAC_LIBSCHRO_H */