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 },
121 unsigned luma_depth = 8, luma_offset = 16;
174 frame_rate.
den, frame_rate.
num, 1<<30);
285 unsigned version_major;
286 unsigned video_format, picture_coding_mode;
298 if (version_major < 2)
300 else if (version_major > 2)
303 if (video_format > 20)
307 *source = dirac_source_parameters_defaults[video_format];
322 if (picture_coding_mode != 0) {
324 picture_coding_mode);
planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)
uint16_t clean_right_offset
enum AVColorRange color_range
MPEG vs JPEG YUV range.
void avcodec_set_dimensions(AVCodecContext *s, int width, int height)
uint8_t frame_rate_index
index into dirac_frame_rate[]
static unsigned svq3_get_ue_golomb(GetBitContext *gb)
AVRational sample_aspect_ratio
sample aspect ratio (0 if unknown) That is the width of a pixel divided by the height of the pixel...
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
enum AVColorTransferCharacteristic color_trc
static const dirac_source_params dirac_source_parameters_defaults[]
Interface to Dirac Decoder/Encoder.
static const struct @14 dirac_color_presets[]
uint8_t color_spec_index
index into dirac_color_spec_presets[]
enum AVColorRange color_range
planar YUV 4:2:2, 16bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV422P and setting color_...
static const struct @13 pixel_range_presets[]
static enum AVPixelFormat dirac_pix_fmt[2][3]
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:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
the normal 2^n-1 "JPEG" YUV ranges
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
Reduce a fraction.
the normal 219*2^(n-8) "MPEG" YUV ranges
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...
planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_...
enum AVColorPrimaries color_primaries
Chromaticity coordinates of the source primaries.
uint8_t pixel_range_index
index into dirac_pixel_range_presets[]
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
static const AVRational dirac_frame_rate[]
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM
main external API structure.
AVColorTransferCharacteristic
static enum AVColorPrimaries dirac_primaries[]
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 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
#define AVERROR_INVALIDDATA
planar YUV 4:4:4, 24bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV444P and setting color_...
uint16_t clean_left_offset
also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B
also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 ...
enum AVColorSpace colorspace
AVPixelFormat
Pixel format.
const AVRational ff_mpeg12_frame_rate_tab[16]