changeset 8565:6687083ec76a libavcodec

Remove H264Context from vdpau_internal.h.
author cehoyos
date Sun, 11 Jan 2009 00:48:20 +0000
parents 11bcc8a9726b
children 48a4d9f4c6f8
files h264.c vdpau_internal.h vdpauvideo.c
diffstat 3 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sat Jan 10 23:17:07 2009 +0000
+++ b/h264.c	Sun Jan 11 00:48:20 2009 +0000
@@ -7625,7 +7625,7 @@
         s->current_picture_ptr->pict_type= s->pict_type;
 
         if (ENABLE_H264_VDPAU_DECODER && avctx->codec_id == CODEC_ID_H264_VDPAU)
-            ff_vdpau_h264_set_reference_frames(h);
+            ff_vdpau_h264_set_reference_frames(s);
 
         if(!s->dropable) {
             execute_ref_pic_marking(h, h->mmco, h->mmco_index);
@@ -7636,7 +7636,7 @@
         h->prev_frame_num= h->frame_num;
 
         if (ENABLE_H264_VDPAU_DECODER && avctx->codec_id == CODEC_ID_H264_VDPAU)
-            ff_vdpau_h264_picture_complete(h);
+            ff_vdpau_h264_picture_complete(s);
 
         /*
          * FIXME: Error handling code does not seem to support interlaced
--- a/vdpau_internal.h	Sat Jan 10 23:17:07 2009 +0000
+++ b/vdpau_internal.h	Sun Jan 11 00:48:20 2009 +0000
@@ -25,11 +25,10 @@
 #define AVCODEC_VDPAU_INTERNAL_H
 
 #include <stdint.h>
-#include "h264.h"
 
 void ff_vdpau_add_data_chunk(MpegEncContext *s, const uint8_t *buf,
                              int buf_size);
-void ff_vdpau_h264_set_reference_frames(H264Context *h);
-void ff_vdpau_h264_picture_complete(H264Context *h);
+void ff_vdpau_h264_set_reference_frames(MpegEncContext *s);
+void ff_vdpau_h264_picture_complete(MpegEncContext *s);
 
 #endif /* AVCODEC_VDPAU_INTERNAL_H */
--- a/vdpauvideo.c	Sat Jan 10 23:17:07 2009 +0000
+++ b/vdpauvideo.c	Sun Jan 11 00:48:20 2009 +0000
@@ -37,9 +37,9 @@
  * @{
  */
 
-void ff_vdpau_h264_set_reference_frames(H264Context *h)
+void ff_vdpau_h264_set_reference_frames(MpegEncContext *s)
 {
-    MpegEncContext * s = &h->s;
+    H264Context *h = s->avctx->priv_data;
     struct vdpau_render_state * render, * render_ref;
     VdpReferenceFrameH264 * rf, * rf2;
     Picture * pic;
@@ -126,9 +126,9 @@
     render->bitstream_buffers_used++;
 }
 
-void ff_vdpau_h264_picture_complete(H264Context *h)
+void ff_vdpau_h264_picture_complete(MpegEncContext *s)
 {
-    MpegEncContext * s = &h->s;
+    H264Context *h = s->avctx->priv_data;
     struct vdpau_render_state * render;
 
     render = (struct vdpau_render_state*)s->current_picture_ptr->data[0];