You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
3.8 KiB
112 lines
3.8 KiB
chromadir = $(pluginsdir)/video_chroma
|
|
|
|
libchain_plugin_la_SOURCES = video_chroma/chain.c
|
|
|
|
libchroma_copy_la_SOURCES = video_chroma/copy.c video_chroma/copy.h
|
|
libchroma_copy_la_LDFLAGS = -static
|
|
noinst_LTLIBRARIES += libchroma_copy.la
|
|
|
|
libswscale_plugin_la_SOURCES = video_chroma/swscale.c codec/avcodec/chroma.c
|
|
libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
|
|
libswscale_plugin_la_LIBADD = $(SWSCALE_LIBS) $(LIBM)
|
|
libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
|
|
|
|
libgrey_yuv_plugin_la_SOURCES = video_chroma/grey_yuv.c
|
|
|
|
libi420_rgb_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
|
|
video_chroma/i420_rgb8.c video_chroma/i420_rgb16.c video_chroma/i420_rgb_c.h
|
|
|
|
libi420_yuy2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
|
|
libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_PLAIN
|
|
|
|
libi420_nv12_plugin_la_SOURCES = video_chroma/i420_nv12.c
|
|
libi420_nv12_plugin_la_CPPFLAGS = $(AM_CPPFLAGS)
|
|
libi420_nv12_plugin_la_LIBADD = libchroma_copy.la
|
|
|
|
libi422_i420_plugin_la_SOURCES = video_chroma/i422_i420.c
|
|
|
|
libi422_yuy2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
|
|
libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_PLAIN
|
|
|
|
librv32_plugin_la_SOURCES = video_chroma/rv32.c
|
|
|
|
libyuy2_i420_plugin_la_SOURCES = video_chroma/yuy2_i420.c
|
|
|
|
libyuy2_i422_plugin_la_SOURCES = video_chroma/yuy2_i422.c
|
|
|
|
libyuvp_plugin_la_SOURCES = video_chroma/yuvp.c
|
|
|
|
liborient_plugin_la_SOURCES = video_chroma/orient.c video_chroma/orient.h
|
|
|
|
chroma_LTLIBRARIES = \
|
|
libi420_rgb_plugin.la \
|
|
libi420_yuy2_plugin.la \
|
|
libi420_nv12_plugin.la \
|
|
libi422_i420_plugin.la \
|
|
libi422_yuy2_plugin.la \
|
|
libgrey_yuv_plugin.la \
|
|
libyuy2_i420_plugin.la \
|
|
libyuy2_i422_plugin.la \
|
|
librv32_plugin.la \
|
|
libchain_plugin.la \
|
|
libyuvp_plugin.la \
|
|
liborient_plugin.la \
|
|
$(LTLIBswscale)
|
|
|
|
EXTRA_LTLIBRARIES += libswscale_plugin.la
|
|
|
|
# AltiVec
|
|
libi420_yuy2_altivec_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
|
|
libi420_yuy2_altivec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_ALTIVEC
|
|
libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)
|
|
|
|
if HAVE_ALTIVEC
|
|
chroma_LTLIBRARIES += \
|
|
libi420_yuy2_altivec_plugin.la
|
|
endif
|
|
|
|
# SSE2
|
|
libi420_rgb_sse2_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
|
|
video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_sse2.h
|
|
libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_SSE2
|
|
|
|
libi420_yuy2_sse2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
|
|
libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_SSE2
|
|
|
|
libi422_yuy2_sse2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
|
|
libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DPLUGIN_SSE2
|
|
|
|
if HAVE_SSE2
|
|
chroma_LTLIBRARIES += \
|
|
libi420_rgb_sse2_plugin.la \
|
|
libi420_yuy2_sse2_plugin.la \
|
|
libi422_yuy2_sse2_plugin.la
|
|
endif
|
|
|
|
libcvpx_plugin_la_SOURCES = codec/vt_utils.c codec/vt_utils.h video_chroma/cvpx.c
|
|
if HAVE_IOS
|
|
libcvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -miphoneos-version-min=8.0
|
|
endif
|
|
if HAVE_TVOS
|
|
libcvpx_plugin_la_CFLAGS = $(AM_CFLAGS) -mtvos-version-min=10.2
|
|
endif
|
|
libcvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
|
|
libcvpx_plugin_la_LIBADD = libchroma_copy.la
|
|
EXTRA_LTLIBRARIES += libcvpx_plugin.la
|
|
chroma_LTLIBRARIES += $(LTLIBcvpx)
|
|
|
|
# Tests
|
|
chroma_copy_sse_test_SOURCES = $(libchroma_copy_la_SOURCES)
|
|
chroma_copy_sse_test_CFLAGS = -DCOPY_TEST
|
|
chroma_copy_sse_test_LDADD = ../src/libvlccore.la
|
|
|
|
chroma_copy_test_SOURCES = $(libchroma_copy_la_SOURCES)
|
|
chroma_copy_test_CFLAGS = -DCOPY_TEST -DCOPY_TEST_NOOPTIM
|
|
chroma_copy_test_LDADD = ../src/libvlccore.la
|
|
|
|
if HAVE_SSE2
|
|
check_PROGRAMS += chroma_copy_sse_test
|
|
TESTS += chroma_copy_sse_test
|
|
endif
|
|
check_PROGRAMS += chroma_copy_test
|
|
TESTS += chroma_copy_test
|
|
|