Home
last modified time | relevance | path

Searched refs:paramCnt (Results 1 – 19 of 19) sorted by relevance

/drivers/peripheral/codec/hal/passthrough/adapter/src/
Dcomponent_common.cpp357 …atic void SplitParamGettingPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t &paramCnt) in SplitParamGettingPortDefinitionVideo() argument
375 paramCnt = index; in SplitParamGettingPortDefinitionVideo()
376 for (index = 0; index < paramCnt; index++) { in SplitParamGettingPortDefinitionVideo()
382 …atic void SplitParamSettingPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t &paramCnt) in SplitParamSettingPortDefinitionVideo() argument
426 paramCnt = index; in SplitParamSettingPortDefinitionVideo()
429 static void SplitParamPortDefinitionVideo(int8_t *paramIn, Param *paramOut, int32_t &paramCnt, bool… in SplitParamPortDefinitionVideo() argument
432 SplitParamGettingPortDefinitionVideo(paramIn, paramOut, paramCnt); in SplitParamPortDefinitionVideo()
434 SplitParamSettingPortDefinitionVideo(paramIn, paramOut, paramCnt); in SplitParamPortDefinitionVideo()
438 static void SplitParamPortDefinitionAudio(int8_t *paramIn, Param *paramOut, int32_t &paramCnt, bool… in SplitParamPortDefinitionAudio() argument
452 paramCnt = index; in SplitParamPortDefinitionAudio()
[all …]
Dcomponent_node.cpp120 int32_t paramCnt = 0; in GetParameter() local
122 int32_t ret = Common::SplitParam(paramIndex, param, paramOut, paramCnt, codecType_); in GetParameter()
128 for (int32_t i = 0; i < paramCnt; i++) { in GetParameter()
137 ret = Common::ParseParam(paramIndex, paramOut, paramCnt, param, exInfo_); in GetParameter()
152 int32_t paramCnt = 1; in SetParameter() local
154 …int32_t ret = Common::SplitParam(paramIndex, const_cast<int8_t *>(param), paramOut, paramCnt, code… in SetParameter()
160 for (int32_t i = 0; i < paramCnt; i++) { in SetParameter()
/drivers/peripheral/codec/hdi_service/codec_service_stub/
Dcodec_stub.c248 static void FreeParams(Param *params, int32_t paramCnt) in FreeParams() argument
250 if (params == NULL || paramCnt <= 0) { in FreeParams()
254 for (int32_t j = 0; j < paramCnt; j++) { in FreeParams()
266 int32_t paramCnt = 0; in SerCodecSetParameter() local
274 if (!HdfSbufReadInt32(data, &paramCnt)) { in SerCodecSetParameter()
278 if (paramCnt <= 0) { in SerCodecSetParameter()
282 params = (Param *)OsalMemAlloc(sizeof(Param)*paramCnt); in SerCodecSetParameter()
287 for (int32_t i = 0; i < paramCnt; i++) { in SerCodecSetParameter()
290 FreeParams(params, paramCnt); in SerCodecSetParameter()
294 errNum = CodecSetParameter((CODEC_HANDLETYPE)(uintptr_t)handle, params, paramCnt); in SerCodecSetParameter()
[all …]
Dcodec_service.h41 int32_t CodecSetParameter(CODEC_HANDLETYPE handle, const Param *params, int paramCnt);
42 int32_t CodecGetParameter(CODEC_HANDLETYPE handle, Param *params, int paramCnt);
Dcodec_service.c366 int32_t CodecSetParameter(CODEC_HANDLETYPE handle, const Param *params, int32_t paramCnt) in CodecSetParameter() argument
373 if (params == NULL || paramCnt <= 0) { in CodecSetParameter()
377 for (int32_t i = 0; i < paramCnt; i++) { in CodecSetParameter()
388 return g_codecOemIface->codecSetParameter(handle, params, paramCnt); in CodecSetParameter()
391 int32_t CodecGetParameter(CODEC_HANDLETYPE handle, Param *params, int32_t paramCnt) in CodecGetParameter() argument
397 if (params == NULL || paramCnt <= 0) { in CodecGetParameter()
401 return g_codecOemIface->codecGetParameter(handle, params, paramCnt); in CodecGetParameter()
/drivers/peripheral/codec/test/unittest/hdi_v1.0/
Dcodec_proxy_test.cpp229 int paramCnt = 1; variable
230 params = (Param *)OsalMemAlloc(sizeof(Param)*paramCnt);
237 int32_t errorCode = g_codecObj->CodecSetParameter(g_codecObj, g_handle, params, paramCnt);
245 int paramCnt = 1; variable
246 params = (Param *)OsalMemAlloc(sizeof(Param)*paramCnt);
253 int32_t errorCode = g_codecObj->CodecSetParameter(g_codecObj, g_handle, params, paramCnt);
261 int paramCnt = 1; variable
262 params = (Param *)OsalMemAlloc(sizeof(Param)*paramCnt);
269 int32_t errorCode = g_codecObj->CodecSetParameter(g_codecObj, g_handle, params, paramCnt);
277 int paramCnt = 1; variable
[all …]
/drivers/peripheral/codec/hal/passthrough/adapter/include/
Dcomponent_common.h29 …int32_t SplitParam(int32_t paramIndex, int8_t *paramIn, Param *paramOut, int32_t &paramCnt, CodecT…
30 …int32_t ParseParam(int32_t paramIndex, Param *paramIn, int32_t paramCnt, int8_t *paramOut, CodecEx…
/drivers/peripheral/codec/hal/v1.0/oem_interface/include/
Dcodec_oem_if.h36 …f int32_t (*CodecSetParameterType)(CODEC_HANDLETYPE handle, const Param *params, int32_t paramCnt);
37 typedef int32_t (*CodecGetParameterType)(CODEC_HANDLETYPE handle, Param *params, int32_t paramCnt);
/drivers/peripheral/codec/interfaces/include/
Dcodec_interface.h170 int32_t CodecSetParameter(CODEC_HANDLETYPE handle, const Param *params, int paramCnt);
183 int32_t CodecGetParameter(CODEC_HANDLETYPE handle, Param *params, int paramCnt);
/drivers/peripheral/codec/test/demo/v1.0/
Dcodec_utils.c157 void FreeParams(Param *params, int32_t paramCnt) in FreeParams() argument
159 if (params == NULL || paramCnt <= 0) { in FreeParams()
163 for (int32_t j = 0; j < paramCnt; j++) { in FreeParams()
Dcodec_encode_test_async.c304 static void CheckEncSetup(Param *setParams, Param *getParams, int32_t paramCnt) in CheckEncSetup() argument
306 if (setParams == NULL || getParams == NULL || paramCnt <= 0) { in CheckEncSetup()
310 for (int32_t i = 0; i < paramCnt; i++) { in CheckEncSetup()
324 static int32_t GetSetupParams(Param *setParams, int32_t paramCnt) in GetSetupParams() argument
326 Param *getParams = (Param *)OsalMemCalloc(sizeof(Param) * paramCnt); in GetSetupParams()
332 for (int32_t i = 0; i < paramCnt; i++) { in GetSetupParams()
335 …t = g_codecProxy->CodecGetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, getParams, paramCnt); in GetSetupParams()
338 FreeParams(getParams, paramCnt); in GetSetupParams()
341 CheckEncSetup(setParams, getParams, paramCnt); in GetSetupParams()
342 FreeParams(getParams, paramCnt); in GetSetupParams()
Dcodec_encode_test_ipc.c306 static void CheckEncSetup(Param *setParams, Param *getParams, int32_t paramCnt) in CheckEncSetup() argument
308 if (setParams == NULL || getParams == NULL || paramCnt <= 0) { in CheckEncSetup()
312 for (int32_t i = 0; i < paramCnt; i++) { in CheckEncSetup()
326 static int32_t GetSetupParams(Param *setParams, int32_t paramCnt) in GetSetupParams() argument
328 Param *getParams = (Param *)OsalMemCalloc(sizeof(Param) * paramCnt); in GetSetupParams()
334 for (int32_t i = 0; i < paramCnt; i++) { in GetSetupParams()
337 …t = g_codecProxy->CodecGetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, getParams, paramCnt); in GetSetupParams()
340 FreeParams(getParams, paramCnt); in GetSetupParams()
343 CheckEncSetup(setParams, getParams, paramCnt); in GetSetupParams()
344 FreeParams(getParams, paramCnt); in GetSetupParams()
Dcodec_decode_test_async.c424 int32_t paramCnt; in SetBasicDecParameter() local
428 paramCnt = 1; in SetBasicDecParameter()
437 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetBasicDecParameter()
449 paramCnt = 1; in SetBasicDecParameter()
453 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetBasicDecParameter()
465 int32_t paramCnt = 1; in SetDecParameter() local
482 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
494 paramCnt = 1; in SetDecParameter()
498 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
513 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
Dcodec_decode_test_ipc.c421 int32_t paramCnt; in SetBasicDecParameter() local
425 paramCnt = 1; in SetBasicDecParameter()
434 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetBasicDecParameter()
446 paramCnt = 1; in SetBasicDecParameter()
450 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetBasicDecParameter()
462 int32_t paramCnt = 1; in SetDecParameter() local
475 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
483 paramCnt = 1; in SetDecParameter()
487 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
498 … ret = g_codecProxy->CodecSetParameter(g_codecProxy, (CODEC_HANDLETYPE)g_handle, &param, paramCnt); in SetDecParameter()
Dcodec_utils.h73 void FreeParams(Param *params, int32_t paramCnt);
/drivers/peripheral/codec/hdi_service/codec_proxy/
Dicodec.h64 …odecSetParameter)(struct ICodec *self, CODEC_HANDLETYPE handle, const Param *params, int paramCnt);
65 …_t (*CodecGetParameter)(struct ICodec *self, CODEC_HANDLETYPE handle, Param *params, int paramCnt);
Dcodec_proxy.c405 …cProxySetParameter(struct ICodec *self, CODEC_HANDLETYPE handle, const Param *params, int paramCnt) in CodecProxySetParameter() argument
410 if (self == NULL || params == NULL || paramCnt < 0 || paramCnt > PARAM_COUNT_MAX) { in CodecProxySetParameter()
428 if (!HdfSbufWriteInt32(data, paramCnt)) { in CodecProxySetParameter()
433 for (int32_t i = 0; i < paramCnt; i++) { in CodecProxySetParameter()
449 …t CodecProxyGetParameter(struct ICodec *self, CODEC_HANDLETYPE handle, Param *params, int paramCnt) in CodecProxyGetParameter() argument
454 if (self == NULL || params == NULL || paramCnt < 0 || paramCnt > PARAM_COUNT_MAX) { in CodecProxyGetParameter()
468 if (!HdfSbufWriteInt32(data, paramCnt)) { in CodecProxyGetParameter()
473 for (int32_t i = 0; i < paramCnt; i++) { in CodecProxyGetParameter()
486 for (int32_t i = 0; i < paramCnt; i++) { in CodecProxyGetParameter()
/drivers/peripheral/codec/
DREADME_zh.md112 …617"></a>int32_t CodecSetParameter(CODEC_HANDLETYPE handle, const Param *params, int paramCnt);</p>
117 …318251564"></a>int32_t CodecGetParameter(CODEC_HANDLETYPE handle, Param *params, int paramCnt);</p>
DREADME.md112 …617"></a>int32_t CodecSetParameter(CODEC_HANDLETYPE handle, const Param *params, int paramCnt);</p>
117 …318251564"></a>int32_t CodecGetParameter(CODEC_HANDLETYPE handle, Param *params, int paramCnt);</p>