[vlc-devel] commit: Optimize vout_PlacePicture prototype ( Rémi Denis-Courmont )
git version control
git at videolan.org
Fri Jan 23 18:17:06 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Jan 22 19:51:21 2009 +0200| [770ea21e999ad05aec50b0d1601c180b13b9d68f] | committer: Rémi Denis-Courmont
Optimize vout_PlacePicture prototype
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=770ea21e999ad05aec50b0d1601c180b13b9d68f
---
include/vlc_vout.h | 2 +-
src/video_output/vout_pictures.c | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/include/vlc_vout.h b/include/vlc_vout.h
index 2cd78ab..e0d3ecb 100644
--- a/include/vlc_vout.h
+++ b/include/vlc_vout.h
@@ -666,7 +666,7 @@ VLC_EXPORT( void, vout_DestroyPicture, ( vout_thread_t *, picture_t *
VLC_EXPORT( void, vout_DisplayPicture, ( vout_thread_t *, picture_t * ) );
VLC_EXPORT( void, vout_LinkPicture, ( vout_thread_t *, picture_t * ) );
VLC_EXPORT( void, vout_UnlinkPicture, ( vout_thread_t *, picture_t * ) );
-VLC_EXPORT( void, vout_PlacePicture, ( vout_thread_t *, unsigned int, unsigned int, unsigned int *, unsigned int *, unsigned int *, unsigned int * ) );
+VLC_EXPORT( void, vout_PlacePicture, ( const vout_thread_t *, unsigned int, unsigned int, unsigned int *, unsigned int *, unsigned int *, unsigned int * ) );
VLC_EXPORT( int, vout_vaControlDefault, ( vout_thread_t *, int, va_list ) );
void vout_IntfInit( vout_thread_t * );
diff --git a/src/video_output/vout_pictures.c b/src/video_output/vout_pictures.c
index ae53033..ffb2c57 100644
--- a/src/video_output/vout_pictures.c
+++ b/src/video_output/vout_pictures.c
@@ -448,10 +448,12 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
* This function will be accessed by plugins. It calculates the relative
* position of the output window and the image window.
*/
-void vout_PlacePicture( vout_thread_t *p_vout,
+void vout_PlacePicture( const vout_thread_t *p_vout,
unsigned int i_width, unsigned int i_height,
- unsigned int *pi_x, unsigned int *pi_y,
- unsigned int *pi_width, unsigned int *pi_height )
+ unsigned int *restrict pi_x,
+ unsigned int *restrict pi_y,
+ unsigned int *restrict pi_width,
+ unsigned int *restrict pi_height )
{
if( (i_width <= 0) || (i_height <=0) )
{
More information about the vlc-devel
mailing list