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
utvideo.h
Go to the documentation of this file.
1
/*
2
* Common Ut Video header
3
* Copyright (c) 2011 Konstantin Shishkov
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_UTVIDEO_H
23
#define AVCODEC_UTVIDEO_H
24
25
/**
26
* @file
27
* Common Ut Video header
28
*/
29
30
#include "
libavutil/common.h
"
31
#include "
avcodec.h
"
32
#include "
bswapdsp.h
"
33
#include "
lossless_videodsp.h
"
34
#include "
lossless_videoencdsp.h
"
35
36
enum
{
37
PRED_NONE
= 0,
38
PRED_LEFT
,
39
PRED_GRADIENT
,
40
PRED_MEDIAN
,
41
};
42
43
enum
{
44
COMP_NONE
= 0,
45
COMP_HUFF
,
46
};
47
48
/*
49
* "Original format" markers.
50
* Based on values gotten from the official VFW encoder.
51
* They are not used during decoding, but they do have
52
* an informative role on seeing what was input
53
* to the encoder.
54
*/
55
enum
{
56
UTVIDEO_RGB
=
MKTAG
(0x00, 0x00, 0x01, 0x18),
57
UTVIDEO_RGBA
=
MKTAG
(0x00, 0x00, 0x02, 0x18),
58
UTVIDEO_420
=
MKTAG
(
'Y'
,
'V'
,
'1'
,
'2'
),
59
UTVIDEO_422
=
MKTAG
(
'Y'
,
'U'
,
'Y'
,
'2'
),
60
UTVIDEO_444
=
MKTAG
(
'Y'
,
'V'
,
'2'
,
'4'
),
61
};
62
63
/* Mapping of libavcodec prediction modes to Ut Video's */
64
extern
const
int
ff_ut_pred_order
[5];
65
66
/* Order of RGB(A) planes in Ut Video */
67
extern
const
int
ff_ut_rgb_order
[4];
68
69
typedef
struct
UtvideoContext
{
70
const
AVClass
*
class
;
71
AVCodecContext
*
avctx
;
72
BswapDSPContext
bdsp
;
73
LLVidDSPContext
llviddsp
;
74
LLVidEncDSPContext
llvidencdsp
;
75
76
uint32_t
frame_info_size
,
flags
,
frame_info
;
77
int
planes
;
78
int
slices
;
79
int
compression
;
80
int
interlaced
;
81
int
frame_pred
;
82
int
pro
;
83
84
ptrdiff_t
slice_stride
;
85
uint8_t
*
slice_bits
, *
slice_buffer
[4];
86
int
slice_bits_size
;
87
}
UtvideoContext
;
88
89
typedef
struct
HuffEntry
{
90
uint16_t
sym
;
91
uint8_t
len
;
92
uint32_t
code
;
93
}
HuffEntry
;
94
95
/* Compare huffman tree nodes */
96
int
ff_ut_huff_cmp_len
(
const
void
*
a
,
const
void
*
b
);
97
int
ff_ut10_huff_cmp_len
(
const
void
*
a
,
const
void
*
b
);
98
99
#endif
/* AVCODEC_UTVIDEO_H */
lossless_videoencdsp.h
ff_ut10_huff_cmp_len
int ff_ut10_huff_cmp_len(const void *a, const void *b)
Definition:
utvideo.c:43
PRED_LEFT
Definition:
utvideo.h:38
UtvideoContext::flags
uint32_t flags
Definition:
utvideo.h:76
UtvideoContext::slices
int slices
Definition:
utvideo.h:78
UtvideoContext::slice_bits_size
int slice_bits_size
Definition:
utvideo.h:86
b
const char * b
Definition:
vf_curves.c:113
UtvideoContext::llvidencdsp
LLVidEncDSPContext llvidencdsp
Definition:
utvideo.h:74
lossless_videodsp.h
UtvideoContext::interlaced
int interlaced
Definition:
utvideo.h:80
uint8_t
uint8_t
Definition:
audio_convert.c:194
LLVidDSPContext
Definition:
lossless_videodsp.h:31
UtvideoContext::frame_info
uint32_t frame_info
Definition:
utvideo.h:76
UTVIDEO_420
Definition:
utvideo.h:58
HuffEntry::code
uint32_t code
Definition:
magicyuv.c:50
UTVIDEO_422
Definition:
utvideo.h:59
PRED_NONE
Definition:
utvideo.h:37
UtvideoContext::pro
int pro
Definition:
utvideo.h:82
COMP_NONE
Definition:
utvideo.h:44
UtvideoContext::bdsp
BswapDSPContext bdsp
Definition:
utvideo.h:72
UtvideoContext::avctx
AVCodecContext * avctx
Definition:
utvideo.h:71
PRED_GRADIENT
Definition:
utvideo.h:39
UtvideoContext::frame_info_size
uint32_t frame_info_size
Definition:
utvideo.h:76
UtvideoContext::planes
int planes
Definition:
utvideo.h:77
ff_ut_rgb_order
const int ff_ut_rgb_order[4]
Definition:
utvideo.c:35
UtvideoContext::compression
int compression
Definition:
utvideo.h:79
UTVIDEO_RGBA
Definition:
utvideo.h:57
UtvideoContext
Definition:
utvideo.h:69
UtvideoContext::slice_stride
ptrdiff_t slice_stride
Definition:
utvideo.h:84
UTVIDEO_444
Definition:
utvideo.h:60
UtvideoContext::frame_pred
int frame_pred
Definition:
utvideo.h:81
PRED_MEDIAN
Definition:
utvideo.h:40
HuffEntry::len
uint8_t len
Definition:
magicyuv.c:49
ff_ut_huff_cmp_len
int ff_ut_huff_cmp_len(const void *a, const void *b)
Definition:
utvideo.c:37
avcodec.h
Libavcodec external API header.
AVCodecContext
main external API structure.
Definition:
avcodec.h:1732
BswapDSPContext
Definition:
bswapdsp.h:24
ff_ut_pred_order
const int ff_ut_pred_order[5]
Definition:
utvideo.c:30
AVClass
Describe the class of an AVClass context structure.
Definition:
log.h:67
UtvideoContext::slice_bits
uint8_t * slice_bits
Definition:
utvideo.h:85
UtvideoContext::llviddsp
LLVidDSPContext llviddsp
Definition:
utvideo.h:73
common.h
common internal and external API header
LLVidEncDSPContext
Definition:
lossless_videoencdsp.h:24
HuffEntry::sym
uint16_t sym
Definition:
magicyuv.c:48
COMP_HUFF
Definition:
utvideo.h:45
bswapdsp.h
HuffEntry
Definition:
magicyuv.c:47
slice_buffer
Used to minimize the amount of memory used in order to optimize cache performance.
Definition:
snow_dwt.h:42
MKTAG
#define MKTAG(a, b, c, d)
Definition:
common.h:342
UTVIDEO_RGB
Definition:
utvideo.h:56
a
a
Definition:
h264pred_template.c:468
Generated on Fri Jan 12 2018 01:45:47 for FFmpeg by
1.8.6