[vlc-devel] [PATCH 1/3] packetizer: hxxx: add colour/transfert/matrix sps enums

Francois Cartegnie fcvlcdev at free.fr
Sat Apr 16 15:14:24 CEST 2016


Le 16/04/2016 14:58, Thomas Guillem a écrit :
> +/* Annex E: Colour primaries */
> +enum hxxx_sps_colour_primaries
> +{
> +    HXXX_SPS_PRIMARIES_RESERVED0    = 0,
> +    HXXX_SPS_PRIMARIES_BT709        = 1,
> +    HXXX_SPS_PRIMARIES_UNSPECIFIED  = 2,
> +    HXXX_SPS_PRIMARIES_RESERVED3    = 3,
> +    HXXX_SPS_PRIMARIES_BT470M       = 4,
> +    HXXX_SPS_PRIMARIES_BT470BG      = 5,
> +    HXXX_SPS_PRIMARIES_BT601_525    = 6,
> +    HXXX_SPS_PRIMARIES_SMTPE_240M   = 7,
> +    HXXX_SPS_PRIMARIES_GENERIC_FILM = 8,
> +    HXXX_SPS_PRIMARIES_BT2020       = 9,
> +};

HXXX scope defines, so missing:

_SMPTE_428_1       = 10,

> +/* Annex E: Transfer characteristics */
> +enum hxxx_sps_transfer_characteristics
> +{
> +    HXXX_SPS_TRANSFER_RESERVED0     = 0,
> +    HXXX_SPS_TRANSFER_BT709         = 1,
> +    HXXX_SPS_TRANSFER_UNSPECIFIED   = 2,
> +    HXXX_SPS_TRANSFER_RESERVED3     = 3,
> +    HXXX_SPS_TRANSFER_BT470M        = 4,
> +    HXXX_SPS_TRANSFER_BT470BG       = 5,
> +    HXXX_SPS_TRANSFER_BT601_525     = 6,
> +    HXXX_SPS_TRANSFER_SMTPE_240M    = 7,
> +    HXXX_SPS_TRANSFER_LINEAR        = 8,
> +    HXXX_SPS_TRANSFER_LOG           = 9,
> +    HXXX_SPS_TRANSFER_LOG_SQRT      = 10,
> +    HXXX_SPS_TRANSFER_IEC61966_2_4  = 11,
> +    HXXX_SPS_TRANSFER_BT1361        = 12,
> +    HXXX_SPS_TRANSFER_IEC61966_2_1  = 13,

_BT2020_v14 = 14
_BT2020_v15 = 15
_SMPTE_ST_2084 = 16
_SMPTE_ST_428_1 = 17


And More globally, this should NOT be a SPS_ define,
as this is not particularly tied to SPS.


Francois


More information about the vlc-devel mailing list