Skip to main content
Version: 0.9.0

VideoFrameView struct

Where one view of a video frame lives: a pixel rectangle in one texture (and array layer). The end coordinates are exclusive and may be smaller than the start ones, which flips the view.

Namespace: Quaternar.Qaros · Assembly: Quaternar.Qaros.dll · Source: QarTypes.cs

public readonly struct VideoFrameView

Constructors​

VideoFrameView(uint, uint, uint, uint, uint, uint, PixelFormat, VideoFrameViewType, VideoFrameViewEye)​

public VideoFrameView(uint startX, uint startY, uint endX, uint endY, uint textureIndex, uint arrayLayerIndex, PixelFormat textureFormat, VideoFrameViewType dataType, VideoFrameViewEye eye)

Parameters

NameTypeDescription
startXuint
startYuint
endXuint
endYuint
textureIndexuint
arrayLayerIndexuint
textureFormatPixelFormat
dataTypeVideoFrameViewType
eyeVideoFrameViewEye

Properties​

MemberDescription
StartX
StartY
EndX
EndY
TextureIndexIndex into the frame's or layout's textures.
ArrayLayerIndex
TextureFormat
DataType
Eye

StartX​

public uint StartX { get; }

Value: uint

StartY​

public uint StartY { get; }

Value: uint

EndX​

public uint EndX { get; }

Value: uint

EndY​

public uint EndY { get; }

Value: uint

TextureIndex​

Index into the frame's or layout's textures.

public uint TextureIndex { get; }

Value: uint

ArrayLayerIndex​

public uint ArrayLayerIndex { get; }

Value: uint

TextureFormat​

public PixelFormat TextureFormat { get; }

Value: PixelFormat

DataType​

public VideoFrameViewType DataType { get; }

Value: VideoFrameViewType

Eye​

public VideoFrameViewEye Eye { get; }

Value: VideoFrameViewEye