On 5 January 2012 04:48, Ronald S. Bultje <[email protected]> wrote:
> Also document the function somewhat.
> ---
>  libswscale/swscale.c |   18 +++++++++++++-----
>  1 files changed, 13 insertions(+), 5 deletions(-)
>
> diff --git a/libswscale/swscale.c b/libswscale/swscale.c
> index 11bb7d6..980fc4a 100644
> --- a/libswscale/swscale.c
> +++ b/libswscale/swscale.c
> @@ -884,9 +884,17 @@ YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, 
> PIX_FMT_RGB48LE)
>  YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)
>  YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)
>
> +/*
> + * Write out 2 RGB pixels in the target pixel format. This function takes a
> + * R/G/B LUT as generated by ff_yuv2rgb_c_init_tables(), which takes care of
> + * things like endianness conversion and shifting. The caller takes care of
> + * setting the correct offset in these tables from the chroma (U/V) values.
> + * This function then uses the luminance (Y1/Y2) values to write out the
> + * correct RGB values into the destination buffer.
> + */

LGTM
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to