[MPlayer-cvslog] r37734 - in trunk: libmpcodecs/img_format.h libmpcodecs/vd_ffmpeg.c libmpcodecs/vdpau_frame_data.h libvo/vo_vdpau.c
al
subversion at mplayerhq.hu
Sun Feb 14 23:28:20 CET 2016
Author: al
Date: Sun Feb 14 23:28:20 2016
New Revision: 37734
Log:
vdpau: Move struct vdpau_frame_data into a separate header
After recent changes the vdpau_frame_data struct uses structures
from libvdpau directly. This is unfortunate if it is declared in
img_format.h header file because that is also included from
codec-cfg.c which is compiled with the host compiler.
Avoid vdpau dep in img_format.h by moving the vdpau_frame_data
struct into a header of its own.
Fix ticket #2265
Added:
trunk/libmpcodecs/vdpau_frame_data.h
Modified:
trunk/libmpcodecs/img_format.h
trunk/libmpcodecs/vd_ffmpeg.c
trunk/libvo/vo_vdpau.c
Modified: trunk/libmpcodecs/img_format.h
==============================================================================
--- trunk/libmpcodecs/img_format.h Sun Feb 14 21:36:28 2016 (r37733)
+++ trunk/libmpcodecs/img_format.h Sun Feb 14 23:28:20 2016 (r37734)
@@ -20,9 +20,6 @@
#define MPLAYER_IMG_FORMAT_H
#include "config.h"
-#if CONFIG_VDPAU
-#include <vdpau/vdpau.h>
-#endif
/* RGB/BGR Formats */
@@ -304,15 +301,6 @@ typedef struct {
int timestamp; // pts, 90000 Hz counter based
} vo_mpegpes_t;
-#if CONFIG_VDPAU
-struct vdpau_frame_data {
- VdpVideoSurface surface;
- const void *info;
- unsigned bitstream_buffers_used;
- const void *bitstream_buffers;
-};
-#endif
-
const char *vo_format_name(int format);
/**
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Sun Feb 14 21:36:28 2016 (r37733)
+++ trunk/libmpcodecs/vd_ffmpeg.c Sun Feb 14 23:28:20 2016 (r37734)
@@ -39,6 +39,7 @@
#if CONFIG_VDPAU
#include "libavcodec/vdpau.h"
+#include "vdpau_frame_data.h"
#endif
#include "libavutil/pixdesc.h"
Added: trunk/libmpcodecs/vdpau_frame_data.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ trunk/libmpcodecs/vdpau_frame_data.h Sun Feb 14 23:28:20 2016 (r37734)
@@ -0,0 +1,31 @@
+/*
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef MPLAYER_VDPAU_FRAME_DATA_H
+#define MPLAYER_VDPAU_FRAME_DATA_H
+
+#include <vdpau/vdpau.h>
+
+struct vdpau_frame_data {
+ VdpVideoSurface surface;
+ const void *info;
+ unsigned bitstream_buffers_used;
+ const void *bitstream_buffers;
+};
+
+#endif /* MPLAYER_VDPAU_FRAME_DATA_H */
Modified: trunk/libvo/vo_vdpau.c
==============================================================================
--- trunk/libvo/vo_vdpau.c Sun Feb 14 21:36:28 2016 (r37733)
+++ trunk/libvo/vo_vdpau.c Sun Feb 14 23:28:20 2016 (r37734)
@@ -41,6 +41,7 @@
#include "video_out.h"
#define NO_DRAW_FRAME
#include "video_out_internal.h"
+#include "libmpcodecs/vdpau_frame_data.h"
#include "libmpcodecs/vf.h"
#include "x11_common.h"
#include "aspect.h"
More information about the MPlayer-cvslog
mailing list