36 { 640, 480, 2, 0, 0, 1, 1, 640, 480, 0, 0, 1, 0 },
37 { 176, 120, 2, 0, 0, 9, 2, 176, 120, 0, 0, 1, 1 },
38 { 176, 144, 2, 0, 1, 10, 3, 176, 144, 0, 0, 1, 2 },
39 { 352, 240, 2, 0, 0, 9, 2, 352, 240, 0, 0, 1, 1 },
40 { 352, 288, 2, 0, 1, 10, 3, 352, 288, 0, 0, 1, 2 },
41 { 704, 480, 2, 0, 0, 9, 2, 704, 480, 0, 0, 1, 1 },
42 { 704, 576, 2, 0, 1, 10, 3, 704, 576, 0, 0, 1, 2 },
43 { 720, 480, 1, 1, 0, 4, 2, 704, 480, 8, 0, 3, 1 },
44 { 720, 576, 1, 1, 1, 3, 3, 704, 576, 8, 0, 3, 2 },
46 { 1280, 720, 1, 0, 1, 7, 1, 1280, 720, 0, 0, 3, 3 },
47 { 1280, 720, 1, 0, 1, 6, 1, 1280, 720, 0, 0, 3, 3 },
48 { 1920, 1080, 1, 1, 1, 4, 1, 1920, 1080, 0, 0, 3, 3 },
49 { 1920, 1080, 1, 1, 1, 3, 1, 1920, 1080, 0, 0, 3, 3 },
50 { 1920, 1080, 1, 0, 1, 7, 1, 1920, 1080, 0, 0, 3, 3 },
51 { 1920, 1080, 1, 0, 1, 6, 1, 1920, 1080, 0, 0, 3, 3 },
52 { 2048, 1080, 0, 0, 1, 2, 1, 2048, 1080, 0, 0, 4, 4 },
53 { 4096, 2160, 0, 0, 1, 2, 1, 4096, 2160, 0, 0, 4, 4 },
55 { 3840, 2160, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
56 { 3840, 2160, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
57 { 7680, 4320, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
58 { 7680, 4320, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
112 unsigned luma_depth = 8, luma_offset = 16;
153 frame_rate.
den, frame_rate.
num, 1<<30);
248 unsigned version_major;
249 unsigned video_format, picture_coding_mode;
257 if (version_major < 2)
259 else if (version_major > 2)
262 if (video_format > 20)
266 *source = dirac_source_parameters_defaults[video_format];
279 if (picture_coding_mode != 0) {
281 picture_coding_mode);
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 ...
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
uint16_t clean_right_offset
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVColorRange color_range
MPEG vs JPEG YUV range.
uint8_t frame_rate_index
index into dirac_frame_rate[]
the normal 2^n-1 "JPEG" YUV ranges
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
const AVRational avpriv_frame_rate_tab[16]
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_...
enum AVColorTransferCharacteristic color_trc
static const dirac_source_params dirac_source_parameters_defaults[]
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
Interface to Dirac Decoder/Encoder.
uint8_t color_spec_index
index into dirac_color_spec_presets[]
enum AVColorRange color_range
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
the normal 219*2^(n-8) "MPEG" YUV ranges
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
enum AVColorPrimaries color_primaries
void av_log(void *avcl, int level, const char *fmt,...)
uint8_t chroma_format
0: 444 1: 422 2: 420
int avpriv_dirac_parse_sequence_header(AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source)
uint8_t aspect_ratio_index
index into dirac_aspect_ratio[]
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
static const struct @12 pixel_range_presets[]
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
struct AVRational AVRational
rational number numerator/denominator
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
uint8_t pixel_range_index
index into dirac_pixel_range_presets[]
static const AVRational dirac_frame_rate[]
static int svq3_get_ue_golomb(GetBitContext *gb)
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static enum AVColorPrimaries dirac_primaries[]
static enum PixelFormat dirac_pix_fmt[2][3]
static unsigned int get_bits1(GetBitContext *s)
enum AVColorSpace colorspace
YUV colorspace type.
rational number numerator/denominator
enum AVColorTransferCharacteristic color_trc
Color Transfer Characteristic.
static const AVRational dirac_preset_aspect_ratios[]
static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source)
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
AVColorTransferCharacteristic
uint16_t clean_left_offset
static AVRational frame_rate
enum AVColorSpace colorspace
static const struct @13 dirac_color_presets[]