FFmpeg
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 "utvideodsp.h"
34 #include "lossless_videodsp.h"
35 #include "lossless_videoencdsp.h"
36 
37 enum {
38  PRED_NONE = 0,
42 };
43 
44 enum {
45  COMP_NONE = 0,
47 };
48 
49 /*
50  * "Original format" markers.
51  * Based on values gotten from the official VFW encoder.
52  * They are not used during decoding, but they do have
53  * an informative role on seeing what was input
54  * to the encoder.
55  */
56 enum {
57  UTVIDEO_RGB = MKTAG(0x00, 0x00, 0x01, 0x18),
58  UTVIDEO_RGBA = MKTAG(0x00, 0x00, 0x02, 0x18),
59  UTVIDEO_420 = MKTAG('Y', 'V', '1', '2'),
60  UTVIDEO_422 = MKTAG('Y', 'U', 'Y', '2'),
61  UTVIDEO_444 = MKTAG('Y', 'V', '2', '4'),
62 };
63 
64 typedef struct UtvideoContext {
65  const AVClass *class;
71 
73  int planes;
74  int slices;
78  int pro;
79  int pack;
80 
81  ptrdiff_t slice_stride;
84 
85  const uint8_t *packed_stream[4][256];
86  size_t packed_stream_size[4][256];
87  const uint8_t *control_stream[4][256];
88  size_t control_stream_size[4][256];
90 
91 #endif /* AVCODEC_UTVIDEO_H */
uint32_t flags
Definition: utvideo.h:72
int slice_bits_size
Definition: utvideo.h:83
LLVidEncDSPContext llvidencdsp
Definition: utvideo.h:70
int interlaced
Definition: utvideo.h:76
uint8_t
uint32_t frame_info
Definition: utvideo.h:72
BswapDSPContext bdsp
Definition: utvideo.h:68
AVCodecContext * avctx
Definition: utvideo.h:66
uint32_t frame_info_size
Definition: utvideo.h:72
int compression
Definition: utvideo.h:75
size_t control_stream_size[4][256]
Definition: utvideo.h:88
ptrdiff_t slice_stride
Definition: utvideo.h:81
int frame_pred
Definition: utvideo.h:77
Libavcodec external API header.
uint32_t offset
Definition: utvideo.h:72
main external API structure.
Definition: avcodec.h:536
const uint8_t * control_stream[4][256]
Definition: utvideo.h:87
Describe the class of an AVClass context structure.
Definition: log.h:67
uint8_t * slice_bits
Definition: utvideo.h:82
LLVidDSPContext llviddsp
Definition: utvideo.h:69
common internal and external API header
size_t packed_stream_size[4][256]
Definition: utvideo.h:86
UTVideoDSPContext utdsp
Definition: utvideo.h:67
const uint8_t * packed_stream[4][256]
Definition: utvideo.h:85
Used to minimize the amount of memory used in order to optimize cache performance.
Definition: snow_dwt.h:44
#define MKTAG(a, b, c, d)
Definition: common.h:478