C# Класс Tango.YUVTexture

Wraps separate textures for Y, U, and V planes.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
m_videoOverlayTextureCb UnityEngine.Texture2D
m_videoOverlayTextureCr UnityEngine.Texture2D
m_videoOverlayTextureY UnityEngine.Texture2D

Открытые методы

Метод Описание
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.

Описание методов

ResizeAll() публичный Метод

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.
Результат void

YUVTexture() публичный Метод

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.
Результат System

Описание свойств

m_videoOverlayTextureCb публичное свойство

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
Результат UnityEngine.Texture2D

m_videoOverlayTextureCr публичное свойство

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
Результат UnityEngine.Texture2D

m_videoOverlayTextureY публичное свойство

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
Результат UnityEngine.Texture2D