summaryrefslogtreecommitdiff
path: root/omx/gstomxvideo.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2014-03-03 16:15:24 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-03-12 12:47:09 +0100
commit6bf4d9a498ca163a0c431e8a864658922a8bab1f (patch)
treeffe60aa8862b777b6020dfefe63d95e140ceb8e2 /omx/gstomxvideo.h
parentc4426a49db961b99ead4845fe2dcb6adfe84381e (diff)
downloadgst-omx-6bf4d9a498ca163a0c431e8a864658922a8bab1f.tar.gz
omxvideo: start sharing more code between video decoder and encoder
Identical functionality spread of two different components. We can't use a common base class because of different inheritance, but let's try to share the code anyway. https://bugzilla.gnome.org/show_bug.cgi?id=726024
Diffstat (limited to 'omx/gstomxvideo.h')
-rw-r--r--omx/gstomxvideo.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/omx/gstomxvideo.h b/omx/gstomxvideo.h
new file mode 100644
index 0000000..df81654
--- /dev/null
+++ b/omx/gstomxvideo.h
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2014 Advanced Micro Devices, Inc.
+ * Author: Christian König <christian.koenig@amd.com>
+ *
+ * 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
+ * version 2.1 of the License.
+ *
+ * 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_OMX_VIDEO_H__
+#define __GST_OMX_VIDEO_H__
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <gst/gst.h>
+#include <gst/video/video.h>
+
+#include "gstomx.h"
+
+G_BEGIN_DECLS
+
+typedef struct
+{
+ GstVideoFormat format;
+ OMX_COLOR_FORMATTYPE type;
+} GstOMXVideoNegotiationMap;
+
+GList *
+gst_omx_video_get_supported_colorformats (GstOMXPort * port,
+ GstVideoCodecState * state);
+
+GstCaps * gst_omx_video_get_caps_4_map(GList * map);
+
+void
+gst_omx_video_negotiation_map_free (GstOMXVideoNegotiationMap * m);
+
+GstVideoCodecFrame *
+gst_omx_video_find_nearest_frame (GstOMXBuffer * buf, GList * frames);
+
+G_END_DECLS
+
+#endif /* __GST_OMX_VIDEO_H__ */