VideoMASTER_Buffer
- Updated2023-08-17
- 1 minute(s) read
VideoMASTER_Buffer
Description:
These functions accesses all video information stored in the video buffer VI from a previous acquisition or load from binary file. This includes all raw video samples as well as data about how the signal was acquired, the original video standard, and the original line numbering. Up to 3 channels of video are stored in the buffer, depending on the type of video signal acquired. Video samples are stored in originally digitized I16 representation to occupy less memory.
Syntax:
typedef enum {
Format_Composite, Format_SVideo, Format_RGsB, Format_RGBS,
Format_RGBHV, Format_YsUV, Format_YUVS, Format_YUVHV,
Format_VGA, Format_DRGB, Format_DYUV, Format_DPCRGB,
Format_DHDMI, Format_DBT656
} VideoFormatTypes;
typedef struct {
VideoFormatTypes format;
unsigned char standardIndex;
} VideoFormat;
typedef struct {
unsigned char standardIndex;
unsigned char channels;
long samplesPerFrame;
double sampleIntervalS;
unsigned short startLine;
unsigned short linesInFrame;
unsigned short frames;
LStrHandle standardName;
unsigned short filter;
} GeneralInfo;
typedef enum {
Signal_Composite, Signal_SVideo, Signal_Gs, Signal_B,
Signal_R, Signal_Ys, Signal_Pb, Signal_Pr, Signal_G,
Signal_Y, Signal_Sync, Signal_NA, Signal_DE
} SignalComponentTypes;
typedef struct {
double offset;
double gain;
SignalComponentTypes component;
} ChannelInfo;
void VideoMASTER_BufferInfo(
ErrorCluster *errorIn,
ErrorCluster *errorOut,
VideoFormat *videoFormat,
GeneralInfo *generalInfo,
ChannelInfo *ch0,
ChannelInfo *ch1,
ChannelInfo *ch2);
typedef struct {
long dimSizes[2];
short int Numeric[1];
} Samples;
typedef Samples **SamplesHdl;
void VideoMASTER_BufferSamples(
ErrorCluster *errorIn,
ErrorCluster *errorOut,
SamplesHdl *ch0Samples,
SamplesHdl *ch1Samples,
SamplesHdl *ch2Samples);
Parameters:
refer to the corresponding LabVIEW API VideoMASTER Buffer for a detailed description of each parameter.