[x265] [PATCH 1 of 2]Add support for Dolby Vision profile 8.1

Mateusz mateuszb at poczta.onet.pl
Fri Dec 28 01:13:46 CET 2018


W dniu 26.12.2018 o 16:02, Kirithika Kalirathnam pisze:
> --- a/source/encoder/encoder.cppFri Dec 07 12:52:46 2018 +0530
> +++ b/source/encoder/encoder.cppWed Dec 26 18:47:10 2018 +0530
> @@ -50,6 +50,30 @@
>  const char g_sliceTypeToChar[] = {'B', 'P', 'I'};
>  }
>  
> +/* Dolby Vision profile specific settings */
> +typedef struct
> +{
> +    int bEmitHRDSEI;
> +    int bEnableVideoSignalTypePresentFlag;
> +    int bEnableColorDescriptionPresentFlag;
> +    int bEnableAccessUnitDelimiters;
> +    int bAnnexB;
> +
> +    /* VUI parameters specific to Dolby Vision Profile */
> +    int videoFormat;
> +    int bEnableVideoFullRangeFlag;
> +    int transferCharacteristics;
> +    int colorPrimaries;
> +    int matrixCoeffs;
> +
> +    int doviProfileId;
> +}DolbyVisionProfileSpec;
> +
> +DolbyVisionProfileSpec dovi[] =
> +{
> +    { 1, 1, 1, 1, 1, 5, 1,  2, 2, 2, 50 },
> +    { 1, 1, 1, 1, 1, 5, 0, 16, 9, 9, 81 },
> +};

Global variable outside namespace X265_NS breaks GCC multilib builds (it could be static or inside namespace).

This patch is in DOS file format (CR+LF line endings), x265 was in UNIX file format (only LF line ending). After this patch x265 is in none format -- most lines ends with LF, some with CR+LF.

Regards,
Mateusz



More information about the x265-devel mailing list