FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavcodec
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
* 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709)
26
*/
27
28
#ifndef AVCODEC_LIBUTVIDEO_H
29
#define AVCODEC_LIBUTVIDEO_H
30
31
#include <stdlib.h>
32
#include <utvideo/utvideo.h>
33
#include <utvideo/Codec.h>
34
35
/*
36
* Ut Video version 12.0.0 changed the RGB format names and removed
37
* the _WIN names, so if the new names are absent, define them
38
* against the old names so compatibility with pre-v12 versions
39
* is maintained.
40
*/
41
#if !defined(UTVF_NFCC_BGR_BU)
42
#define UTVF_NFCC_BGR_BU UTVF_RGB24_WIN
43
#endif
44
45
#if !defined(UTVF_NFCC_BGRA_BU)
46
#define UTVF_NFCC_BGRA_BU UTVF_RGB32_WIN
47
#endif
48
49
/*
50
* Ut Video version 13.0.1 introduced new BT.709 variants.
51
* Special-case these and only use them if v13 is detected.
52
*/
53
#if defined(UTVF_HDYC)
54
#define UTV_BT709
55
#endif
56
57
typedef
struct
{
58
uint32_t
version
;
59
uint32_t
original_format
;
60
uint32_t
frameinfo_size
;
61
uint32_t
flags
;
62
}
UtVideoExtra
;
63
64
typedef
struct
{
65
const
AVClass
*
c
;
66
CCodec *
codec
;
67
unsigned
int
buf_size
;
68
uint8_t
*
buffer
;
69
int
pred
;
70
}
UtVideoContext
;
71
72
#endif
/* AVCODEC_LIBUTVIDEO_H */
UtVideoExtra::version
uint32_t version
Definition:
libutvideo.h:58
UtVideoExtra::frameinfo_size
uint32_t frameinfo_size
Definition:
libutvideo.h:60
UtVideoContext
Definition:
libutvideo.h:64
UtVideoContext::c
const AVClass * c
Definition:
libutvideo.h:65
uint8_t
uint8_t
Definition:
audio_convert.c:194
UtVideoContext::buffer
uint8_t * buffer
Definition:
libutvideo.h:68
UtVideoExtra::original_format
uint32_t original_format
Definition:
libutvideo.h:59
UtVideoContext::pred
int pred
Definition:
libutvideo.h:69
UtVideoExtra::flags
uint32_t flags
Definition:
libutvideo.h:61
UtVideoExtra
Definition:
libutvideo.h:57
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:67
UtVideoContext::buf_size
unsigned int buf_size
Definition:
libutvideo.h:67
UtVideoContext::codec
CCodec * codec
Definition:
libutvideo.h:66
Generated on Mon Feb 15 2016 15:20:39 for FFmpeg by
1.8.6