Commit aeb8ac01 authored by Antoine Cellerier's avatar Antoine Cellerier

s/picture_Yield/picture_Hold/

parent ba6501f3
......@@ -126,7 +126,7 @@ struct picture_t
/**
* This function will create a new picture.
* The picture created will implement a default release management compatible
* with picture_Yield and picture_Release. This default management will release
* with picture_Hold and picture_Release. This default management will release
* picture_sys_t *p_sys field if non NULL.
*/
VLC_EXPORT( picture_t *, picture_New, ( vlc_fourcc_t i_chroma, int i_width, int i_height, int i_aspect ) );
......@@ -144,7 +144,7 @@ VLC_EXPORT( void, picture_Delete, ( picture_t * ) );
* This function will increase the picture reference count.
* It will not have any effect on picture obtained from vout
*/
static inline void picture_Yield( picture_t *p_picture )
static inline void picture_Hold( picture_t *p_picture )
{
if( p_picture->pf_release )
p_picture->i_refcount++;
......@@ -196,7 +196,7 @@ VLC_EXPORT( void, plane_CopyPixels, ( plane_t *p_dst, const plane_t *p_src ) );
/**
* This function will copy both picture dynamic properties and pixels.
* You have to notice that sometime a simple picture_Yield may do what
* You have to notice that sometime a simple picture_Hold may do what
* you want without the copy overhead.
* Provided for convenience.
*/
......
......@@ -316,7 +316,7 @@ static block_t *ImageWrite( image_handler_t *p_image, picture_t *p_pic,
p_image->p_filter->fmt_out.video = p_image->p_enc->fmt_in.video;
}
picture_Yield( p_pic );
picture_Hold( p_pic );
p_tmp_pic =
p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
......@@ -446,7 +446,7 @@ static picture_t *ImageConvert( image_handler_t *p_image, picture_t *p_pic,
p_image->p_filter->fmt_out.video = *p_fmt_out;
}
picture_Yield( p_pic );
picture_Hold( p_pic );
p_pif = p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
......@@ -493,7 +493,7 @@ static picture_t *ImageFilter( image_handler_t *p_image, picture_t *p_pic,
p_image->p_filter->fmt_out.video = *p_fmt;
}
picture_Yield( p_pic );
picture_Hold( p_pic );
return p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
}
......@@ -587,7 +587,7 @@ static void video_del_buffer( decoder_t *p_dec, picture_t *p_pic )
static void video_link_picture( decoder_t *p_dec, picture_t *p_pic )
{
(void)p_dec;
picture_Yield( p_pic );
picture_Hold( p_pic );
}
static void video_unlink_picture( decoder_t *p_dec, picture_t *p_pic )
......
......@@ -1061,7 +1061,7 @@ static void SpuRenderRegion( spu_t *p_spu,
filter_t *p_scale = p_spu->p_scale;
picture_t *p_picture = p_region->p_picture;
picture_Yield( p_picture );
picture_Hold( p_picture );
/* Convert YUVP to YUVA/RGBA first for better scaling quality */
if( b_using_palette )
......
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