Skip to content

Commit

Permalink
Merge vmfx module into core
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed Mar 16, 2021
1 parent 1d27f04 commit e3179ad
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 132 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ option(MOD_SDL1 "Enable SDL1 module" ON)
option(MOD_SDL2 "Enable SDL2 module" ON)
option(MOD_SOX "Enable SoX module" ON)
option(MOD_VIDSTAB "Enable vid.stab module" ON)
option(MOD_VMFX "Enable vmfx module" ON)
option(MOD_VORBIS "Enable Vorbis module" ON)
option(MOD_XINE "Enable xine module" ON)
option(MOD_XML "Enable XML module" ON)
Expand Down Expand Up @@ -340,10 +339,6 @@ if(MOD_VIDSTAB)
endif()
endif()

if(MOD_VMFX)
list(APPEND MLT_SUPPORTED_COMPONENTS vmfx)
endif()

if(MOD_VORBIS)
pkg_check_modules(vorbis IMPORTED_TARGET vorbis)
pkg_check_modules(vorbisfile IMPORTED_TARGET vorbisfile)
Expand Down
1 change: 0 additions & 1 deletion docs/install.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Last Revision: 2013-09-07
* sdl - SDL dependent services
* sox - !SoX dependent audio filters
* vid.stab - video stabilization filters (*)
* vmfx - services contributed by (defunct) Visual Media FX
* vorbis - vorbis dependenent services
* xine - Xine-derived sources (*)
* xml - XML (de)serialization services
Expand Down
4 changes: 0 additions & 4 deletions src/modules/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ if(MOD_VIDSTAB)
add_subdirectory(vid.stab)
endif()

if(MOD_VMFX)
add_subdirectory(vmfx)
endif()

if(MOD_VORBIS)
add_subdirectory(vorbis)
endif()
Expand Down
12 changes: 11 additions & 1 deletion src/modules/plus/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ add_library(mltplus MODULE
factory.c
filter_affine.c
filter_charcoal.c
filter_chroma_hold.c
filter_chroma.c
filter_dynamictext.c
filter_dynamic_loudness.c
filter_invert.c
Expand All @@ -13,12 +15,15 @@ add_library(mltplus MODULE
filter_pillar_echo.c
filter_rgblut.c
filter_sepia.c
filter_shape.c
filter_spot_remover.c
filter_strobe.c
filter_text.c
filter_threshold.c
filter_timer.c
filter_strobe.c
producer_blipflash.c
producer_count.c
producer_pgm.c
transition_affine.c
)

Expand Down Expand Up @@ -49,6 +54,8 @@ install(FILES
consumer_blipflash.yml
filter_affine.yml
filter_charcoal.yml
filter_chroma_hold.yml
filter_chroma.yml
filter_dynamic_loudness.yml
filter_dynamictext.yml
filter_invert.yml
Expand All @@ -59,12 +66,15 @@ install(FILES
filter_pillar_echo.yml
filter_rgblut.yml
filter_sepia.yml
filter_shape.yml
filter_spot_remover.yml
filter_strobe.yml
filter_text.yml
filter_threshold.yml
filter_timer.yml
producer_blipflash.yml
producer_count.yml
producer_pgm.yml
transition_affine.yml
DESTINATION ${MLT_INSTALL_DATA_DIR}/plus
)
5 changes: 5 additions & 0 deletions src/modules/plus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ OBJS = consumer_blipflash.o \
factory.o \
filter_affine.o \
filter_charcoal.o \
filter_chroma.o \
filter_chroma_hold.o \
filter_dynamictext.o \
filter_dynamic_loudness.o \
filter_invert.o \
Expand All @@ -23,10 +25,13 @@ OBJS = consumer_blipflash.o \
filter_sepia.o \
filter_spot_remover.o \
filter_text.o \
filter_threshold.o \
filter_timer.o \
filter_shape.o \
filter_strobe.o \
producer_blipflash.o \
producer_count.o \
producer_pgm.o \
transition_affine.o

ifdef USE_FFTW
Expand Down
23 changes: 19 additions & 4 deletions src/modules/plus/factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,27 @@
extern mlt_consumer consumer_blipflash_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_affine_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_charcoal_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_chroma_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_chroma_hold_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_dynamictext_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_dynamic_loudness_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_invert_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_lift_gamma_gain_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_loudness_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_loudness_meter_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_lumakey_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_pillar_echo_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_invert_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_rgblut_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_sepia_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_shape_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_spot_remover_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_strobe_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_text_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_threshold_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_timer_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_filter filter_strobe_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_blipflash_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_producer producer_count_init( const char *arg );
extern mlt_producer producer_pgm_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );
extern mlt_transition transition_affine_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg );

