orc: avoid precompilation
Avoid compiling all the functions at startup but compile only what's needed when needed.
This commit is contained in:
parent
2ad7e8f217
commit
dd819ddc6b
@ -1341,8 +1341,6 @@ plugin_init (GstPlugin * plugin)
|
|||||||
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "adder", 0,
|
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "adder", 0,
|
||||||
"audio channel mixing element");
|
"audio channel mixing element");
|
||||||
|
|
||||||
gst_adder_orc_init ();
|
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "adder", GST_RANK_NONE, GST_TYPE_ADDER)) {
|
if (!gst_element_register (plugin, "adder", GST_RANK_NONE, GST_TYPE_ADDER)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
.init gst_adder_orc_init
|
|
||||||
|
|
||||||
.function add_int32
|
.function add_int32
|
||||||
.dest 4 d1 gint32
|
.dest 4 d1 gint32
|
||||||
.source 4 s1 gint32
|
.source 4 s1 gint32
|
||||||
|
@ -1429,8 +1429,6 @@ gst_video_scale_src_event (GstBaseTransform * trans, GstEvent * event)
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
gst_videoscale_orc_init ();
|
|
||||||
|
|
||||||
if (!gst_element_register (plugin, "videoscale", GST_RANK_NONE,
|
if (!gst_element_register (plugin, "videoscale", GST_RANK_NONE,
|
||||||
GST_TYPE_VIDEO_SCALE))
|
GST_TYPE_VIDEO_SCALE))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
.init gst_videoscale_orc_init
|
|
||||||
|
|
||||||
.function orc_merge_linear_u8
|
.function orc_merge_linear_u8
|
||||||
.dest 1 d1
|
.dest 1 d1
|
||||||
.source 1 s1
|
.source 1 s1
|
||||||
|
@ -891,8 +891,6 @@ gst_video_test_src_stop (GstBaseSrc * basesrc)
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
gst_videotestsrc_orc_init ();
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (video_test_src_debug, "videotestsrc", 0,
|
GST_DEBUG_CATEGORY_INIT (video_test_src_debug, "videotestsrc", 0,
|
||||||
"Video Test Source");
|
"Video Test Source");
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
.init gst_videotestsrc_orc_init
|
|
||||||
|
|
||||||
.function gst_orc_splat_u8
|
.function gst_orc_splat_u8
|
||||||
.dest 1 d1 guint8
|
.dest 1 d1 guint8
|
||||||
.param 1 p1
|
.param 1 p1
|
||||||
|
@ -958,8 +958,6 @@ volume_get_property (GObject * object, guint prop_id, GValue * value,
|
|||||||
static gboolean
|
static gboolean
|
||||||
plugin_init (GstPlugin * plugin)
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
gst_volume_orc_init ();
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "volume", 0, "Volume gain");
|
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "volume", 0, "Volume gain");
|
||||||
|
|
||||||
/* ref class from a thread-safe context to work around missing bit of
|
/* ref class from a thread-safe context to work around missing bit of
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
.init gst_volume_orc_init
|
|
||||||
|
|
||||||
.function orc_scalarmultiply_f64_ns
|
.function orc_scalarmultiply_f64_ns
|
||||||
.dest 8 d1 double
|
.dest 8 d1 double
|
||||||
.doubleparam 8 p1
|
.doubleparam 8 p1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user