Changeset 13ed2b54ae7181b50a474a6f80abe0f9a88570eb
- 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
| r553620b |
r13ed2b5 |
|
| 823 | 823 | /** |
|---|
| 824 | 824 | * 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 |
|---|
| 825 | 827 | * \param p_input the input |
|---|
| 826 | 828 | * \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 | */ |
|---|
| | 833 | VLC_PUBLIC_API void libvlc_video_take_snapshot( libvlc_media_instance_t *, char *,unsigned int, unsigned int, libvlc_exception_t * ); |
|---|
| 830 | 834 | |
|---|
| 831 | 835 | VLC_PUBLIC_API int libvlc_video_destroy( libvlc_media_instance_t *, libvlc_exception_t *); |
|---|
| r82f30a7 |
r13ed2b5 |
|
| 128 | 128 | void |
|---|
| 129 | 129 | libvlc_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 ) |
|---|
| 131 | 131 | { |
|---|
| 132 | 132 | vout_thread_t *p_vout = GetVout( p_mi, p_e ); |
|---|
| … | … | |
| 145 | 145 | } |
|---|
| 146 | 146 | |
|---|
| | 147 | var_SetInteger( p_vout, "snapshot-width", i_width ); |
|---|
| | 148 | var_SetInteger( p_vout, "snapshot-height", i_height ); |
|---|
| 147 | 149 | |
|---|
| 148 | 150 | p_input_thread = (input_thread_t*)vlc_object_get( |
|---|