I use cygwin and VLC.0.9.6.
I want to take some snapshots of a video whenever I press any keys of the keyboard in 'jpg' format.
So I change the extension parameter from"png" to "jpg" of the function:
within the function:var_SetString( p_vout, "snapshot-format", "jpg" );
placed before the main program.void libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, char *psz_filepath,
unsigned int i_width, unsigned int i_height, libvlc_exception_t *p_e )
I get these errors:
Code: Select all
In function 'void libvlc_video_take_snapshot*, char*, unsigned int, unsigned int, libvlc_exception_t* )':
error: 'vout_thread_t' undeclared <first use this function>
error: <Each undeclared identifier is reported only once for each function it appears in.>
error: 'p_vout' undeclared <first use this function>
error: 'GetVout' undeclared <first use this function>
...
error: invalid use of undefined type 'struct libvlc-media-player_t'
/usr/include/vlc/libvlc_strustures.h:125: error: forward declaration of 'libvlc-media-player_t'
...
error: 'var_SetString' undeclared <first use this function>
error: 'VOUT_SNAPSHOT' undeclared <first use this function>
Could anyone help me please? Any help would be appreciated!g++ test.cpp -lvlc -o test
Thanks in advance!