Interface VLSimpleImageBuffer.IVLImageBuffer
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: VideoLabBasicPkg
Unit: VLSimpleImageBuffer
Inherits: IMLMediaBuffer
Contents |
Syntax
Delphi:
type IVLImageBuffer = interface( IMLMediaBuffer )
Summary
Image buffer interface.
Description
This is the Image buffer interface.
Properties
- Pixels - Access to individual pixel of the buffer.
- Red - Access to the Red color component of an individual pixel of the buffer.
- Green - Access to the Green color component of an individual pixel of the buffer.
- Blue - Access to the Blue color component of an individual pixel of the buffer.
- Alpha - Access to the Alpha transparency component of an individual pixel of the buffer.
- GrayScale - Access to the color of an individual pixel of the buffer as a gray scale value.
- Width - Returns the Width of the video frame.
- Height - Returns the Height of the video frame.
- Format - The video format of the buffer.
- Step - Returns the size of a scan line (Row) in number of bytes.
- DimSize - Returns the dimension size of the buffer.
- TimeCode - Returns the buffer's timecode information.
- DateTime - Returns the buffer's datetime information.
- IsKeyFrame - Returns true if the buffer is key frame.
Methods
- function Read() : PByte - Returns read only pointer to the buffer data.
- function Write() : PByte - Returns write pointer to the buffer data.
- function Modify() : PByte - Returns read and write pointer to the buffer data.
- procedure FromBitmap(ABitmap : TBitmap) - Creates a video frame from a bitmap.
- procedure ToBitmap(ABitmap : TBitmap) - Stores a video frame into a bitmap.
- procedure FromBitmap(ABitmap : TVLBitmap) - Creates a video frame from a bitmap.
- procedure ToBitmap(ABitmap : TVLBitmap) - Stores a video frame into a bitmap.
- procedure SaveToBitmapFile(AFileName : String)
- function GetWidth() : Cardinal - Returns the Width of the video frame.
- function GetHeight() : Cardinal - Returns the Height of the video frame.
- procedure SetFormat(AValue : TVLVideoFormat) - Sets the video format of the buffer.
- function GetFormat() : TVLVideoFormat - Returns the video format of the buffer.
- function GetPixel(X : Cardinal; Y : Cardinal) : TColor - Returns the color of individual pixel of the buffer.
- procedure SetPixel(X : Cardinal; Y : Cardinal; AValue : TColor) - Sets the color of individual pixel of the buffer.
- function GetRed(X : Cardinal; Y : Cardinal) : BYTE - Returns the Red color component of an individual pixel of the buffer.
- procedure SetRed(X : Cardinal; Y : Cardinal; AValue : BYTE) - Sets the Red color component of an individual pixel of the buffer.
- function GetGreen(X : Cardinal; Y : Cardinal) : BYTE - Returns the Green color component of an individual pixel of the buffer.
- procedure SetGreen(X : Cardinal; Y : Cardinal; AValue : BYTE) - Sets the Green color component of an individual pixel of the buffer.
- function GetBlue(X : Cardinal; Y : Cardinal) : BYTE - Returns the Blue color component of an individual pixel of the buffer.
- procedure SetBlue(X : Cardinal; Y : Cardinal; AValue : BYTE) - Sets the Blue color component of an individual pixel of the buffer.
- function GetAlpha(X : Cardinal; Y : Cardinal) : BYTE - Returns the Alpha transparency component of individual pixel of the buffer.
- procedure SetAlpha(X : Cardinal; Y : Cardinal; AValue : BYTE) - Sets the Alpha transparency component of individual pixel of the buffer.
- function GetGrayScale(X : Cardinal; Y : Cardinal) : WORD - Returns the color of individual pixel of the buffer as a gray scale.
- procedure SetGrayScale(X : Cardinal; Y : Cardinal; AValue : WORD) - Sets the color of individual pixel of the buffer to a grayscale value.
- procedure SetRedChannel(AValue : BYTE) - Sets the Red color component of the buffer.
- procedure SetGreenChannel(AValue : BYTE) - Sets the Green color component of the buffer.
- procedure SetBlueChannel(AValue : BYTE) - Sets the Blue color component of the buffer.
- procedure SetAlphaChannel(AValue : BYTE) - Sets the Alpha component of the buffer.
- function GetRedChannel() : IVLImageBuffer - Returns the Red color component channel of the buffer.
- function GetGreenChannel() : IVLImageBuffer - Returns the Green color component channel of the buffer.
- function GetBlueChannel() : IVLImageBuffer - Returns the Blue color component channel of the buffer.
- function GetAlphaChannel() : IVLImageBuffer - Returns the Alpha channel of the buffer.
- function GetExtWidth() : Cardinal - Returns the size of a scan line (Row) in number of pixels.
- function GetBytesPerPixel() : Cardinal - Returns the number of bytes per pixel.
- function GetDimSize() : TSize - Returns the image size.
- function GetStep() : Cardinal - Returns the size of a scan line (Row) in number of bytes.
- function GetTimeCode() : TVLTimeCode - Returns the buffer's timecode information.
- function GetDateTime() : TVLDateTime - Returns the buffer's datetime information.
- function GetIsKeyFrame() : Boolean
- procedure SetIsKeyFrame(AValue : Boolean)
- procedure SetImageSize(AWidth : Cardinal; AHeight : Cardinal) - Resizes the image.
- procedure SetImageSizeFormat(AWidth : Cardinal; AHeight : Cardinal; AFormat : TVLVideoFormat) - Resizes the image and changes the format.
- procedure SetPixelAlpha(X : Cardinal; Y : Cardinal; AValue : TColor; AAlpha : BYTE) - Sets the color and alpha of individual pixel of the buffer.
- procedure AlphaComp(Right : IVLImageBuffer; AOperation : TVLAlphaCompOperation) - Combines two images using alpha (opacity) values of both images.
- procedure Add(Right : IVLImageBuffer) - Adds the corresponding pixels of another buffer to the pixels of the buffer.
- procedure Add(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs add operation over each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure AddValue(AValue : TColor) - Performs add operation over each pixel of the frame image with a value.
- procedure AddValue(AValue : TColor; Alpha : Byte) - Performs add operation over each pixel of the frame image with a color and transparency value.
- procedure AddValue(AValue : Cardinal) - Performs add operation over the color and alpha of each pixel of the frame image with a value.
- procedure Subtract(Right : IVLImageBuffer) - Subtracts the corresponding pixels of another buffer from the pixels of the buffer.
- procedure Subtract(Left : IVLImageBuffer; Right : IVLImageBuffer) - Subtracts the image pixels of one buffer from the image pixels of another.
- procedure SubtractValue(AValue : TColor) - Subtracts a value from each pixel of the image.
- procedure SubtractValue(AValue : TColor; Alpha : Byte) - Performs subtract operation over each pixel of the frame image with a color and transparency value.
- procedure SubtractValue(AValue : Cardinal) - Performs subtract operation over the color and alpha of each pixel of the frame image with a value.
- procedure Multiply(Right : IVLImageBuffer) - Multiplies the corresponding pixels of another buffer to the pixels of the buffer.
- procedure Multiply(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs multiply operation over each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure MultiplyValue(AValue : TColor) - Performs multiply operation over each pixel of the frame image with a value.
- procedure MultiplyValue(AValue : TColor; Alpha : Byte) - Performs multiply operation over each pixel of the frame image with a color and transparency value.
- procedure MultiplyValue(AValue : Cardinal) - Performs multiply operation over the color and alpha of each pixel of the frame image with a value.
- procedure MultiplyScale(Right : IVLImageBuffer) - Performs multiply operation over each pixel of the frame image of the buffer and each pixel of the frame image of another buffer and scales the products.
- procedure MultiplyScale(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs multiply operation over each pixel of the frame images of two buffers and assigns the result to the buffer and scales the products.
- procedure MultiplyScaleValue(AValue : TColor) - Performs multiply operation over each pixel of the frame image with a value and scales the results.
- procedure MultiplyScaleValue(AValue : TColor; Alpha : Byte) - Performs multiply operation over each pixel of the frame image with a color and transparency value and scales the products.
- procedure MultiplyScaleValue(AValue : Cardinal) - Performs multiply operation over the color and alpha of each pixel of the frame image with a value and scales the products.
- procedure Divide(Right : IVLImageBuffer) - Divides the pixels of the buffer by the corresponding pixels of another buffer.
- procedure Divide(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs divide operation over each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure DivideValue(AValue : TColor) - Performs divide operation over the color of each pixel of the frame image with a value.
- procedure DivideValue(AValue : TColor; Alpha : Byte) - Performs divide operation over each pixel of the frame image with a color and transparency value.
- procedure DivideValue(AValue : Cardinal) - Performs divide operation over the color and alpha of each pixel of the frame image with a value.
- procedure AbsDiff(Right : IVLImageBuffer) - Performs absolute diff operation over each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure AbsDiff(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs absolute diff operation over each pixel of the frame image of the buffer and each pixel of the frame image of another buffer.
- procedure LAnd(Right : IVLImageBuffer) - Performs bitwise AND operation over each pixel of the frame image of the buffer and each pixel of the frame image of another buffer.
- procedure LAnd(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs bitwise AND operation over the color of each each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure LAndValue(AValue : TColor) - Performs bitwise AND operation over each pixel of the frame image with a value.
- procedure LAndValue(AValue : TColor; Alpha : Byte) - Performs bitwise AND operation over each pixel of the frame image with a color and transparency value.
- procedure LAndValue(AValue : Cardinal) - Performs bitwise AND operation over the color and Alpha of each pixel of the frame image with a value.
- procedure LOr(Right : IVLImageBuffer) - Performs bitwise OR operation over each pixel of the frame image of teh buffer and each pixel of the frame image of another buffer.
- procedure LOr(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs bitwise OR operation over each pixel of a frame image with a value. and stores the result in the buffer.
- procedure LOrValue(AValue : TColor) - Performs bitwise OR operation over each pixel of the frame image with a value.
- procedure LOrValue(AValue : TColor; Alpha : Byte) - Performs bitwise OR operation over each pixel of the frame image with a color and transparency value.
- procedure LOrValue(AValue : Cardinal) - Performs bitwise OR operation over the color and Alpha of each pixel of the frame image with a value.
- procedure LXor(Right : IVLImageBuffer) - Performs bitwise XOR operation over each pixel of the frame image of the buffer and each pixel of the frame image of another buffer.
- procedure LXor(Left : IVLImageBuffer; Right : IVLImageBuffer) - Performs bitwise XOR operation over each pixel of the frame images of two buffers and assigns the result to the buffer.
- procedure LXorValue(AValue : TColor) - Performs bitwise XOR operation over each pixel of the frame image with a value.
- procedure LXorValue(AValue : TColor; Alpha : Byte) - Performs bitwise XOR operation over each pixel of the frame image with a color and transparency value.
- procedure LXorValue(AValue : Cardinal) - Performs bitwise XOR operation over the color and Alpha of each pixel of the frame image with a value.
- procedure LShiftValue(AValue : TColor) - Shifts AColor times the bits in the entire pixel values of the image to the left.
- procedure LShiftValue(AValue : TColor; Alpha : Byte) - Shifts left number of times each pixel ofthe frame image with a color and transparency value.
- procedure LShiftValue(AValue : Cardinal) - Shifts left number of times each pixel ofthe frame image with a value.
- procedure RShiftValue(AValue : TColor) - Shifts AColor times the bits in the entire pixel values of the image to the right.
- procedure RShiftValue(AValue : TColor; Alpha : Byte) - Shifts right number of times each pixel ofthe frame image with a color and transparency value.
- procedure RShiftValue(AValue : Cardinal) - Shifts right number of times each pixel ofthe frame image with a value.
- procedure LNot() - Performs a Boolean bitwise NOT operation over each pixel of the image.
- procedure LNot(Right : IVLImageBuffer)
- procedure Sqr() - Squares pixel values of the frame image of the buffer.
- procedure Sqr(Right : IVLImageBuffer) - Squares pixel values of the frame image of another buffer and assigns the result to the image of the buffer.
- procedure SetValue(AValue : TColor) - Sets the image to a specific color.
- procedure SetValue(AValue : Cardinal) - Sets the contained image to a color and Alpha transparency level.
- procedure SetValue(AValue : Byte) - Sets the image to a specific color.
- procedure SetValue(AValue : Byte; Alpha : Byte) - Sets the contained image to a color and Alpha transparency level.
- procedure SetValue(AValue : TColor; AAlpha : Byte) - Sets the contained image to a color and Alpha transparency level.
- procedure SetAlpha(AAlpha : Byte) - Sets the Alpha transparency component of all pixels of the buffer.
- procedure SetGrayScale(AValue : Byte) - Sets the image to a specific grayscale color.
- procedure Zero() - Sets all the pixels of the buffer to Zero ( Black color ).
- procedure Zero(Alpha : Byte)