Frame Buffer - ADLINK Technology RTV Series User Manual

Multi-channel real-time video frame grabber series
Table of Contents

Advertisement

5.10 Frame Buffer

@ Name
AngeloRTV_Copy_frame (PortNo, Dest_Address, Size_Byte)
Copies the frame date to the user allocated destination memory
(bytes).
AngeloRTV_Get_frame(PortNo,
Size_Byte)
Gets the frame memory start address and size of frame (bytes).
AngeloRTV_Save_File(PortNo, FileName, FileFormat, nQuality)
Save the video frame into an image file.
@ Description
AngeloRTV_Copy_frame:
Copies frame data to memory or an array that the user has allo-
cated. Before using this function, remember to allocate enough
memory address space or array elements.
AngeloRTV_Save_File:
Saves the current video frame into an image file (TIF, BMP, or
JPEG). nQuality is only used JPEGs.
AngeloRTV_Get_frame:
Retrieves the memory start address from the frame data, width,
height, and size in bytes of the image. For example a FULL NTSC
RGB24 video frame will occupy 900K Byte (640*480*3) memory
address space.
Format
DWORD(32Bit)
RGB32
RGB24
RGB16
122
Byte 3
Bit [31:24]
Dw0
Appha
Dw0
B1
Dw1
G2
Dw2
R3
{R0[31:27],
Dw0
G0[26:21],
B0[20:16]}
Table 5-3: Pixel Data
Start_Address,Width,
Pixel Data
Byte 2
Bit[23:16]
Bit[15:8]
R
R0
B2
G3
{R0[15:11],
G0[10:5],
B0[4:0]}
Function Library
Height,
Byte 1
Byte 0
Bit[7:0]
G
B
G0
B0
R1
G1
B3
R2

Advertisement

Table of Contents
loading

Table of Contents