include $(CLEAR_VARS)
-include $(SEC_CODECS)/video/mfc_c110/dec/Android.mk
-include $(SEC_CODECS)/video/mfc_c110/enc/Android.mk
-include $(SEC_CODECS)/video/mfc_c110/csc/Android.mk
\ No newline at end of file
+include $(SEC_CODECS)/video/mfc_c110/dec/Android.mk
+include $(SEC_CODECS)/video/mfc_c110/enc/Android.mk
+include $(SEC_CODECS)/video/mfc_c110/csc/Android.mk
+
+ifneq ($(TARGET_SEC_OMX_BIG_MMAP_BUFFER_SIZE),true)
+ LOCAL_CFLAGS += -DBIG_MMAP_BUFFER_SIZE
+endif
#define MAX_DECODER_INPUT_BUFFER_SIZE (1024 * 3072)
#define MAX_ENCODER_OUTPUT_BUFFER_SIZE (1024 * 3072)
+#ifdef BIG_MMAP_BUFFER_SIZE
+#define MMAP_BUFFER_SIZE_MMAP (62*1024*1024)
+#else
#define MMAP_BUFFER_SIZE_MMAP (35328*1024) // 34.5*1024*1024
+#endif // BIG_MMAP_BUFFER_SIZE
#define S5PC110_MFC_DEV_NAME "/dev/s3c-mfc"
LOCAL_C_INCLUDES += $(SEC_OMX_TOP)/sec_codecs/video/mfc_c110/include
+ifeq ($(TARGET_USE_HWDECODING_TVOUT),true)
+ LOCAL_CFLAGS += -DUSE_HWDECODING_TVOUT
+endif
+
include $(BUILD_STATIC_LIBRARY)
ret = OMX_ErrorNone;
#ifdef USE_ANDROID_EXTENSION
} else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) {
- if (isTvOutEnabled()) {
- // Samsung normally pushes HW-decoded frames to the TV Out driver
- // but it's hard for us to do that without source, so return an error
- // and let Android fallback to software decoding
- ret = OMX_ErrorInsufficientResources;
- goto EXIT;
- }
+#ifndef USE_HWDECODING_TVOUT
+ if (isTvOutEnabled()) {
+ // Samsung normally pushes HW-decoded frames to the TV Out driver
+ // but it's hard for us to do that without source, so return an error
+ // and let Android fallback to software decoding
+ ret = OMX_ErrorInsufficientResources;
+ goto EXIT;
+ }
+#endif // USE_HWDECODING_TVOUT
*pIndexType = OMX_IndexParamEnableAndroidBuffers;
ret = OMX_ErrorNone;
ret = OMX_ErrorNone;
#ifdef USE_ANDROID_EXTENSION
} else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) {
- if (isTvOutEnabled()) {
- // Samsung normally pushes HW-decoded frames to the TV Out driver
- // but it's hard for us to do that without source, so return an error
- // and let Android fallback to software decoding
- ret = OMX_ErrorInsufficientResources;
- goto EXIT;
- }
+#ifndef USE_HWDECODING_TVOUT
+ if (isTvOutEnabled()) {
+ // Samsung normally pushes HW-decoded frames to the TV Out driver
+ // but it's hard for us to do that without source, so return an error
+ // and let Android fallback to software decoding
+ ret = OMX_ErrorInsufficientResources;
+ goto EXIT;
+ }
+#endif // USE_HWDECODING_TVOUT
*pIndexType = OMX_IndexParamEnableAndroidBuffers;
ret = OMX_ErrorNone;