[libav-devel] [PATCH 1/5] lavfi: VAAPI VPP common infrastructure.

Diego Biurrun diego at biurrun.de
Wed Mar 7 12:51:42 CET 2018


On Wed, Mar 07, 2018 at 12:03:14AM +0000, Mark Thompson wrote:
> --- /dev/null
> +++ b/libavfilter/vaapi_vpp.c
> @@ -0,0 +1,365 @@
> +int ff_vaapi_vpp_colour_standard(enum AVColorSpace av_cs)
> +{
> +    switch (av_cs) {
> +#define CS(av, va) case AVCOL_SPC_ ## av: return VAProcColorStandard ## va;
> +        CS(BT709,     BT709);
> +        CS(BT470BG,   BT601);
> +        CS(SMPTE170M, SMPTE170M);
> +        CS(SMPTE240M, SMPTE240M);
> +#undef CS
> +    default:
> +        return VAProcColorStandardNone;
> +    }

I'd say that indentation is off here, but feel free to ignore me.

Diego


More information about the libav-devel mailing list