internal.h
Go to the documentation of this file.
1 /*
2  * This file is part of Libav.
3  *
4  * Libav is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * Libav is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with Libav; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
24 #ifndef AVCODEC_INTERNAL_H
25 #define AVCODEC_INTERNAL_H
26 
27 #include <stdint.h>
28 
29 #include "libavutil/pixfmt.h"
30 #include "avcodec.h"
31 
32 typedef struct InternalBuffer {
36  int width;
37  int height;
39  uint8_t **extended_data;
43 
44 typedef struct AVCodecInternal {
50 
56 
63  int is_copy;
64 
65 #if FF_API_OLD_DECODE_AUDIO
66 
70  int sample_count;
71 #endif
73 
75  const uint8_t *key;
76  const uint8_t *value;
77 };
78 
83 
93 
98 int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b);
99 
100 unsigned int avpriv_toupper4(unsigned int x);
101 
102 int avpriv_lock_avformat(void);
103 int avpriv_unlock_avformat(void);
104 
110 #define FF_MAX_EXTRADATA_SIZE ((1 << 28) - FF_INPUT_BUFFER_PADDING_SIZE)
111 
127 int ff_alloc_packet(AVPacket *avpkt, int size);
128 
129 
130 int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame);
131 
132 #endif /* AVCODEC_INTERNAL_H */