#include "libavutil/imgutils.h"
#include "dirac.h"
#include "avcodec.h"
#include "golomb.h"
#include "mpeg12data.h"
Go to the source code of this file.
Functions | |
| static int | parse_source_parameters (AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source) |
| Dirac Specification -> 10.3 Parse Source Parameters. | |
| int | avpriv_dirac_parse_sequence_header (AVCodecContext *avctx, GetBitContext *gb, dirac_source_params *source) |
| Dirac Specification -> 10. | |
Variables | |
| static const dirac_source_params | dirac_source_parameters_defaults [] |
| static const AVRational | dirac_preset_aspect_ratios [] |
| Dirac Specification -> Table 10.4 - Available preset pixel aspect ratio values. | |
| static const AVRational | dirac_frame_rate [] |
| Dirac Specification -> Values 9,10 of 10.3.5 Frame Rate. | |
| struct { | |
| uint8_t bitdepth | |
| enum AVColorRange color_range | |
| } | pixel_range_presets [] |
| Dirac Specification -> This should be equivalent to Table 10.5 Available signal range presets. | |
| static enum AVColorPrimaries | dirac_primaries [] |
| struct { | |
| enum AVColorPrimaries color_primaries | |
| enum AVColorSpace colorspace | |
| enum AVColorTransferCharacteristic color_trc | |
| } | dirac_color_presets [] |
| static enum PixelFormat | dirac_pix_fmt [2][3] |
| Dirac Specification -> Table 10.2 Supported chroma sampling formats + Luma Offset. | |
Definition in file dirac.c.
| int avpriv_dirac_parse_sequence_header | ( | AVCodecContext * | avctx, | |
| GetBitContext * | gb, | |||
| dirac_source_params * | source | |||
| ) |
Dirac Specification -> 10.
Sequence Header. sequence_header()
Definition at line 274 of file dirac.c.
Referenced by dirac_decode_data_unit(), and dirac_header().
| static int parse_source_parameters | ( | AVCodecContext * | avctx, | |
| GetBitContext * | gb, | |||
| dirac_source_params * | source | |||
| ) | [static] |
Dirac Specification -> 10.3 Parse Source Parameters.
source_parameters(base_video_format)
Definition at line 127 of file dirac.c.
Referenced by avpriv_dirac_parse_sequence_header().
| enum AVColorRange color_range |
| enum AVColorSpace colorspace |
struct { ... } dirac_color_presets[] [static] |
Referenced by parse_source_parameters().
const AVRational dirac_frame_rate[] [static] |
enum PixelFormat dirac_pix_fmt[2][3] [static] |
Initial value:
{
{ PIX_FMT_YUV444P, PIX_FMT_YUV422P, PIX_FMT_YUV420P },
{ PIX_FMT_YUVJ444P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ420P },
}
Definition at line 118 of file dirac.c.
Referenced by parse_source_parameters().
const AVRational dirac_preset_aspect_ratios[] [static] |
enum AVColorPrimaries dirac_primaries[] [static] |
const dirac_source_params dirac_source_parameters_defaults[] [static] |
Initial value:
{
{ 640, 480, 2, 0, 0, 1, 1, 640, 480, 0, 0, 1, 0 },
{ 176, 120, 2, 0, 0, 9, 2, 176, 120, 0, 0, 1, 1 },
{ 176, 144, 2, 0, 1, 10, 3, 176, 144, 0, 0, 1, 2 },
{ 352, 240, 2, 0, 0, 9, 2, 352, 240, 0, 0, 1, 1 },
{ 352, 288, 2, 0, 1, 10, 3, 352, 288, 0, 0, 1, 2 },
{ 704, 480, 2, 0, 0, 9, 2, 704, 480, 0, 0, 1, 1 },
{ 704, 576, 2, 0, 1, 10, 3, 704, 576, 0, 0, 1, 2 },
{ 720, 480, 1, 1, 0, 4, 2, 704, 480, 8, 0, 3, 1 },
{ 720, 576, 1, 1, 1, 3, 3, 704, 576, 8, 0, 3, 2 },
{ 1280, 720, 1, 0, 1, 7, 1, 1280, 720, 0, 0, 3, 3 },
{ 1280, 720, 1, 0, 1, 6, 1, 1280, 720, 0, 0, 3, 3 },
{ 1920, 1080, 1, 1, 1, 4, 1, 1920, 1080, 0, 0, 3, 3 },
{ 1920, 1080, 1, 1, 1, 3, 1, 1920, 1080, 0, 0, 3, 3 },
{ 1920, 1080, 1, 0, 1, 7, 1, 1920, 1080, 0, 0, 3, 3 },
{ 1920, 1080, 1, 0, 1, 6, 1, 1920, 1080, 0, 0, 3, 3 },
{ 2048, 1080, 0, 0, 1, 2, 1, 2048, 1080, 0, 0, 4, 4 },
{ 4096, 2160, 0, 0, 1, 2, 1, 4096, 2160, 0, 0, 4, 4 },
{ 3840, 2160, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
{ 3840, 2160, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
{ 7680, 4320, 1, 0, 1, 7, 1, 3840, 2160, 0, 0, 3, 3 },
{ 7680, 4320, 1, 0, 1, 6, 1, 3840, 2160, 0, 0, 3, 3 },
}
struct { ... } pixel_range_presets[] [static] |
Dirac Specification -> This should be equivalent to Table 10.5 Available signal range presets.
Referenced by parse_source_parameters().
1.5.8