[FFmpeg-cvslog] r20941 - in trunk/libavcodec: vaapi.c vaapi_internal.h vaapi_mpeg2.c vaapi_mpeg4.c vaapi_vc1.c
gb
subversion
Mon Dec 28 10:02:16 CET 2009
Author: gb
Date: Mon Dec 28 10:02:16 2009
New Revision: 20941
Log:
Rename ff_vaapi_get_surface() to ff_vaapi_get_surface_id().
Modified:
trunk/libavcodec/vaapi.c
trunk/libavcodec/vaapi_internal.h
trunk/libavcodec/vaapi_mpeg2.c
trunk/libavcodec/vaapi_mpeg4.c
trunk/libavcodec/vaapi_vc1.c
Modified: trunk/libavcodec/vaapi.c
==============================================================================
--- trunk/libavcodec/vaapi.c Sun Dec 27 22:31:10 2009 (r20940)
+++ trunk/libavcodec/vaapi.c Mon Dec 28 10:02:16 2009 (r20941)
@@ -185,7 +185,7 @@ int ff_vaapi_common_end_frame(MpegEncCon
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);
}
Modified: trunk/libavcodec/vaapi_internal.h
==============================================================================
--- trunk/libavcodec/vaapi_internal.h Sun Dec 27 22:31:10 2009 (r20940)
+++ trunk/libavcodec/vaapi_internal.h Mon Dec 28 10:02:16 2009 (r20941)
@@ -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];
}
Modified: trunk/libavcodec/vaapi_mpeg2.c
==============================================================================
--- trunk/libavcodec/vaapi_mpeg2.c Sun Dec 27 22:31:10 2009 (r20940)
+++ trunk/libavcodec/vaapi_mpeg2.c Mon Dec 28 10:02:16 2009 (r20941)
@@ -73,10 +73,10 @@ static int vaapi_mpeg2_start_frame(AVCod
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;
}
Modified: trunk/libavcodec/vaapi_mpeg4.c
==============================================================================
--- trunk/libavcodec/vaapi_mpeg4.c Sun Dec 27 22:31:10 2009 (r20940)
+++ trunk/libavcodec/vaapi_mpeg4.c Mon Dec 28 10:02:16 2009 (r20941)
@@ -92,9 +92,9 @@ static int vaapi_mpeg4_start_frame(AVCod
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 */
Modified: trunk/libavcodec/vaapi_vc1.c
==============================================================================
--- trunk/libavcodec/vaapi_vc1.c Sun Dec 27 22:31:10 2009 (r20940)
+++ trunk/libavcodec/vaapi_vc1.c Mon Dec 28 10:02:16 2009 (r20941)
@@ -242,10 +242,10 @@ static int vaapi_vc1_start_frame(AVCodec
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;
}
More information about the ffmpeg-cvslog
mailing list