Changeset 13ed2b54ae7181b50a474a6f80abe0f9a88570eb

Show
Ignore:
Timestamp:
04/12/07 21:01:07 (1 year ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1196798467 +0000
git-parent:

[01e7e3eb3a30663d9b3c647a4c018a5b778765e1]

git-author:
Rafaël Carré <funman@videolan.org> 1196798467 +0000
Message:

libvlc_video_take_snapshot(): specify snapshot's height and width

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc/libvlc.h

    r553620b r13ed2b5  
    823823/** 
    824824 * Take a snapshot of the current video window 
     825 * If i_width AND i_height is 0, original size is used 
     826 * if i_width XOR i_height is 0, original aspect-ratio is preserved 
    825827 * \param p_input the input 
    826828 * \param psz_filepath the path where to save the screenshot to 
    827  * \param p_exception an initialized exception 
    828  */ 
    829 VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_media_instance_t *, char *, libvlc_exception_t * ); 
     829 * \param i_width the snapshot's width 
     830 * \param i_height the snapshot's height 
     831 * \param p_exception an initialized exception 
     832 */ 
     833VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_media_instance_t *, char *,unsigned int, unsigned int, libvlc_exception_t * ); 
    830834 
    831835VLC_PUBLIC_API int libvlc_video_destroy( libvlc_media_instance_t *, libvlc_exception_t *); 
  • src/control/video.c

    r82f30a7 r13ed2b5  
    128128void 
    129129libvlc_video_take_snapshot( libvlc_media_instance_t *p_mi, char *psz_filepath, 
    130                       libvlc_exception_t *p_e ) 
     130        unsigned int i_width, unsigned int i_height, libvlc_exception_t *p_e ) 
    131131{ 
    132132    vout_thread_t *p_vout = GetVout( p_mi, p_e ); 
     
    145145    } 
    146146 
     147    var_SetInteger( p_vout, "snapshot-width", i_width ); 
     148    var_SetInteger( p_vout, "snapshot-height", i_height ); 
    147149 
    148150    p_input_thread = (input_thread_t*)vlc_object_get(