C# Класс QuadVideo.VideoScene

Наследование: NewTOAPIA.GL.GLModel
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
OnKeyboardActivity ( object sender, KeyboardActivityArgs kbde ) : IntPtr
OnSetViewport ( int w, int h ) : void
VideoScene ( ) : System

Защищенные методы

Метод Описание
DoMorph ( ) : void
DrawBegin ( ) : void

Do this at the beginning of each frame. Typically setup views, clear buffers, and the like.

DrawContent ( ) : void
DrawEnd ( ) : void
OnReleaseContext ( ) : void
OnSetContext ( ) : void

Приватные методы

Метод Описание
DisplayQuad ( GLTexture texture, RectangleF srcRect, Rectangle dstRect ) : void

This routine is meant to draw a quad with the specified texture on the screen. It achieves this by first changing the viewport to match the coordinates specified in the destination rectangle. The coordinate system starts with 0,0 being the lower left hand corner of the window, and increasing x to the right and y as you go up the screen. The coordinates are in pixels. This can draw a "screen aligned quad" if the x,y == 0,0, and the width,height == the size of the frame buffer being drawn into.

DrawQuads ( ) : void

This routine will perform a channel separation, as well as displaying the subsequent resulting quads on the display.

SeparateChannels ( ) : void

This routine uses the YCrCbProcessor object to do the actual work of color model conversion. After the processing occurs, we are left with three different texture objects as properties on the processor. We assign those properties to variables that are used to display the results.

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

DoMorph() защищенный Метод

protected DoMorph ( ) : void
Результат void

DrawBegin() защищенный Метод

Do this at the beginning of each frame. Typically setup views, clear buffers, and the like.
protected DrawBegin ( ) : void
Результат void

DrawContent() защищенный Метод

protected DrawContent ( ) : void
Результат void

DrawEnd() защищенный Метод

protected DrawEnd ( ) : void
Результат void

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

public OnKeyboardActivity ( object sender, KeyboardActivityArgs kbde ) : IntPtr
sender object
kbde NewTOAPIA.UI.KeyboardActivityArgs
Результат System.IntPtr

OnReleaseContext() защищенный Метод

protected OnReleaseContext ( ) : void
Результат void

OnSetContext() защищенный Метод

protected OnSetContext ( ) : void
Результат void

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

public OnSetViewport ( int w, int h ) : void
w int
h int
Результат void

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

public VideoScene ( ) : System
Результат System