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

Commit bb3e69de authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "AMR-WB Encoder: Enable sample app"

parents 5cc5fd61 3c6813df
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -141,3 +141,6 @@ LOCAL_MODULE := libstagefright_soft_amrwbenc
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)

################################################################################
include $(call all-makefiles-under,$(LOCAL_PATH))
+3 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@

#include      <stdio.h>
#include      <stdlib.h>
#include      <string.h>
#include      <time.h>
#include      "voAMRWB.h"
#include      "cmnMemory.h"
@@ -222,12 +223,12 @@ int encode(
					fflush(fdst);
				}
			}
			else if(returnCode == VO_ERR_LICENSE_ERROR)
			else if((unsigned)returnCode == VO_ERR_LICENSE_ERROR)
			{
		        printf("Encoder time reach upper limit......");
		        goto safe_exit;
			}
		} while(returnCode != VO_ERR_INPUT_BUFFER_SMALL);
		} while((unsigned)returnCode != VO_ERR_INPUT_BUFFER_SMALL);

		finish = clock();
		duration += finish - start;
+5 −2
Original line number Diff line number Diff line
@@ -5,17 +5,20 @@ LOCAL_SRC_FILES := \
    AMRWB_E_SAMPLE.c \
    ../../common/cmnMemory.c

LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_TAGS := tests
LOCAL_MODULE := AMRWBEncTest

LOCAL_ARM_MODE := arm

LOCAL_CFLAGS := -DLINUX
LOCAL_CFLAGS :=

LOCAL_SHARED_LIBRARIES := \
    libstagefright \
    libdl

LOCAL_STATIC_LIBRARIES := \
    libstagefright_amrwbenc

LOCAL_C_INCLUDES := \
    $(LOCAL_PATH)/ \
    $(LOCAL_PATH)/../../common \