Miam-Player  0.8.0
A nice music player
dirac.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007 Marco Gerards <marco@gnu.org>
3  * Copyright (C) 2009 David Conrad
4  * Copyright (C) 2011 Jordi Ortiz
5  *
6  * This file is part of FFmpeg.
7  *
8  * FFmpeg is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * FFmpeg is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with FFmpeg; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  */
22 
23 #ifndef AVCODEC_DIRAC_H
24 #define AVCODEC_DIRAC_H
25 
34 #include "avcodec.h"
35 
45 #define MAX_DWT_LEVELS 5
46 
73  DIRAC_PCODE_MAGIC = 0x42424344,
74 };
75 
76 typedef struct DiracVersionInfo {
77  int major;
78  int minor;
80 
81 typedef struct AVDiracSeqHeader {
82  unsigned width;
83  unsigned height;
84  uint8_t chroma_format;
85 
86  uint8_t interlaced;
87  uint8_t top_field_first;
88 
89  uint8_t frame_rate_index;
91 
92  uint16_t clean_width;
93  uint16_t clean_height;
96 
98  uint8_t color_spec_index;
99 
100  int profile;
101  int level;
102 
105 
106  enum AVPixelFormat pix_fmt;
107  enum AVColorRange color_range;
108  enum AVColorPrimaries color_primaries;
110  enum AVColorSpace colorspace;
111 
115 
128  const uint8_t *buf, size_t buf_size,
129  void *log_ctx);
130 
131 #endif /* AVCODEC_DIRAC_H */
Definition: dirac.h:66
Definition: dirac.h:76
Definition: dirac.h:59
Definition: dirac.h:67
Definition: dirac.h:70
Definition: dirac.h:60
Definition: dirac.h:63
uint16_t clean_height
Definition: dirac.h:93
AVColorTransferCharacteristic
Definition: pixfmt.h:410
DiracVersionInfo version
Definition: dirac.h:112
struct DiracVersionInfo DiracVersionInfo
AVColorSpace
Definition: pixfmt.h:436
uint16_t clean_left_offset
Definition: dirac.h:94
AVColorRange
Definition: pixfmt.h:457
Definition: dirac.h:68
int bit_depth
Definition: dirac.h:113
AVColorPrimaries
Definition: pixfmt.h:389
AVRational framerate
Definition: dirac.h:103
struct AVDiracSeqHeader AVDiracSeqHeader
int profile
Definition: dirac.h:100
uint8_t frame_rate_index
index into dirac_frame_rate[]
Definition: dirac.h:89
uint8_t aspect_ratio_index
index into dirac_aspect_ratio[]
Definition: dirac.h:90
uint16_t clean_width
Definition: dirac.h:92
uint8_t interlaced
Definition: dirac.h:86
unsigned height
Definition: dirac.h:83
Definition: dirac.h:58
Definition: dirac.h:62
uint16_t clean_right_offset
Definition: dirac.h:95
DiracParseCodes
Definition: dirac.h:57
AVRational sample_aspect_ratio
Definition: dirac.h:104
uint8_t top_field_first
Definition: dirac.h:87
Definition: dirac.h:69
Definition: dirac.h:81
unsigned width
Definition: dirac.h:82
Definition: rational.h:58
int minor
Definition: dirac.h:78
Definition: dirac.h:65
Definition: dirac.h:64
Definition: dirac.h:71
Definition: dirac.h:61
uint8_t pixel_range_index
index into dirac_pixel_range_presets[]
Definition: dirac.h:97
uint8_t chroma_format
0: 444 1: 422 2: 420
Definition: dirac.h:84
Definition: dirac.h:72
int av_dirac_parse_sequence_header(AVDiracSeqHeader **dsh, const uint8_t *buf, size_t buf_size, void *log_ctx)
int major
Definition: dirac.h:77
AVPixelFormat
Definition: pixfmt.h:60
Definition: dirac.h:73
int level
Definition: dirac.h:101
uint8_t color_spec_index
index into dirac_color_spec_presets[]
Definition: dirac.h:98