[vlc] Snapshot question

Robert Jędrzejczyk robert at prog.olsztyn.pl
Wed Jan 5 20:28:08 CET 2011


Hello,
I have question: why VideoLAN has hard coded PNG format in function:

int
libvlc_video_take_snapshot( libvlc_media_player_t *p_mi, unsigned num,
                            const char *psz_filepath,
                            unsigned int i_width, unsigned int i_height )
{
    assert( psz_filepath );

    vout_thread_t *p_vout = GetVout (p_mi, num);
    if (p_vout == NULL)
        return -1;

    /* FIXME: This is not atomic. Someone else could change the values,
     * at least in theory. */
    var_SetInteger( p_vout, "snapshot-width", i_width);
    var_SetInteger( p_vout, "snapshot-height", i_height );
    var_SetString( p_vout, "snapshot-path", psz_filepath );
    var_SetString( p_vout, "snapshot-format", "png" );
    var_TriggerCallback (p_vout, "video-snapshot" );
    return 0;
}
 
I need to create snapshot in JPG format.
I need report this as bug?
 
Best Reagrds
Robert Jędrzejczyk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20110105/8ab0d067/attachment.html>


More information about the vlc mailing list