set_from_yuv_data


Description:

[ Version ( deprecated = true , deprecated_since = "1.10" , since = "0.4" ) ]
public bool set_from_yuv_data (uint8[] data, int width, int height, TextureFlags flags) throws Error

Warning: set_from_yuv_data is deprecated since 1.10.

Sets a Texture from YUV image data.

Note:

Use a custom Content implementation and set up the Cogl pipeline using a PipelineNode with a fragment shader instead.

If an error occurred, false is returned and error is set.

The YUV support depends on the driver; the format supported by the few drivers exposing this capability are not really useful.

The proper way to convert image data in any YUV colorspace to any RGB colorspace is to use a fragment shader associated with the Texture material.

Parameters:

this

A Texture

data

Image data in YUV type colorspace.

width

Width in pixels of image data.

height

Height in pixels of image data

flags

TextureFlags

Returns:

true if the texture was successfully updated