[gst-cvs] gst-plugins-bad: vdpau: remove unused functions
Carl-Anton Ingmarsson
satis at kemper.freedesktop.org
Sun Nov 22 14:07:01 PST 2009
Module: gst-plugins-bad
Branch: master
Commit: 89981987032730bc81b2a18a4ddd9de96a41fa64
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=89981987032730bc81b2a18a4ddd9de96a41fa64
Author: Carl-Anton Ingmarsson <ca.ingmarsson at gmail.com>
Date: Thu Oct 8 23:38:24 2009 +0200
vdpau: remove unused functions
---
sys/vdpau/gstvdputils.c | 100 -----------------------------------------------
sys/vdpau/gstvdputils.h | 3 -
2 files changed, 0 insertions(+), 103 deletions(-)
diff --git a/sys/vdpau/gstvdputils.c b/sys/vdpau/gstvdputils.c
index deb3478..5fb8f50 100644
--- a/sys/vdpau/gstvdputils.c
+++ b/sys/vdpau/gstvdputils.c
@@ -23,106 +23,6 @@
#include "gstvdputils.h"
GstCaps *
-gst_vdp_video_to_yuv_caps (GstCaps * caps, GstVdpDevice * device)
-{
- GstCaps *new_caps, *allowed_caps, *result;
- gint i;
- GstStructure *structure;
-
- new_caps = gst_caps_new_empty ();
-
- for (i = 0; i < gst_caps_get_size (caps); i++) {
- gint chroma_type;
- GSList *fourcc = NULL, *iter;
-
- structure = gst_caps_get_structure (caps, i);
-
- if (gst_structure_get_int (structure, "chroma-type", &chroma_type)) {
- /* calculate fourcc from chroma_type */
- for (i = 0; i < G_N_ELEMENTS (formats); i++) {
- if (formats[i].chroma_type == chroma_type) {
- fourcc = g_slist_append (fourcc, GINT_TO_POINTER (formats[i].fourcc));
- }
- }
- } else {
- for (i = 0; i < G_N_ELEMENTS (formats); i++) {
- fourcc = g_slist_append (fourcc, GINT_TO_POINTER (formats[i].fourcc));
- }
- }
-
- for (iter = fourcc; iter; iter = iter->next) {
- GstStructure *new_struct = gst_structure_copy (structure);
-
- gst_structure_set_name (new_struct, "video/x-raw-yuv");
- gst_structure_remove_field (new_struct, "chroma-type");
- gst_structure_set (new_struct, "format", GST_TYPE_FOURCC,
- GPOINTER_TO_INT (iter->data), NULL);
-
- gst_caps_append_structure (new_caps, new_struct);
- }
-
- g_slist_free (fourcc);
- }
- structure = gst_caps_get_structure (caps, 0);
-
- if (device) {
- allowed_caps = gst_vdp_video_buffer_get_allowed_yuv_caps (device);
- result = gst_caps_intersect (new_caps, allowed_caps);
-
- gst_caps_unref (new_caps);
- gst_caps_unref (allowed_caps);
- } else
- result = new_caps;
-
- return result;
-}
-
-GstCaps *
-gst_vdp_yuv_to_video_caps (GstCaps * caps, GstVdpDevice * device)
-{
- GstCaps *new_caps, *result;
- gint i;
-
- new_caps = gst_caps_copy (caps);
- for (i = 0; i < gst_caps_get_size (new_caps); i++) {
- GstStructure *structure = gst_caps_get_structure (new_caps, i);
- guint32 fourcc;
-
- if (gst_structure_get_fourcc (structure, "format", &fourcc)) {
- gint chroma_type = -1;
-
- /* calculate chroma type from fourcc */
- for (i = 0; i < G_N_ELEMENTS (formats); i++) {
- if (formats[i].fourcc == fourcc) {
- chroma_type = formats[i].chroma_type;
- break;
- }
- }
- gst_structure_remove_field (structure, "format");
- gst_structure_set (structure, "chroma-type", G_TYPE_INT, chroma_type,
- NULL);
- } else
- gst_structure_set (structure, "chroma-type", GST_TYPE_INT_RANGE, 0, 2,
- NULL);
-
- gst_structure_set_name (structure, "video/x-vdpau-video");
- }
-
- if (device) {
- GstCaps *allowed_caps;
-
- allowed_caps = gst_vdp_video_buffer_get_allowed_video_caps (device);
- result = gst_caps_intersect (new_caps, allowed_caps);
-
- gst_caps_unref (new_caps);
- gst_caps_unref (allowed_caps);
- } else
- result = new_caps;
-
- return result;
-}
-
-GstCaps *
gst_vdp_yuv_to_output_caps (GstCaps * caps)
{
GstCaps *result;
diff --git a/sys/vdpau/gstvdputils.h b/sys/vdpau/gstvdputils.h
index 375536d..2e08273 100644
--- a/sys/vdpau/gstvdputils.h
+++ b/sys/vdpau/gstvdputils.h
@@ -24,9 +24,6 @@
#include <gst/gst.h>
#include <gst/vdpau/gstvdpdevice.h>
-GstCaps *gst_vdp_video_to_yuv_caps (GstCaps *caps, GstVdpDevice *device);
-GstCaps *gst_vdp_yuv_to_video_caps (GstCaps *caps, GstVdpDevice *device);
-
GstCaps *gst_vdp_video_to_output_caps (GstCaps * caps);
GstCaps *gst_vdp_yuv_to_output_caps (GstCaps *caps);
More information about the Gstreamer-commits
mailing list