Lines Matching refs:hData

296     HANDLE_LDAC hData;  local
298 hData = (HANDLE_LDAC)malloc(sizeof(HANDLE_LDAC_STRUCT));
299 if (hData != (HANDLE_LDAC)NULL) {
300 clear_data_ldac(hData, sizeof(HANDLE_LDAC_STRUCT));
301 hData->sfinfo.p_mempos = (char *)NULL;
302 hData->error_code = LDAC_ERR_NONE;
305 return hData;
312 HANDLE_LDAC hData) argument
314 if (hData != (HANDLE_LDAC)NULL) {
315 if (hData->sfinfo.p_mempos != (char *)NULL) {
319 free(hData);
329 HANDLE_LDAC hData, argument
335 CFG *p_cfg = &hData->sfinfo.cfg;
338 hData->error_code = LDAC_ERR_ASSERT_SAMPLING_RATE;
343 hData->error_code = LDAC_ERR_ASSERT_SUP_SAMPLING_RATE;
348 hData->error_code = LDAC_ERR_ASSERT_CHANNEL_CONFIG;
353 hData->error_code = LDAC_ERR_ASSERT_FRAME_LENGTH;
358 hData->error_code = LDAC_ERR_ASSERT_SUP_FRAME_LENGTH;
363 hData->error_code = LDAC_ERR_ASSERT_FRAME_STATUS;
381 HANDLE_LDAC hData, argument
387 CFG *p_cfg = &hData->sfinfo.cfg;
402 HANDLE_LDAC hData, argument
410 hData->error_code = LDAC_ERR_ASSERT_SAMPLING_RATE;
415 hData->error_code = LDAC_ERR_ASSERT_SUP_SAMPLING_RATE;
420 hData->error_code = LDAC_ERR_ASSERT_CHANNEL_CONFIG;
425 hData->error_code = LDAC_ERR_ASSERT_FRAME_LENGTH;
430 hData->error_code = LDAC_ERR_ASSERT_SUP_FRAME_LENGTH;
435 hData->error_code = LDAC_ERR_ASSERT_FRAME_STATUS;
524 HANDLE_LDAC hData, argument
527 CFG *p_cfg = &hData->sfinfo.cfg;
530 hData->error_code = LDAC_ERR_ASSERT_FRAME_LENGTH;
535 hData->error_code = LDAC_ERR_ASSERT_SUP_FRAME_LENGTH;
541 calc_initial_bits_ldac(&hData->sfinfo);
550 HANDLE_LDAC hData, argument
553 CFG *p_cfg = &hData->sfinfo.cfg;
564 HANDLE_LDAC hData, argument
574 (ga_max_nbands_ldac[hData->sfinfo.cfg.smplrate_id] < nbands)) {
575 hData->error_code = LDAC_ERR_ENC_ILL_NBANDS;
580 hData->error_code = LDAC_ERR_ENC_ILL_GRADMODE;
586 hData->error_code = LDAC_ERR_ENC_ILL_GRADPAR_A;
591 hData->error_code = LDAC_ERR_ENC_ILL_GRADPAR_B;
596 hData->error_code = LDAC_ERR_ENC_ILL_GRADPAR_C;
602 hData->error_code = LDAC_ERR_ENC_ILL_GRADPAR_A;
608 hData->error_code = LDAC_ERR_ENC_ILL_GRADPAR_D;
612 hData->nbands = nbands;
613 hData->grad_mode = grad_mode;
614 hData->grad_qu_l = grad_qu_l;
615 hData->grad_os_l = grad_os_l;
617 hData->grad_qu_h = grad_qu_h;
618 hData->grad_os_h = grad_os_h;
621 hData->grad_qu_h = LDAC_DEFGRADQUH;
622 hData->grad_os_h = LDAC_DEFGRADOSH;
624 hData->abc_status = abc_status;
633 HANDLE_LDAC hData) argument
635 SFINFO *p_sfinfo = &hData->sfinfo;
639 ldaclib_get_nlnn(p_sfinfo->cfg.smplrate_id, &hData->nlnn);
641 set_mdct_table_ldac(hData->nlnn);
645 hData->error_code = LDAC_ERR_ENC_INIT_ALLOC;
656 HANDLE_LDAC hData) argument
658 if (hData->sfinfo.p_mempos == NULL) {
659 free_encode_ldac(&hData->sfinfo);
669 HANDLE_LDAC hData, argument
675 SFINFO *p_sfinfo = &hData->sfinfo;
682 hData->error_code = LDAC_ERR_ILL_SMPL_FORMAT;
689 set_input_pcm_ldac(p_sfinfo, ap_pcm, sample_format, hData->nlnn);
691 proc_mdct_ldac(p_sfinfo, hData->nlnn);
693 p_sfinfo->cfg.frame_status = ana_frame_status_ldac(p_sfinfo, hData->nlnn);
695 error_code = encode_ldac(p_sfinfo, hData->nbands, hData->grad_mode,
696 hData->grad_qu_l, hData->grad_qu_h, hData->grad_os_l, hData->grad_os_h,
697 hData->abc_status);
703 hData->error_code = error_code2;
706 hData->error_code = error_code;
718 hData->error_code = error_code2;
721 hData->error_code = error_code;
732 HANDLE_LDAC hData, argument
743 hData->error_code = LDAC_ERR_ILL_SMPL_FORMAT;
753 result = ldaclib_encode(hData, ap_buf, sample_format, p_stream, p_nbytes_used);
769 HANDLE_LDAC hData) argument
771 hData->error_code = LDAC_ERR_NONE;
780 HANDLE_LDAC hData, argument
783 *p_error_code = hData->error_code;
792 HANDLE_LDAC hData) argument
794 hData->sfinfo.error_code = LDAC_ERR_NONE;
803 HANDLE_LDAC hData, argument
806 *p_error_code = hData->sfinfo.error_code;