[vlc-devel] [vlc-commits] commit: swscale: Support RGB565 in swscale. (Pierre d'Herbemont )

Laurent Aimar fenrir at elivagar.org
Sun Oct 31 12:06:56 CET 2010


Hi
On Sun, Oct 31, 2010 at 11:17:45AM +0100, git at videolan.org wrote:
> vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Sun Oct 31 10:17:42 2010 +0100| [103ae418b44980c0cabd211cd18d10ed87a994f4] | committer: Pierre d'Herbemont 
> 
> swscale: Support RGB565 in swscale.
> 
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=103ae418b44980c0cabd211cd18d10ed87a994f4
> ---
> 
>  modules/video_filter/swscale.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/modules/video_filter/swscale.c b/modules/video_filter/swscale.c
> index c38f9d2..9a17c48 100644
> --- a/modules/video_filter/swscale.c
> +++ b/modules/video_filter/swscale.c
> @@ -278,6 +278,9 @@ static void FixParameters( int *pi_fmt, bool *pb_has_a, bool *pb_swap_uv, vlc_fo
>          *pi_fmt = PIX_FMT_YUV410P;
>          *pb_swap_uv = true;
>          break;
> +    case VLC_CODEC_RGB16:
> +        *pi_fmt = PIX_FMT_RGB565;
> +        break;
>      default:
>          break;
>      }
This does not belong here.
chroma_table[] in codec/avformat/chroma.c should already provide the association:
 VLC_RGB( VLC_CODEC_RGB16, PIX_FMT_BGR565, PIX_FMT_RGB565, 0xf800, 0x07e0, 0x001f )

-- 
fenrir



More information about the vlc-devel mailing list