Lines Matching defs:iface

40     struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE);
41 if (iface == NULL) {
42 CODEC_LOGE("failed, iface NULL!");
46 codecGroupNode = iface->GetChildNode(node, nodeName);
59 static int32_t GetUintTableConfig(const struct DeviceResourceIface *iface,
62 if (iface == NULL || node == NULL || attr == NULL) {
71 int32_t count = iface->GetElemNum(node, attr->attrName);
79 iface->GetUint32Array(node, attr->attrName, (uint32_t *)attr->array, count, 0);
86 static int32_t GetMaskedConfig(const struct DeviceResourceIface *iface,
89 if (iface == NULL || node == NULL || attrName == NULL || mask == NULL) {
95 int32_t count = iface->GetElemNum(node, attrName);
109 iface->GetUint32Array(node, attrName, values, count, 0);
119 static int32_t GetVideoPortCapability(const struct DeviceResourceIface *iface,
122 if (iface == NULL || childNode == NULL || cap == NULL) {
146 if (iface->GetUint32(childNode, nodeAttrs[i].attrName, nodeAttrs[i].valueAddr,
162 if (GetUintTableConfig(iface, childNode, &arrayAttrs[i]) != HDF_SUCCESS) {
170 static int32_t GetAudioPortCapability(const struct DeviceResourceIface *iface,
173 if (iface == NULL || childNode == NULL || cap == NULL) {
187 if (GetUintTableConfig(iface, childNode, &arrayAttrs[i]) != HDF_SUCCESS) {
196 static int32_t GetMiscOfCapability(const struct DeviceResourceIface *iface,
199 if (iface == NULL || childNode == NULL || cap == NULL) {
206 if (GetUintTableConfig(iface, childNode, &attr) != HDF_SUCCESS) {
209 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MAX_INST, (uint32_t*)&cap->maxInst, 0) != HDF_SUCCESS) {
212 if (GetMaskedConfig(iface, childNode, CODEC_CONFIG_KEY_PROCESS_MODE_MASK,
216 if (GetMaskedConfig(iface, childNode, CODEC_CONFIG_KEY_CAPS_MASK, &cap->capsMask) != HDF_SUCCESS) {
219 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MIN_BITRATE, (uint32_t*)&(cap->bitRate.min), 0) != HDF_SUCCESS) {
222 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_MAX_BITRATE, (uint32_t*)&(cap->bitRate.max), 0) != HDF_SUCCESS) {
229 static int32_t GetOneCapability(const struct DeviceResourceIface *iface,
232 if (iface == NULL || childNode == NULL || cap == NULL) {
237 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_ROLE,
244 if (iface->GetUint32(childNode, CODEC_CONFIG_KEY_TYPE, (uint32_t*)&cap->type, INVALID_TYPE) != HDF_SUCCESS) {
252 if (iface->GetString(childNode, CODEC_CONFIG_KEY_NAME, &compName, "") != HDF_SUCCESS) {
265 cap->isSoftwareCodec = iface->GetBool(childNode, CODEC_CONFIG_KEY_IS_SOFTWARE_CODEC);
266 cap->canSwapWidthHeight = iface->GetBool(childNode, CODEC_CONFIG_KEY_CAN_SWAP_WIDTH_HEIGHT);
268 if (GetMiscOfCapability(iface, childNode, cap) != HDF_SUCCESS) {
274 if (GetVideoPortCapability(iface, childNode, cap) != HDF_SUCCESS) {
279 if (GetAudioPortCapability(iface, childNode, cap) != HDF_SUCCESS) {
301 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE);
302 if (iface == NULL) {
303 CODEC_LOGE("iface NULL!");
307 codecGroupNode = iface->GetChildNode(node, nodeName);
321 if (GetOneCapability(iface, childNode, cap, isVideoGroup) != HDF_SUCCESS) {