Hello, I downloaded the libfg library which is a high-level library for interfacing with video4linux and capturing frames from video devices. Are the statements "FRAMEGRABBER* fg = NULL" and "FRAME* fr = NULL" declaring pointers?? I am confused why the asterisk is not on the opposite side. Furthermore, is FRAMEGRABBER a function name, and fg a variable?
Code:
#define TV_ABC 64.250f
void test()
{
FRAMEGRABBER* fg = NULL;
FRAME* fr = NULL;
// Open the default device
fg = fg_open( NULL );
// Capture from our VCR
fg_set_source( fg, FG_SOURCE_COMPOSITE );
// Take a snap
fr = fg_grab( fg );
frame_save( fr, “vcr.pgm” );
// Now get ABC TV
fg_set_source( fg, FG_SOURCE_TV );
fg_set_tuner( fg, TV_ABC );
// Take a snap
fg_grab_frame( fg, frame );
frame_save( fr, “ABC.pgm” );
frame_release( fr );
fg_close( fg );
}