#ifdef USE_FFTW
Expand All @@ -59,6 +64,8 @@ MLT_REPOSITORY
MLT_REGISTER( mlt_service_consumer_type, "blipflash", consumer_blipflash_init );
MLT_REGISTER( mlt_service_filter_type, "affine", filter_affine_init );
MLT_REGISTER( mlt_service_filter_type, "charcoal", filter_charcoal_init );
MLT_REGISTER( mlt_service_filter_type, "chroma", filter_chroma_init );
MLT_REGISTER( mlt_service_filter_type, "chroma_hold", filter_chroma_hold_init );
MLT_REGISTER( mlt_service_filter_type, "dynamictext", filter_dynamictext_init );
MLT_REGISTER( mlt_service_filter_type, "dynamic_loudness", filter_dynamic_loudness_init );
MLT_REGISTER( mlt_service_filter_type, "invert", filter_invert_init );
Expand All @@ -69,12 +76,15 @@ MLT_REPOSITORY
MLT_REGISTER( mlt_service_filter_type, "pillar_echo", filter_pillar_echo_init );
MLT_REGISTER( mlt_service_filter_type, "rgblut", filter_rgblut_init );
MLT_REGISTER( mlt_service_filter_type, "sepia", filter_sepia_init );
MLT_REGISTER( mlt_service_filter_type, "shape", filter_shape_init );
MLT_REGISTER( mlt_service_filter_type, "spot_remover", filter_spot_remover_init );
MLT_REGISTER( mlt_service_filter_type, "strobe", filter_strobe_init );
MLT_REGISTER( mlt_service_filter_type, "text", filter_text_init );
MLT_REGISTER( mlt_service_filter_type, "threshold", filter_threshold_init );
MLT_REGISTER( mlt_service_filter_type, "timer", filter_timer_init );
MLT_REGISTER( mlt_service_filter_type, "strobe", filter_strobe_init );
MLT_REGISTER( mlt_service_producer_type, "blipflash", producer_blipflash_init );
MLT_REGISTER( mlt_service_producer_type, "count", producer_count_init );
MLT_REGISTER( mlt_service_producer_type, "pgm", producer_pgm_init );
MLT_REGISTER( mlt_service_transition_type, "affine", transition_affine_init );
#ifdef USE_FFTW
MLT_REGISTER( mlt_service_filter_type, "dance", filter_dance_init );
Expand All @@ -84,6 +94,8 @@ MLT_REPOSITORY
MLT_REGISTER_METADATA( mlt_service_consumer_type, "blipflash", metadata, "consumer_blipflash.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "affine", metadata, "filter_affine.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "charcoal", metadata, "filter_charcoal.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "chroma", metadata, "filter_chroma.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "chroma_hold", metadata, "filter_chroma_hold.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "dynamictext", metadata, "filter_dynamictext.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "dynamic_loudness", metadata, "filter_dynamic_loudness.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "invert", metadata, "filter_invert.yml" );
Expand All @@ -94,12 +106,15 @@ MLT_REPOSITORY
MLT_REGISTER_METADATA( mlt_service_filter_type, "pillar_echo", metadata, "filter_pillar_echo.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "rgblut", metadata, "filter_rgblut.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "sepia", metadata, "filter_sepia.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "shape", metadata, "filter_shape.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "spot_remover", metadata, "filter_spot_remover.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "strobe", metadata, "filter_strobe.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "text", metadata, "filter_text.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "threshold", metadata, "filter_threshold.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "timer", metadata, "filter_timer.yml" );
MLT_REGISTER_METADATA( mlt_service_filter_type, "strobe", metadata, "filter_strobe.yml" );
MLT_REGISTER_METADATA( mlt_service_producer_type, "blipflash", metadata, "producer_blipflash.yml" );
MLT_REGISTER_METADATA( mlt_service_producer_type, "count", metadata, "producer_count.yml" );
MLT_REGISTER_METADATA( mlt_service_producer_type, "pgm", metadata, "producer_pgm.yml" );
MLT_REGISTER_METADATA( mlt_service_transition_type, "affine", metadata, "transition_affine.yml" );
#ifdef USE_FFTW
MLT_REGISTER_METADATA( mlt_service_filter_type, "dance", metadata, "filter_dance.yml" );
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* filter_mono.c -- Arbitrary alpha channel shaping
* filter_threshold.c -- Arbitrary alpha channel shaping
* Copyright (C) 2005 Visual Media Fx Inc.
* Author: Charles Yates <[email protected]>
*
Expand Down Expand Up @@ -90,7 +90,7 @@ static mlt_frame filter_process( mlt_filter filter, mlt_frame frame )
/** Constructor for the filter.
*/

mlt_filter filter_mono_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
mlt_filter filter_threshold_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = mlt_filter_new( );
if ( filter != NULL )
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 0 additions & 25 deletions src/modules/vmfx/CMakeLists.txt

This file was deleted.

39 changes: 0 additions & 39 deletions src/modules/vmfx/Makefile

This file was deleted.

51 changes: 0 additions & 51 deletions src/modules/vmfx/factory.c

This file was deleted.

0 comments on commit e3179ad

Please sign in to comment.