2013-01-05 07:31:24 +00:00
|
|
|
/*
|
|
|
|
* gstvaapivideometa.h - Gstreamer/VA video meta
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010-2011 Splitted-Desktop Systems
|
2013-11-22 04:57:18 +00:00
|
|
|
* Author: Gwenole Beauchesne <gwenole.beauchesne@splitted-desktop.com>
|
2013-01-05 07:31:24 +00:00
|
|
|
* Copyright (C) 2011-2013 Intel Corporation
|
2013-11-22 04:57:18 +00:00
|
|
|
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
2013-01-05 07:31:24 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2.1
|
|
|
|
* 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free
|
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GST_VAAPI_VIDEO_META_H
|
|
|
|
#define GST_VAAPI_VIDEO_META_H
|
|
|
|
|
|
|
|
#include <gst/vaapi/gstvaapidisplay.h>
|
|
|
|
#include <gst/vaapi/gstvaapiimage.h>
|
|
|
|
#include <gst/vaapi/gstvaapisurface.h>
|
|
|
|
#include <gst/vaapi/gstvaapisurfaceproxy.h>
|
|
|
|
#include <gst/vaapi/gstvaapivideopool.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2014-08-21 08:45:31 +00:00
|
|
|
typedef struct _GstVaapiVideoMeta GstVaapiVideoMeta;
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2012-09-03 11:00:25 +00:00
|
|
|
#define GST_VAAPI_VIDEO_META_API_TYPE \
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_api_get_type ()
|
2012-09-03 11:00:25 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL
|
|
|
|
GType
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_api_get_type (void) G_GNUC_CONST;
|
2012-09-03 11:00:25 +00:00
|
|
|
|
2013-04-04 15:36:45 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_copy (GstVaapiVideoMeta * meta);
|
2013-04-04 15:36:45 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_new (GstVaapiDisplay * display);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_new_from_pool (GstVaapiVideoPool * pool);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_new_with_image (GstVaapiImage * image);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_new_with_surface_proxy (GstVaapiSurfaceProxy * proxy);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_ref (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_unref (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_replace (GstVaapiVideoMeta ** old_meta_ptr,
|
|
|
|
GstVaapiVideoMeta * new_meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiDisplay *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_display (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiImage *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_image (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_image (GstVaapiVideoMeta * meta,
|
|
|
|
GstVaapiImage * image);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
gboolean
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_image_from_pool (GstVaapiVideoMeta * meta,
|
|
|
|
GstVaapiVideoPool * pool);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiSurface *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_surface (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiSurfaceProxy *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_surface_proxy (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_surface_proxy (GstVaapiVideoMeta * meta,
|
|
|
|
GstVaapiSurfaceProxy * proxy);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GFunc
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_surface_converter (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_surface_converter (GstVaapiVideoMeta * meta,
|
|
|
|
GFunc func);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
guint
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_render_flags (GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_render_flags (GstVaapiVideoMeta * meta, guint flags);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-02-15 16:24:24 +00:00
|
|
|
G_GNUC_INTERNAL
|
|
|
|
const GstVaapiRectangle *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_get_render_rect (GstVaapiVideoMeta * meta);
|
2013-02-15 16:24:24 +00:00
|
|
|
|
|
|
|
G_GNUC_INTERNAL
|
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_vaapi_video_meta_set_render_rect (GstVaapiVideoMeta * meta,
|
|
|
|
const GstVaapiRectangle * rect);
|
2013-02-15 16:24:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
GstVaapiVideoMeta *
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_buffer_get_vaapi_video_meta (GstBuffer * buffer);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
2013-03-26 09:31:10 +00:00
|
|
|
G_GNUC_INTERNAL
|
2013-01-05 07:31:24 +00:00
|
|
|
void
|
2014-08-21 08:45:31 +00:00
|
|
|
gst_buffer_set_vaapi_video_meta (GstBuffer * buffer, GstVaapiVideoMeta * meta);
|
2013-01-05 07:31:24 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* GST_VAAPI_VIDEO_META_H */
|