Click or drag to resize

VideoBuffer Methods

The VideoBuffer type exposes the following members.

Methods
  NameDescription
Public methodClone
Clones this instance.
(Overrides MediaBufferTFormat, TBufferClone.)
Public methodConvert(VideoFormat)
Creates a new video buffer using the specified format.
Public methodConvert(VideoFormat, DataBuffer)
Creates a new video buffer using the specified format.
Public methodStatic memberCreateBlack
Creates a black (0, 0, 0) video buffer with the specified width/height.
Public methodStatic memberCreateBlue
Creates a blue (0, 0, 255) video buffer with the specified width/height.
Public methodStatic memberCreateCustom(Int32, Int32, Int32, Int32, Int32, String)
Creates a custom video buffer with the specified width/height and red/green/blue values for the specified format name. If the format is not supported, returns null.
Public methodStatic memberCreateCustom(Int32, Int32, Int32, Int32, Int32, String, DataBuffer)
Creates a custom video buffer with the specified width/height and red/green/blue values for the specified format name. If the format is not supported, returns null.
Public methodStatic memberCreateCyan
Creates a cyan (0, 255, 255) video buffer with the specified width/height.
Public methodStatic memberCreateDarkBlue
Creates a dark blue (0, 0, 128) video buffer with the specified width/height.
Public methodStatic memberCreateDarkGreen
Creates a dark green (0, 128, 0) video buffer with the specified width/height.
Public methodStatic memberCreateDarkRed
Creates a dark red (128, 0, 0) video buffer with the specified width/height.
Public methodStatic memberCreateGray
Creates a gray (255, 255, 255) video buffer with the specified width/height.
Public methodStatic memberCreateGreen
Creates a green (0, 255, 0) video buffer with the specified width/height.
Protected methodCreateInstance
Creates a new instance.
(Overrides MediaBufferTFormat, TBufferCreateInstance.)
Public methodStatic memberCreateMagenta
Creates a magenta (255, 0, 255) video buffer with the specified width/height.
Public methodStatic memberCreateOlive
Creates an olive (128, 128, 0) video buffer with the specified width/height.
Public methodStatic memberCreatePurple
Creates a purple (128, 0, 128) video buffer with the specified width/height.
Public methodStatic memberCreateRed
Creates a red (255, 0, 0) video buffer with the specified width/height.
Public methodStatic memberCreateTeal
Creates a teal (0, 128, 128) video buffer with the specified width/height.
Public methodStatic memberCreateWhite
Creates a white (255, 255, 255) video buffer with the specified width/height.
Public methodStatic memberCreateYellow
Creates a yellow (255, 255, 0) video buffer with the specified width/height.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFree
Frees the data buffers referenced by this instance.
(Inherited from MediaBufferTFormat, TBuffer.)
Public methodStatic memberFromJson
Deserializes an instance from JSON.
Public methodStatic memberFromJsonArray
Deserializes an array of instances from JSON.
Public methodGetDynamicValue
Gets a property value from the local cache.
(Inherited from Dynamic.)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetMinimumBufferLength
Gets the minimum data buffer length for a given width, height, and format.
Public methodGetType (Inherited from Object.)
Public methodKeep
Keeps the data buffers referenced by this instance.
(Inherited from MediaBufferTFormat, TBuffer.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodMute
Mutes this instance. This is a one-way operation that clears the underlying data buffer.
(Overrides MediaBufferTFormat, TBufferMute.)
Public methodSetDynamicValue
Sets a property value in the local cache.
(Inherited from Dynamic.)
Public methodToJson
Serializes this instance to JSON.
Public methodStatic memberToJson(VideoBuffer)
Serializes an instance to JSON.
Public methodStatic memberToJsonArray
Serializes an array of instances to JSON.
Public methodToPlanar
Converts a planar representation of this packed buffer, if in YUV-packed format. Otherwise, returns the current buffer.
Public methodToString
Returns a string that represents this instance.
(Inherited from MediaBufferTFormat, TBuffer.)
Public methodUnsetDynamicValue
Unsets a property value in the local cache.
(Inherited from Dynamic.)
Top
See Also