libutvideo.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011-2012 Derek Buitenhuis
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public
8  * License as published by the Free Software Foundation;
9  * version 2 of the License.
10  *
11  * FFmpeg 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  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 /**
22  * @file
23  * Known FOURCCs:
24  * 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA)
25  */
26 
27 #ifndef AVCODEC_LIBUTVIDEO_H
28 #define AVCODEC_LIBUTVIDEO_H
29 
30 #include <stdlib.h>
31 #include <utvideo/utvideo.h>
32 #include <utvideo/Codec.h>
33 
34 /*
35  * Ut Video version 12.0.0 changed the RGB format names and removed
36  * the _WIN names, so if the new names are absent, define them
37  * against the old names so compatibility with pre-v12 versions
38  * is maintained.
39  */
40 #if !defined(UTVF_NFCC_BGR_BU)
41 #define UTVF_NFCC_BGR_BU UTVF_RGB24_WIN
42 #endif
43 
44 #if !defined(UTVF_NFCC_BGRA_BU)
45 #define UTVF_NFCC_BGRA_BU UTVF_RGB32_WIN
46 #endif
47 
48 typedef struct {
49  uint32_t version;
50  uint32_t original_format;
51  uint32_t frameinfo_size;
52  uint32_t flags;
53 } UtVideoExtra;
54 
55 typedef struct {
56  CCodec *codec;
57  unsigned int buf_size;
60 
61 #endif /* AVCODEC_LIBUTVIDEO_H */
uint32_t version
Definition: libutvideo.h:49
uint32_t frameinfo_size
Definition: libutvideo.h:51
uint8_t
uint8_t * buffer
Definition: libutvideo.h:58
uint32_t original_format
Definition: libutvideo.h:50
uint32_t flags
Definition: libutvideo.h:52
unsigned int buf_size
Definition: libutvideo.h:57
CCodec * codec
Definition: libutvideo.h:56