1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3 * yuv-converter.h: YUV2RGB converters for the pipeline
6 * Moonlight List (moonlight-list@lists.ximian.com)
8 * Copyright 2008 Novell, Inc. (http://www.novell.com)
10 * See the LICENSE file included with the distribution for details.
14 #ifndef __MOON_YUV_CONVERTER__
15 #define __MOON_YUV_CONVERTER__
21 class YUVConverter
: public IImageConverter
{
23 YUVConverter (Media
* media
, VideoStream
* stream
);
24 virtual ~YUVConverter ();
27 MediaResult
Convert (guint8
*src
[], int srcStride
[], int srcSlideY
, int srcSlideH
, guint8
* dest
[], int dstStride
[]);
34 class YUVConverterInfo
: public ConverterInfo
{
36 virtual bool Supports (MoonPixelFormat input
, MoonPixelFormat output
);
37 virtual IImageConverter
* Create (Media
* media
, VideoStream
* stream
);
38 virtual const char* GetName () { return "YUVConverter"; }
41 #endif // __MOON_YUV_CONVERTER__