diff options
author | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2023-04-01 04:08:12 +0530 |
---|---|---|
committer | ram-mohan <ram-mohan@users.noreply.github.com> | 2023-05-26 16:13:41 +0530 |
commit | e4b160c9e5ae09328f812f59ef1682ee0bdc38d7 (patch) | |
tree | caa5233f0324ce453f9272fb3489573eb050739d | |
parent | 42f5600e24672ef5593de90825eff1d29abb65a8 (diff) | |
download | libhevc-e4b160c9e5ae09328f812f59ef1682ee0bdc38d7.tar.gz |
decoder: cleanup MULTICORE macro
-rw-r--r-- | Android.bp | 1 | ||||
-rw-r--r-- | decoder/ihevcd_api.c | 16 |
2 files changed, 4 insertions, 13 deletions
@@ -40,7 +40,6 @@ cc_library_static { cflags: [ "-D_LIB", - "-DMULTICORE", "-fPIC", "-O3", diff --git a/decoder/ihevcd_api.c b/decoder/ihevcd_api.c index 031808d..66d3b85 100644 --- a/decoder/ihevcd_api.c +++ b/decoder/ihevcd_api.c @@ -822,15 +822,11 @@ static IV_API_CALL_STATUS_T api_check_struct_sanity(iv_obj_t *ps_handle, return IV_FAIL; } -#ifdef MULTICORE if((ps_ip->u4_num_cores < 1) || (ps_ip->u4_num_cores > MAX_NUM_CORES)) -#else - if(ps_ip->u4_num_cores != 1) -#endif - { - ps_op->u4_error_code |= 1 << IVD_UNSUPPORTEDPARAM; - return IV_FAIL; - } + { + ps_op->u4_error_code |= 1 << IVD_UNSUPPORTEDPARAM; + return IV_FAIL; + } break; } case IHEVCD_CXA_CMD_CTL_SET_PROCESSOR: @@ -3504,11 +3500,7 @@ WORD32 ihevcd_set_num_cores(iv_obj_t *ps_codec_obj, ps_ip = (ihevcd_cxa_ctl_set_num_cores_ip_t *)pv_api_ip; ps_op = (ihevcd_cxa_ctl_set_num_cores_op_t *)pv_api_op; -#ifdef MULTICORE ps_codec->i4_num_cores = ps_ip->u4_num_cores; -#else - ps_codec->i4_num_cores = 1; -#endif ps_op->u4_error_code = 0; return IV_SUCCESS; } |