[BOARD_USE_DRM=no])
AM_CONDITIONAL([BOARD_USE_DRM], [test "x$BOARD_USE_DRM" = "xyes"])
+AC_ARG_ENABLE(neon, AC_HELP_STRING([--enable-neon], [neon]),
+ [
+ case "${enableval}" in
+ yes) BOARD_USE_NEON=yes ;;
+ no) BOARD_USE_NEON=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-neon) ;;
+ esac
+ ],
+ [BOARD_USE_NEON=no])
+AM_CONDITIONAL([BOARD_USE_NEON], [test "x$BOARD_USE_NEON" = "xyes"])
+
AC_OUTPUT
lib_LTLIBRARIES = libswconverter.la
-libswconverter_la_SOURCES = swconvertor.c \
- csc_ARGB8888_to_YUV420SP_NEON.s \
- csc_interleave_memcpy_neon.s \
- csc_linear_to_tiled_crop_neon.s \
- csc_linear_to_tiled_interleave_crop_neon.s \
- csc_tiled_to_linear_crop_neon.s \
- csc_tiled_to_linear_deinterleave_crop_neon.s
-
+libswconverter_la_SOURCES = swconvertor.c
libswconverter_la_LIBADD =
libswconverter_la_CFLAGS = -I$(top_srcdir)/exynos4/include \
-I$(top_srcdir)/exynos/include
+if BOARD_USE_NEON
+libswconverter_la_SOURCES += csc_ARGB8888_to_YUV420SP_NEON.s \
+ csc_interleave_memcpy_neon.s \
+ csc_linear_to_tiled_crop_neon.s \
+ csc_linear_to_tiled_interleave_crop_neon.s \
+ csc_tiled_to_linear_crop_neon.s \
+ csc_tiled_to_linear_deinterleave_crop_neon.s
+libswconverter_la_CFLAGS += -DUSE_NEON
+endif
prefix=@prefix@
-libdir=@prefix@/lib
+libdir=@LIB_INSTALL_DIR@
includedir=@prefix@/include
+omxdir=@libdir@
Name: Samsung OpenMAX IL package
Description: Samsung E4X12 codec
lib_LTLIBRARIES = libOMX.Exynos.MP3.Decoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_MP3_Decoder_la_SOURCES = Exynos_OMX_Mp3dec.c \
Exynos_OMX_Mp3dec.h \
OSCL_EXPORT_REF OMX_ERRORTYPE Exynos_OMX_ComponentInit(OMX_HANDLETYPE hComponent, OMX_STRING componentName);
OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(OMX_HANDLETYPE hComponent);
+OMX_ERRORTYPE H264CodecDstSetup(OMX_COMPONENTTYPE *pOMXComponent);
+OMX_ERRORTYPE H264CodecCheckResolutionChange(OMX_COMPONENTTYPE *pOMXComponent);
+
#ifdef __cplusplus
};
#endif
lib_LTLIBRARIES = libOMX.Exynos.AVC.Decoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_AVC_Decoder_la_SOURCES = Exynos_OMX_H264dec.c \
Exynos_OMX_H264dec.h \
OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(
OMX_HANDLETYPE hComponent);
+OMX_ERRORTYPE Mpeg2CodecDstSetup(OMX_COMPONENTTYPE *pOMXComponent);
+OMX_ERRORTYPE Mpeg2CodecCheckResolutionChange(OMX_COMPONENTTYPE *pOMXComponent);
#ifdef __cplusplus
};
#endif
lib_LTLIBRARIES = libOMX.Exynos.M2V.Decoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_M2V_Decoder_la_SOURCES = Exynos_OMX_Mpeg2dec.c \
Exynos_OMX_Mpeg2dec.h \
OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(
OMX_HANDLETYPE hComponent);
+OMX_ERRORTYPE Mpeg4CodecDstSetup(OMX_COMPONENTTYPE *pOMXComponent);
+OMX_ERRORTYPE Mpeg4CodecCheckResolutionChange(OMX_COMPONENTTYPE *pOMXComponent);
#ifdef __cplusplus
};
#endif
lib_LTLIBRARIES = libOMX.Exynos.M4V.Decoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_M4V_Decoder_la_SOURCES = Exynos_OMX_Mpeg4dec.c \
Exynos_OMX_Mpeg4dec.h \
OMX_ERRORTYPE Exynos_OMX_ComponentDeinit(
OMX_HANDLETYPE hComponent);
+OMX_ERRORTYPE WmvCodecSrcInit(OMX_COMPONENTTYPE *pOMXComponent);
+OMX_ERRORTYPE WmvCodecDstSetup(OMX_COMPONENTTYPE *pOMXComponent);
+OMX_ERRORTYPE WmvCodecCheckResolutionChange(OMX_COMPONENTTYPE *pOMXComponent);
#ifdef __cplusplus
};
#endif
lib_LTLIBRARIES = libOMX.Exynos.WMV.Decoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_WMV_Decoder_la_SOURCES = Exynos_OMX_Wmvdec.c \
Exynos_OMX_Wmvdec.h \
lib_LTLIBRARIES = libOMX.Exynos.AVC.Encoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_AVC_Encoder_la_SOURCES = Exynos_OMX_H264enc.c \
Exynos_OMX_H264enc.h \
lib_LTLIBRARIES = libOMX.Exynos.M4V.Encoder.la
-libdir = @prefix@/lib/omx
+libdir = @libdir@/omx
libOMX_Exynos_M4V_Encoder_la_SOURCES = Exynos_OMX_Mpeg4enc.c \
Exynos_OMX_Mpeg4enc.h \
%build
./autogen.sh
-export CFLAGS+=" -mfpu=neon\
+export CFLAGS+="\
+%ifnarch aarch64
+ -mfpu=neon\
+%endif
-DUSE_PB\
-DUSE_DMA_BUF\
-DUSE_H264_PREPEND_SPS_PPS\
-DKERNEL_HEADER_MODIFICATION"
-%configure --prefix=%{_prefix} --disable-static --enable-dlog
+%ifnarch aarch64
+%configure --prefix=%{_prefix} --disable-static --enable-dlog --enable-neon
+%else
+%configure --prefix=%{_prefix} --disable-static --enable-dlog --disable-neon
+%endif
#make %{?jobs:-j%jobs}
make
%files
%manifest libomxil-e54xx.manifest
-/usr/lib/*.so*
-/usr/lib/omx/*.so
+%{_libdir}/*.so*
+%{_libdir}/omx/*.so
%files devel
/usr/include/*
-/usr/lib/pkgconfig/*
+%{_libdir}/pkgconfig/*
prefix=@prefix@
-libdir=@prefix@/lib
+libdir=@LIB_INSTALL_DIR@
includedir=@prefix@/include
Name: Samsung RP package