Commit 36ad2b3e authored by Gwenole Beauchesne's avatar Gwenole Beauchesne

Rename ff_vaapi_get_surface() to ff_vaapi_get_surface_id().

Originally committed as revision 20941 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6399c17d
......@@ -185,7 +185,7 @@ int ff_vaapi_common_end_frame(MpegEncContext *s)
if (commit_slices(vactx) < 0)
goto done;
if (vactx->n_slice_buf_ids > 0) {
if (render_picture(vactx, ff_vaapi_get_surface(s->current_picture_ptr)) < 0)
if (render_picture(vactx, ff_vaapi_get_surface_id(s->current_picture_ptr)) < 0)
goto done;
ff_draw_horiz_band(s, 0, s->avctx->height);
}
......
......@@ -36,7 +36,7 @@
*/
/** Extract VASurfaceID from a Picture */
static inline VASurfaceID ff_vaapi_get_surface(Picture *pic)
static inline VASurfaceID ff_vaapi_get_surface_id(Picture *pic)
{
return (uintptr_t)pic->data[3];
}
......
......@@ -73,10 +73,10 @@ static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_
switch (s->pict_type) {
case FF_B_TYPE:
pic_param->backward_reference_picture = ff_vaapi_get_surface(&s->next_picture);
pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture);
// fall-through
case FF_P_TYPE:
pic_param->forward_reference_picture = ff_vaapi_get_surface(&s->last_picture);
pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
break;
}
......
......@@ -92,9 +92,9 @@ static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_
pic_param->TRD = s->pp_time;
if (s->pict_type == FF_B_TYPE)
pic_param->backward_reference_picture = ff_vaapi_get_surface(&s->next_picture);
pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture);
if (s->pict_type != FF_I_TYPE)
pic_param->forward_reference_picture = ff_vaapi_get_surface(&s->last_picture);
pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
/* Fill in VAIQMatrixBufferMPEG4 */
/* Only the first inverse quantisation method uses the weighthing matrices */
......
......@@ -242,10 +242,10 @@ static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t
switch (s->pict_type) {
case FF_B_TYPE:
pic_param->backward_reference_picture = ff_vaapi_get_surface(&s->next_picture);
pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture);
// fall-through
case FF_P_TYPE:
pic_param->forward_reference_picture = ff_vaapi_get_surface(&s->last_picture);
pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
break;
}
......
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