TRANSPORTDEC_ERROR transportDec_GetLibInfo( LIB_INFO *info ) { int i; if (info == NULL) { return TRANSPORTDEC_UNKOWN_ERROR; } /* search for next free tab */ for (i = 0; i < FDK_MODULE_LAST; i++) { if (info[i].module_id == FDK_NONE) break; } if (i == FDK_MODULE_LAST) return TRANSPORTDEC_UNKOWN_ERROR; info += i; info->module_id = FDK_TPDEC; info->build_date = __DATE__; info->build_time = __TIME__; info->title = TP_LIB_TITLE; info->version = LIB_VERSION(TP_LIB_VL0, TP_LIB_VL1, TP_LIB_VL2); LIB_VERSION_STRING(info); info->flags = 0 | CAPF_ADIF | CAPF_ADTS | CAPF_LATM | CAPF_LOAS | CAPF_RAWPACKETS ; return TRANSPORTDEC_OK; /* FDKERR_NOERROR; */ }
INT sbrDecoder_GetLibInfo( LIB_INFO *info ) { int i; if (info == NULL) { return -1; } /* search for next free tab */ for (i = 0; i < FDK_MODULE_LAST; i++) { if (info[i].module_id == FDK_NONE) break; } if (i == FDK_MODULE_LAST) return -1; info += i; info->module_id = FDK_SBRDEC; info->version = LIB_VERSION(SBRDECODER_LIB_VL0, SBRDECODER_LIB_VL1, SBRDECODER_LIB_VL2); LIB_VERSION_STRING(info); info->build_date = (char *)SBRDECODER_LIB_BUILD_DATE; info->build_time = (char *)SBRDECODER_LIB_BUILD_TIME; info->title = (char *)SBRDECODER_LIB_TITLE; /* Set flags */ info->flags = 0 | CAPF_SBR_HQ | CAPF_SBR_LP | CAPF_SBR_PS_MPEG | CAPF_SBR_CONCEALMENT | CAPF_SBR_DRC ; /* End of flags */ return 0; }