mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
Added typefind functions to video/x-nuv media.
Original commit message from CVS: Added typefind functions to video/x-nuv media.
This commit is contained in:
parent
a336b4c10d
commit
04b632fd7a
3 changed files with 36 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-10-09 Edgard Lima <edgard.lima@indt.org.br>
|
||||
|
||||
Patch by: Renato Filho <renato.filho@indt.org.br>
|
||||
|
||||
* gst/typefind/gsttypefindfunctions.c:
|
||||
Added typefind functions to video/x-nuv media.
|
||||
|
||||
2006-10-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst-libs/gst/interfaces/xoverlay.c:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 83b08805d0c109b6dbdcfca0a8b9659b1c556480
|
||||
Subproject commit efcacf2625da231fbee99b68e0f5db6816cf6fad
|
|
@ -2238,6 +2238,29 @@ au_type_find (GstTypeFind * tf, gpointer unused)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*** video/x-nuv ***/
|
||||
|
||||
/* NOTE: we cannot replace this function with TYPE_FIND_REGISTER_START_WITH,
|
||||
* as it is only possible to register one typefind factory per 'name'
|
||||
* (which is in this case the caps), and the first one would be replaced by
|
||||
* the second one. */
|
||||
static GstStaticCaps nuv_caps = GST_STATIC_CAPS ("video/x-nuv");
|
||||
|
||||
#define NUV_CAPS (gst_static_caps_get(&nuv_caps))
|
||||
static void
|
||||
nuv_type_find (GstTypeFind * tf, gpointer unused)
|
||||
{
|
||||
guint8 *data = gst_type_find_peek (tf, 0, 11);
|
||||
|
||||
if (data) {
|
||||
if (memcmp (data, "MythTVVideo", 11) == 0
|
||||
|| memcmp (data, "NuppelVideo", 11) == 0) {
|
||||
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, NUV_CAPS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*** audio/x-paris ***/
|
||||
/* NOTE: do not replace this function with two TYPE_FIND_REGISTER_START_WITH */
|
||||
static GstStaticCaps paris_caps = GST_STATIC_CAPS ("audio/x-paris");
|
||||
|
@ -2372,6 +2395,8 @@ G_BEGIN_DECLS{ \
|
|||
} \
|
||||
}G_END_DECLS
|
||||
|
||||
|
||||
|
||||
/*** plugin initialization ***/
|
||||
|
||||
#define TYPE_FIND_REGISTER(plugin,name,rank,func,ext,caps,priv,notify) \
|
||||
|
@ -2463,6 +2488,7 @@ plugin_init (GstPlugin * plugin)
|
|||
};
|
||||
static gchar *flv_exts[] = { "flv", NULL };
|
||||
static gchar *m4v_exts[] = { "m4v", NULL };
|
||||
static gchar *nuv_exts[] = { "nuv", NULL };
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
|
||||
GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
|
||||
|
@ -2516,6 +2542,8 @@ plugin_init (GstPlugin * plugin)
|
|||
NULL);
|
||||
TYPE_FIND_REGISTER (plugin, "video/mpeg4", GST_RANK_PRIMARY,
|
||||
mpeg4_video_type_find, m4v_exts, MPEG_VIDEO_CAPS, NULL, NULL);
|
||||
TYPE_FIND_REGISTER (plugin, "video/x-nuv", GST_RANK_SECONDARY,
|
||||
nuv_type_find, nuv_exts, NUV_CAPS, NULL, NULL);
|
||||
|
||||
/* ISO formats */
|
||||
TYPE_FIND_REGISTER (plugin, "audio/x-m4a", GST_RANK_PRIMARY, m4a_type_find,
|
||||
|
|
Loading…
Reference in a new issue