Reorganized videolevels into separate plugin
This commit is contained in:
parent
9f2559c49a
commit
8a2badb718
@ -1,24 +1 @@
|
|||||||
add_definitions (-DHAVE_CONFIG_H)
|
add_subdirectory (videoadjust)
|
||||||
|
|
||||||
set (SOURCES
|
|
||||||
main.c
|
|
||||||
gstvideolevels.c)
|
|
||||||
|
|
||||||
set (HEADERS
|
|
||||||
gstvideolevels.h)
|
|
||||||
|
|
||||||
include_directories(AFTER
|
|
||||||
. )
|
|
||||||
|
|
||||||
add_library ( libgstvision MODULE
|
|
||||||
${SOURCES}
|
|
||||||
${HEADERS})
|
|
||||||
|
|
||||||
target_link_libraries ( libgstvision
|
|
||||||
general ${GLIB2_LIBRARIES}
|
|
||||||
general ${GSTREAMER_LIBRARIES}
|
|
||||||
general ${GSTREAMER_BASE_LIBRARY}
|
|
||||||
general ${GSTREAMER_VIDEO_LIBRARY})
|
|
||||||
|
|
||||||
install (TARGETS libgstnvl
|
|
||||||
LIBRARY DESTINATION lib/gstreamer-0.10)
|
|
||||||
|
|||||||
24
gst/videoadjust/CMakeLists.txt
Normal file
24
gst/videoadjust/CMakeLists.txt
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
add_definitions (-DHAVE_CONFIG_H)
|
||||||
|
|
||||||
|
set (SOURCES
|
||||||
|
gstvideoadjust.c
|
||||||
|
gstvideolevels.c)
|
||||||
|
|
||||||
|
set (HEADERS
|
||||||
|
gstvideolevels.h)
|
||||||
|
|
||||||
|
include_directories(AFTER
|
||||||
|
. )
|
||||||
|
|
||||||
|
add_library (libgstvideoadjust MODULE
|
||||||
|
${SOURCES}
|
||||||
|
${HEADERS})
|
||||||
|
|
||||||
|
target_link_libraries (libgstvideoadjust
|
||||||
|
general ${GLIB2_LIBRARIES}
|
||||||
|
general ${GSTREAMER_LIBRARIES}
|
||||||
|
general ${GSTREAMER_BASE_LIBRARY}
|
||||||
|
general ${GSTREAMER_VIDEO_LIBRARY})
|
||||||
|
|
||||||
|
install (TARGETS libgstvideoadjust
|
||||||
|
LIBRARY DESTINATION lib/gstreamer-0.10)
|
||||||
@ -4,21 +4,22 @@
|
|||||||
|
|
||||||
#include "gstvideolevels.h"
|
#include "gstvideolevels.h"
|
||||||
|
|
||||||
#define GST_CAT_DEFAULT gst_nvl_gstnvl_debug
|
#define GST_CAT_DEFAULT gst_nvl_gstvideoadjust_debug
|
||||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||||
|
|
||||||
|
|
||||||
/* Register filters that make up the gstgl plugin */
|
/* Register filters that make up the gstgl plugin */
|
||||||
static gboolean
|
static gboolean
|
||||||
plugin_init ( GstPlugin * plugin )
|
plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
GST_DEBUG_CATEGORY_INIT ( gst_nvl_gstnvl_debug, "nvl", 0, "nvl" );
|
GST_DEBUG_CATEGORY_INIT (GST_CAT_DEFAULT, "videoadjust", 0, "videoadjust");
|
||||||
|
|
||||||
GST_CAT_INFO ( gst_nvl_gstnvl_debug, "plugin_init" );
|
GST_DEBUG ("plugin_init");
|
||||||
|
|
||||||
|
GST_CAT_INFO (GST_CAT_DEFAULT, "registering videolevels element");
|
||||||
|
|
||||||
GST_CAT_INFO ( gst_nvl_gstnvl_debug, "registering videolevels element" );
|
if ( !gst_element_register (plugin, "videolevels", GST_RANK_NONE,
|
||||||
if ( !gst_element_register ( plugin, "videolevels", GST_RANK_NONE,
|
GST_TYPE_VIDEOLEVELS)) {
|
||||||
GST_TYPE_VIDEOLEVELS ) ) {
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,8 +28,8 @@ plugin_init ( GstPlugin * plugin )
|
|||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
||||||
GST_VERSION_MINOR,
|
GST_VERSION_MINOR,
|
||||||
"nvl",
|
"videoadjust",
|
||||||
"Plugins of interest to NVL",
|
"Filters that apply transform from 16-bit to 8-bit video",
|
||||||
plugin_init,
|
plugin_init,
|
||||||
VERSION,
|
VERSION,
|
||||||
GST_LICENSE,
|
GST_LICENSE,
|
||||||
@ -666,7 +666,6 @@ gst_niimaqsrc_create (GstPushSrc * psrc, GstBuffer ** buffer)
|
|||||||
gpointer data;
|
gpointer data;
|
||||||
GstFlowReturn res = GST_FLOW_OK;
|
GstFlowReturn res = GST_FLOW_OK;
|
||||||
guint i;
|
guint i;
|
||||||
GstClock *clock;
|
|
||||||
GstNiImaqSrcFrameTime * frametime;
|
GstNiImaqSrcFrameTime * frametime;
|
||||||
GstClockTime timestamp = GST_CLOCK_TIME_NONE;
|
GstClockTime timestamp = GST_CLOCK_TIME_NONE;
|
||||||
GstClockTime timestamp2 = GST_CLOCK_TIME_NONE;
|
GstClockTime timestamp2 = GST_CLOCK_TIME_NONE;
|
||||||
@ -1163,5 +1162,5 @@ plugin_init (GstPlugin * plugin)
|
|||||||
}
|
}
|
||||||
|
|
||||||
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "niimaq",
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "niimaq",
|
||||||
"NI-IMAQ Video Source", plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME,
|
"NI-IMAQ source element", plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME,
|
||||||
GST_PACKAGE_ORIGIN)
|
GST_PACKAGE_ORIGIN)
|
||||||
Loading…
x
Reference in New Issue
Block a user