2009-04-04 18:53:35 +00:00
|
|
|
/*
|
|
|
|
* GStreamer
|
|
|
|
* Copyright (C) 2009 Carl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2009-04-26 21:25:33 +00:00
|
|
|
#ifndef _GST_VDP_VIDEO_BUFFER_H_
|
|
|
|
#define _GST_VDP_VIDEO_BUFFER_H_
|
2009-04-04 18:53:35 +00:00
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <gst/video/video.h>
|
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
#include "gstvdpdevice.h"
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
#include "gstvdpvideobuffer.h"
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
typedef struct _GstVdpVideoBuffer GstVdpVideoBuffer;
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
#define GST_TYPE_VDPAU_VIDEO_BUFFER (gst_vdp_video_buffer_get_type())
|
2009-04-04 18:53:35 +00:00
|
|
|
|
|
|
|
#define GST_IS_VDPAU_VIDEO_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_VDPAU_VIDEO_BUFFER))
|
2009-04-26 21:25:33 +00:00
|
|
|
#define GST_VDP_VIDEO_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_VDPAU_VIDEO_BUFFER, GstVdpVideoBuffer))
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
struct _GstVdpVideoBuffer {
|
2009-04-04 18:53:35 +00:00
|
|
|
GstBuffer buffer;
|
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
GstVdpDevice *device;
|
2009-04-04 18:53:35 +00:00
|
|
|
VdpVideoSurface surface;
|
2009-05-03 19:52:49 +00:00
|
|
|
|
|
|
|
GSList *refs;
|
2009-04-04 18:53:35 +00:00
|
|
|
};
|
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
GType gst_vdp_video_buffer_get_type (void);
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-04-13 20:19:20 +00:00
|
|
|
GstVdpVideoBuffer* gst_vdp_video_buffer_new (GstVdpDevice * device, VdpChromaType chroma_type, gint width, gint height);
|
2009-04-04 18:53:35 +00:00
|
|
|
|
2009-05-03 19:52:49 +00:00
|
|
|
void gst_vdp_video_buffer_add_reference (GstVdpVideoBuffer *buffer, GstVdpVideoBuffer *buf);
|
|
|
|
|
2009-04-26 21:25:33 +00:00
|
|
|
#define GST_VDP_VIDEO_CAPS \
|
2009-04-14 21:47:40 +00:00
|
|
|
"video/x-vdpau-video, " \
|
2009-04-04 18:53:35 +00:00
|
|
|
"chroma-type = (int)[0,2], " \
|
|
|
|
"width = (int)[1,4096], " \
|
|
|
|
"height = (int)[1,4096]"
|
|
|
|
|
|
|
|
#endif
|