Makefile.am 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. chromadir = $(pluginsdir)/video_chroma
  2. libchain_plugin_la_SOURCES = video_chroma/chain.c
  3. libchroma_omx_plugin_la_SOURCES = video_chroma/omxdl.c
  4. libchroma_omx_plugin_la_CFLAGS = $(AM_CFLAGS) $(OMXIP_CFLAGS)
  5. libchroma_omx_plugin_la_LIBADD = $(OMXIP_LIBS)
  6. libswscale_plugin_la_SOURCES = video_chroma/swscale.c codec/avcodec/chroma.c
  7. libswscale_plugin_la_CFLAGS = $(AM_CFLAGS) $(SWSCALE_CFLAGS)
  8. libswscale_plugin_la_LIBADD = $(SWSCALE_LIBS) $(LIBM)
  9. libswscale_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)'
  10. libgrey_yuv_plugin_la_SOURCES = video_chroma/grey_yuv.c
  11. libi420_rgb_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
  12. video_chroma/i420_rgb8.c video_chroma/i420_rgb16.c video_chroma/i420_rgb_c.h
  13. libi420_rgb_plugin_la_LIBADD = $(LIBM)
  14. libi420_yuy2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
  15. libi420_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  16. -DMODULE_NAME_IS_i420_yuy2
  17. libi420_nv12_plugin_la_SOURCES = video_chroma/i420_nv12.c \
  18. video_chroma/copy.c video_chroma/copy.h
  19. libi420_nv12_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  20. -DMODULE_NAME_IS_i420_nv12
  21. libi420_10_p010_plugin_la_SOURCES = video_chroma/i420_10_p010.c \
  22. video_chroma/copy.c video_chroma/copy.h
  23. libi420_10_p010_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  24. -DMODULE_NAME_IS_i420_10_p010
  25. libi422_i420_plugin_la_SOURCES = video_chroma/i422_i420.c
  26. libi422_yuy2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
  27. libi422_yuy2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  28. -DMODULE_NAME_IS_i422_yuy2
  29. librv32_plugin_la_SOURCES = video_chroma/rv32.c
  30. libyuy2_i420_plugin_la_SOURCES = video_chroma/yuy2_i420.c
  31. libyuy2_i422_plugin_la_SOURCES = video_chroma/yuy2_i422.c
  32. libyuvp_plugin_la_SOURCES = video_chroma/yuvp.c
  33. chroma_LTLIBRARIES = \
  34. libi420_rgb_plugin.la \
  35. libi420_yuy2_plugin.la \
  36. libi420_nv12_plugin.la \
  37. libi420_10_p010_plugin.la \
  38. libi422_i420_plugin.la \
  39. libi422_yuy2_plugin.la \
  40. libgrey_yuv_plugin.la \
  41. libyuy2_i420_plugin.la \
  42. libyuy2_i422_plugin.la \
  43. librv32_plugin.la \
  44. libchain_plugin.la \
  45. libyuvp_plugin.la \
  46. $(LTLIBswscale)
  47. EXTRA_LTLIBRARIES += libswscale_plugin.la libchroma_omx_plugin.la
  48. # AltiVec
  49. libi420_yuy2_altivec_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
  50. libi420_yuy2_altivec_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  51. -DMODULE_NAME_IS_i420_yuy2_altivec
  52. libi420_yuy2_altivec_plugin_la_CFLAGS = $(AM_CFLAGS) $(ALTIVEC_CFLAGS)
  53. if HAVE_ALTIVEC
  54. chroma_LTLIBRARIES += \
  55. libi420_yuy2_altivec_plugin.la
  56. endif
  57. # MMX
  58. libi420_rgb_mmx_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
  59. video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_mmx.h
  60. libi420_rgb_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DMMX
  61. libi420_yuy2_mmx_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
  62. libi420_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  63. -DMODULE_NAME_IS_i420_yuy2_mmx
  64. libi422_yuy2_mmx_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
  65. libi422_yuy2_mmx_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  66. -DMODULE_NAME_IS_i422_yuy2_mmx
  67. if HAVE_MMX
  68. chroma_LTLIBRARIES += \
  69. libi420_rgb_mmx_plugin.la \
  70. libi420_yuy2_mmx_plugin.la \
  71. libi422_yuy2_mmx_plugin.la
  72. endif
  73. # SSE2
  74. libi420_rgb_sse2_plugin_la_SOURCES = video_chroma/i420_rgb.c video_chroma/i420_rgb.h \
  75. video_chroma/i420_rgb16_x86.c video_chroma/i420_rgb_sse2.h
  76. libi420_rgb_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) -DSSE2
  77. libi420_yuy2_sse2_plugin_la_SOURCES = video_chroma/i420_yuy2.c video_chroma/i420_yuy2.h
  78. libi420_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  79. -DMODULE_NAME_IS_i420_yuy2_sse2
  80. libi422_yuy2_sse2_plugin_la_SOURCES = video_chroma/i422_yuy2.c video_chroma/i422_yuy2.h
  81. libi422_yuy2_sse2_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
  82. -DMODULE_NAME_IS_i422_yuy2_sse2
  83. if HAVE_SSE2
  84. chroma_LTLIBRARIES += \
  85. libi420_rgb_sse2_plugin.la \
  86. libi420_yuy2_sse2_plugin.la \
  87. libi422_yuy2_sse2_plugin.la
  88. endif
  89. # DXVA2
  90. libdxa9_plugin_la_SOURCES = video_chroma/dxa9.c \
  91. video_chroma/d3d9_fmt.h video_chroma/copy.c video_chroma/copy.h
  92. if HAVE_AVCODEC_DXVA2
  93. chroma_LTLIBRARIES += \
  94. libdxa9_plugin.la
  95. endif
  96. # D3D11VA
  97. libd3d11_surface_plugin_la_SOURCES = video_chroma/d3d11_surface.c \
  98. video_chroma/d3d11_fmt.h video_chroma/dxgi_fmt.c video_chroma/dxgi_fmt.h \
  99. video_chroma/copy.c video_chroma/copy.h
  100. if HAVE_AVCODEC_D3D11VA
  101. chroma_LTLIBRARIES += \
  102. libd3d11_surface_plugin.la
  103. endif
  104. libcvpx_plugin_la_SOURCES = video_chroma/cvpx.c video_chroma/copy.c video_chroma/copy.h \
  105. codec/vt_utils.c codec/vt_utils.h
  106. libcvpx_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(chromadir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
  107. EXTRA_LTLIBRARIES += libcvpx_plugin.la
  108. chroma_LTLIBRARIES += $(LTLIBcvpx)