diff --git a/src/gstducati.c b/src/gstducati.c
index bd7993f9a14101b894a4a748153ff55da4b11ca0..02d8f775c1700d49da8356a1268e28e6a70a6db5 100644 (file)
--- a/src/gstducati.c
+++ b/src/gstducati.c
GST_DEBUG_CATEGORY (gst_ducati_debug);
+#ifndef GST_DISABLE_GST_DEBUG
+void
+gst_ducati_log_extended_error_info (int error)
+{
+ GST_ERROR ("Error %s%s%s%s%s%s%s%x",
+ XDM_ISFATALERROR (error) ? "[fatal] " : "",
+ XDM_ISUNSUPPORTEDPARAM (error) ? "[unsupported param] " : "",
+ XDM_ISUNSUPPORTEDINPUT (error) ? "[unsupported input] " : "",
+ XDM_ISCORRUPTEDHEADER (error) ? "[corrupted header] " : "",
+ XDM_ISCORRUPTEDDATA (error) ? "[corrupted data] " : "",
+ XDM_ISINSUFFICIENTDATA (error) ? "[insufficient data] " : "",
+ XDM_ISAPPLIEDCONCEALMENT (error) ? "[applied concealment] " : "", error);
+}
+#endif
+
static gboolean
plugin_init (GstPlugin * plugin)
{
GST_TYPE_DUCATIVP7DEC) &&
gst_element_register (plugin, "ducatirvdec", GST_RANK_PRIMARY,
GST_TYPE_DUCATIRVDEC) &&
- gst_element_register (plugin, "ducatih264enc", GST_RANK_PRIMARY,
+ gst_element_register (plugin, "ducatih264enc", GST_RANK_PRIMARY + 1,
GST_TYPE_DUCATIH264ENC) &&
- gst_element_register (plugin, "ducatimpeg4enc", GST_RANK_PRIMARY,
+ gst_element_register (plugin, "ducatimpeg4enc", GST_RANK_PRIMARY + 1,
GST_TYPE_DUCATIMPEG4ENC);
}
-void *
-gst_ducati_alloc_1d (gint sz)
-{
- MemAllocBlock block = {
- .pixelFormat = PIXEL_FMT_PAGE,
- .dim.len = sz,
- };
- return MemMgr_Alloc (&block, 1);
-}
-
-void *
-gst_ducati_alloc_2d (gint width, gint height, guint * sz)
-{
- MemAllocBlock block[] = { {
- .pixelFormat = PIXEL_FMT_8BIT,
- .dim = {.area = {
- .width = width,
- .height = ALIGN2 (height, 1),
- }},
- .stride = 4096}, {
- .pixelFormat = PIXEL_FMT_16BIT,
- .dim = {.area = {
- .width = width,
- .height = ALIGN2 (height, 1) / 2,
- }},
- .stride = 4096}
- };
- if (sz) {
- *sz = (4096 * ALIGN2 (height, 1) * 3) / 2;
- }
- return MemMgr_Alloc (block, 2);
-}
-
-XDAS_Int16
-gst_ducati_get_mem_type (SSPtr paddr)
-{
- XDAS_Int16 type = -1;
-
- if ((0x60000000 <= paddr) && (paddr < 0x68000000))
- type = XDM_MEMTYPE_TILED8;
- else if ((0x68000000 <= paddr) && (paddr < 0x70000000))
- type = XDM_MEMTYPE_TILED16;
- else if ((0x70000000 <= paddr) && (paddr < 0x78000000))
- type = XDM_MEMTYPE_TILED32;
- else if ((0x78000000 <= paddr) && (paddr < 0x80000000))
- type = XDM_MEMTYPE_TILEDPAGE;
-
- return type;
-}
-
/* PACKAGE: this is usually set by autotools depending on some _INIT macro
* in configure.ac and then written into and defined in config.h, but we can
* just set it ourselves here in case someone doesn't use autotools to