GST_VIDEO_CAPS_MAKE("AYUV") \
)
+#define STATIC_IMAGE_CAPS \
+GST_STATIC_CAPS ( \
+ GST_VIDEO_CAPS_MAKE("I420") ";" \
+ GST_VIDEO_CAPS_MAKE("NV12") ";" \
+ GST_VIDEO_CAPS_MAKE("NV21") ";" \
+ GST_VIDEO_CAPS_MAKE("SN12") ";" \
+ GST_VIDEO_CAPS_MAKE("SN21") \
+)
+
static GstStaticPadTemplate tizen_encode_bin_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_STATIC_PAD_TEMPLATE ("image",
GST_PAD_SINK,
GST_PAD_REQUEST,
- GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE ("I420"))
+ STATIC_IMAGE_CAPS
);
GST_DEBUG_CATEGORY_STATIC (gst_tizen_encode_bin_debug);
g_return_val_if_fail (templ != NULL, NULL);
if (templ->direction != GST_PAD_SINK) {
- GST_WARNING_OBJECT (GST_IS_TIZEN_ENCODE_BIN (element), "encodebin: request pad that is not a SINK pad\n");
+ GST_WARNING_OBJECT (element, "encodebin: request pad that is not a SINK pad\n");
return NULL;
}
}
else
{
- GST_WARNING_OBJECT (GST_IS_TIZEN_ENCODE_BIN (element), "encodebin: audio pad is aleady existed, return existing audio pad\n");
+ GST_WARNING_OBJECT (encodebin, "encodebin: audio pad is aleady existed, return existing audio pad\n");
return encodebin->audio_sinkpad;
}
}
else
{
- GST_WARNING_OBJECT (GST_IS_TIZEN_ENCODE_BIN (element), "encodebin: video pad is aleady existed, return existing video pad\n");
+ GST_WARNING_OBJECT (encodebin, "encodebin: video pad is aleady existed, return existing video pad\n");
return encodebin->video_sinkpad;
}
}
else
{
- GST_WARNING_OBJECT (GST_IS_TIZEN_ENCODE_BIN (element), "encodebin: image pad is aleady existed, return existing image pad\n");
+ GST_WARNING_OBJECT (encodebin, "encodebin: image pad is aleady existed, return existing image pad\n");
return encodebin->image_sinkpad;
}
}
else
{
- GST_WARNING_OBJECT (GST_IS_TIZEN_ENCODE_BIN (element), "encodebin: image pad is aleady existed, return existing image pad\n");
+ GST_WARNING_OBJECT (encodebin, "encodebin: image pad is aleady existed, return existing image pad\n");
return encodebin->image_sinkpad;
}