Commit 770ea21e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Optimize vout_PlacePicture prototype

parent 034e5706
...@@ -666,7 +666,7 @@ VLC_EXPORT( void, vout_DestroyPicture, ( vout_thread_t *, picture_t * ...@@ -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_DisplayPicture, ( vout_thread_t *, picture_t * ) );
VLC_EXPORT( void, vout_LinkPicture, ( 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_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 ) ); VLC_EXPORT( int, vout_vaControlDefault, ( vout_thread_t *, int, va_list ) );
void vout_IntfInit( vout_thread_t * ); void vout_IntfInit( vout_thread_t * );
......
...@@ -448,10 +448,12 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic, ...@@ -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 * This function will be accessed by plugins. It calculates the relative
* position of the output window and the image window. * 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 i_width, unsigned int i_height,
unsigned int *pi_x, unsigned int *pi_y, unsigned int *restrict pi_x,
unsigned int *pi_width, unsigned int *pi_height ) unsigned int *restrict pi_y,
unsigned int *restrict pi_width,
unsigned int *restrict pi_height )
{ {
if( (i_width <= 0) || (i_height <=0) ) if( (i_width <= 0) || (i_height <=0) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment