|
|
|
@ -27,8 +27,9 @@ |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
#include "libavutil/imgutils.h" |
|
|
|
|
#include "dirac.h" |
|
|
|
|
|
|
|
|
|
#include "avcodec.h" |
|
|
|
|
#include "dirac.h" |
|
|
|
|
#include "golomb.h" |
|
|
|
|
#include "internal.h" |
|
|
|
|
#include "mpeg12data.h" |
|
|
|
@ -44,6 +45,7 @@ static const dirac_source_params dirac_source_parameters_defaults[] = { |
|
|
|
|
{ 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 }, |
|
|
|
@ -52,6 +54,7 @@ static const dirac_source_params dirac_source_parameters_defaults[] = { |
|
|
|
|
{ 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 }, |
|
|
|
@ -222,7 +225,8 @@ static int parse_source_parameters(AVCodecContext *avctx, GetBitContext *gb, |
|
|
|
|
luma_depth = av_log2(svq3_get_ue_golomb(gb)) + 1; |
|
|
|
|
svq3_get_ue_golomb(gb); /* chroma offset */ |
|
|
|
|
svq3_get_ue_golomb(gb); /* chroma excursion */ |
|
|
|
|
avctx->color_range = luma_offset ? AVCOL_RANGE_MPEG : AVCOL_RANGE_JPEG; |
|
|
|
|
avctx->color_range = luma_offset ? AVCOL_RANGE_MPEG |
|
|
|
|
: AVCOL_RANGE_JPEG; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
/* [DIRAC_STD] Table 10.5
|
|
|
|
|