C# Class Tango.YUVTexture

Wraps separate textures for Y, U, and V planes.
Exibir arquivo Open project: ashomk/beerpong Class Usage Examples

Public Properties

Property Type Description
m_videoOverlayTextureCb UnityEngine.Texture2D
m_videoOverlayTextureCr UnityEngine.Texture2D
m_videoOverlayTextureY UnityEngine.Texture2D

Public Methods

Method Description
ResizeAll ( int yPlaneWidth, int yPlaneHeight, int uvPlaneWidth, int uvPlaneHeight ) : void

Resizes all yuv texture planes.

YUVTexture ( int yPlaneWidth, int yPlaneHeight, int uvPlaneWidth, int uvPlaneHeight, TextureFormat format, bool mipmap ) : System

Initializes a new instance of the Tango.YUVTexture class. NOTE : Texture resolutions will be reset by the API. The sizes passed into the constructor are not guaranteed to persist when running on device.

Method Details

ResizeAll() public method

Resizes all yuv texture planes.
public ResizeAll ( int yPlaneWidth, int yPlaneHeight, int uvPlaneWidth, int uvPlaneHeight ) : void
yPlaneWidth int Y plane width.
yPlaneHeight int Y plane height.
uvPlaneWidth int Uv plane width.
uvPlaneHeight int Uv plane height.
return void

YUVTexture() public method

Initializes a new instance of the Tango.YUVTexture class. NOTE : Texture resolutions will be reset by the API. The sizes passed into the constructor are not guaranteed to persist when running on device.
public YUVTexture ( int yPlaneWidth, int yPlaneHeight, int uvPlaneWidth, int uvPlaneHeight, TextureFormat format, bool mipmap ) : System
yPlaneWidth int Y plane width.
yPlaneHeight int Y plane height.
uvPlaneWidth int UV plane width.
uvPlaneHeight int UV plane height.
format TextureFormat Texture format.
mipmap bool If set to true mipmap.
return System

Property Details

m_videoOverlayTextureCb public_oe property

The m_video overlay texture cb. Columns 640/4 [bytes packed in RGBA channels] Rows 360 This size is for a 1280x720 screen.
public Texture2D,UnityEngine m_videoOverlayTextureCb
return UnityEngine.Texture2D

m_videoOverlayTextureCr public_oe property

The m_video overlay texture cr. Columns 640 * 2 / 4 [bytes packed in RGBA channels] Rows 360 This size is for a 1280x720 screen.
public Texture2D,UnityEngine m_videoOverlayTextureCr
return UnityEngine.Texture2D

m_videoOverlayTextureY public_oe property

The m_video overlay texture y. Columns 1280/4 [bytes packed in RGBA channels] Rows 720 This size is for a 1280x720 screen.
public Texture2D,UnityEngine m_videoOverlayTextureY
return UnityEngine.Texture2D