typefind: add photoshop typefind functions

Add photoshop typefind functions.
Fixes #574516.
This commit is contained in:
Jonathan Matthew 2009-03-09 16:19:40 +01:00 committed by Wim Taymans
parent 72533ecccc
commit db7ecda64f

View file

@ -3197,6 +3197,7 @@ plugin_init (GstPlugin * plugin)
static gchar *mxf_exts[] = { "mxf", NULL }; static gchar *mxf_exts[] = { "mxf", NULL };
static gchar *msword_exts[] = { "doc", NULL }; static gchar *msword_exts[] = { "doc", NULL };
static gchar *dsstore_exts[] = { "DS_Store", NULL }; static gchar *dsstore_exts[] = { "DS_Store", NULL };
static gchar *psd_exts[] = { "psd", NULL };
GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions", GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions"); GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
@ -3425,6 +3426,9 @@ plugin_init (GstPlugin * plugin)
TYPE_FIND_REGISTER_START_WITH (plugin, "application/octet-stream", TYPE_FIND_REGISTER_START_WITH (plugin, "application/octet-stream",
GST_RANK_SECONDARY, dsstore_exts, "\000\000\000\001Bud1", 8, GST_RANK_SECONDARY, dsstore_exts, "\000\000\000\001Bud1", 8,
GST_TYPE_FIND_LIKELY); GST_TYPE_FIND_LIKELY);
TYPE_FIND_REGISTER_START_WITH (plugin, "image/vnd.adobe.photoshop",
GST_RANK_SECONDARY, psd_exts, "8BPS\000\001\000\000\000\000", 10,
GST_TYPE_FIND_LIKELY);
return TRUE; return TRUE;
} }