Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79e21ef0 authored by Chirayu Desai's avatar Chirayu Desai
Browse files

exynos3: omx: moar love for p1

- bump up mfc memsize
- use H/W decoding for TV-Out

Change-Id: I9425a371c29671e4ba9f82207f79d236ff6731e1
parent 88fda93e
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -5,3 +5,7 @@ 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

ifneq ($(TARGET_SEC_OMX_BIG_MMAP_BUFFER_SIZE),true)
    LOCAL_CFLAGS += -DBIG_MMAP_BUFFER_SIZE
endif
+4 −0
Original line number Diff line number Diff line
@@ -23,7 +23,11 @@
#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"

+4 −0
Original line number Diff line number Diff line
@@ -17,4 +17,8 @@ LOCAL_C_INCLUDES := $(SEC_OMX_INC)/khronos \

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)
+9 −7
Original line number Diff line number Diff line
@@ -699,6 +699,7 @@ OMX_ERRORTYPE SEC_MFC_H264Dec_GetExtensionIndex(
        ret = OMX_ErrorNone;
#ifdef USE_ANDROID_EXTENSION
    } else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) {
#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
@@ -706,6 +707,7 @@ OMX_ERRORTYPE SEC_MFC_H264Dec_GetExtensionIndex(
                ret = OMX_ErrorInsufficientResources;
                goto EXIT;
            }
#endif // USE_HWDECODING_TVOUT

        *pIndexType = OMX_IndexParamEnableAndroidBuffers;
        ret = OMX_ErrorNone;
+9 −7
Original line number Diff line number Diff line
@@ -836,6 +836,7 @@ OMX_ERRORTYPE SEC_MFC_Mpeg4Dec_GetExtensionIndex(
        ret = OMX_ErrorNone;
#ifdef USE_ANDROID_EXTENSION
    } else if (SEC_OSAL_Strcmp(cParameterName, SEC_INDEX_PARAM_ENABLE_ANB) == 0) {
#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
@@ -843,6 +844,7 @@ OMX_ERRORTYPE SEC_MFC_Mpeg4Dec_GetExtensionIndex(
                ret = OMX_ErrorInsufficientResources;
                goto EXIT;
            }
#endif // USE_HWDECODING_TVOUT

        *pIndexType = OMX_IndexParamEnableAndroidBuffers;
        ret = OMX_ErrorNone;