Lines Matching refs:reply
27 static bool CodecCapabilityBaseUnmarshalling(struct HdfSBuf *reply, CodecCapability *cap) in CodecCapabilityBaseUnmarshalling() argument
29 if (!HdfSbufReadUint32(reply, (uint32_t*)&cap->mime)) { in CodecCapabilityBaseUnmarshalling()
33 if (!HdfSbufReadUint32(reply, (uint32_t*)&cap->type)) { in CodecCapabilityBaseUnmarshalling()
38 if (!HdfSbufReadUint8(reply, (uint8_t *)&(cap->name)[i])) { in CodecCapabilityBaseUnmarshalling()
44 if (!HdfSbufReadInt32(reply, &(cap->supportProfiles)[j])) { in CodecCapabilityBaseUnmarshalling()
49 if (!HdfSbufReadInt8(reply, (int8_t *)&cap->isSoftwareCodec)) { in CodecCapabilityBaseUnmarshalling()
53 if (!HdfSbufReadInt32(reply, &cap->processModeMask)) { in CodecCapabilityBaseUnmarshalling()
57 if (!HdfSbufReadUint32(reply, &cap->capsMask)) { in CodecCapabilityBaseUnmarshalling()
61 if (!HdfSbufReadUint32(reply, &cap->allocateMask)) { in CodecCapabilityBaseUnmarshalling()
68 static bool CodecCapabilityRangeValueUnmarshalling(struct HdfSBuf *reply, RangeValue *dataBlock) in CodecCapabilityRangeValueUnmarshalling() argument
73 if (!HdfSbufReadInt32(reply, &dataBlock->min)) { in CodecCapabilityRangeValueUnmarshalling()
77 if (!HdfSbufReadInt32(reply, &dataBlock->max)) { in CodecCapabilityRangeValueUnmarshalling()
84 static bool CodecCapabilityPortUnmarshalling(struct HdfSBuf *reply, CodecCapability *cap) in CodecCapabilityPortUnmarshalling() argument
88 …const VideoPortCap *video = (const VideoPortCap *)HdfSbufReadUnpadBuffer(reply, sizeof(VideoPortCa… in CodecCapabilityPortUnmarshalling()
99 …const AudioPortCap *audio = (const AudioPortCap *)HdfSbufReadUnpadBuffer(reply, sizeof(AudioPortCa… in CodecCapabilityPortUnmarshalling()
119 int32_t CodecProxyParseGottenCapability(struct HdfSBuf *reply, CodecCapability *cap) in CodecProxyParseGottenCapability() argument
121 if (reply == NULL || cap == NULL) { in CodecProxyParseGottenCapability()
124 if (!CodecCapabilityBaseUnmarshalling(reply, cap)) { in CodecProxyParseGottenCapability()
127 if (!CodecCapabilityRangeValueUnmarshalling(reply, &cap->inputBufferNum)) { in CodecProxyParseGottenCapability()
131 if (!CodecCapabilityRangeValueUnmarshalling(reply, &cap->outputBufferNum)) { in CodecProxyParseGottenCapability()
135 if (!CodecCapabilityRangeValueUnmarshalling(reply, &cap->bitRate)) { in CodecProxyParseGottenCapability()
139 if (!HdfSbufReadInt32(reply, &cap->inputBufferSize)) { in CodecProxyParseGottenCapability()
143 if (!HdfSbufReadInt32(reply, &cap->outputBufferSize)) { in CodecProxyParseGottenCapability()
147 if (!CodecCapabilityPortUnmarshalling(reply, cap)) { in CodecProxyParseGottenCapability()
181 int32_t CodecProxyParseParam(struct HdfSBuf *reply, Param *param) in CodecProxyParseParam() argument
183 if (reply == NULL || param == NULL) { in CodecProxyParseParam()
188 if (!HdfSbufReadInt32(reply, (int32_t*)¶m->key)) { in CodecProxyParseParam()
195 if (!HdfSbufReadInt32(reply, &valCpLen)) { in CodecProxyParseParam()
206 if (!HdfSbufReadInt8(reply, &valCp[i])) { in CodecProxyParseParam()
286 static int32_t CodecProxyParseBufOfBufferInfo(struct HdfSBuf *reply, CodecBufferInfo *buffer) in CodecProxyParseBufOfBufferInfo() argument
288 if (reply == NULL || buffer == NULL) { in CodecProxyParseBufOfBufferInfo()
295 if (!HdfSbufReadBuffer(reply, (const void **)&buf, &readLen)) { in CodecProxyParseBufOfBufferInfo()
301 if (!HdfSbufReadUint8(reply, &validFd)) { in CodecProxyParseBufOfBufferInfo()
306 buffer->buf = (intptr_t)HdfSbufReadFileDescriptor(reply); in CodecProxyParseBufOfBufferInfo()
316 if (!HdfSbufReadUint8(reply, &validHandle)) { in CodecProxyParseBufOfBufferInfo()
321 if (!ParseBufferHandle(reply, (BufferHandle **)&buffer->buf)) { in CodecProxyParseBufOfBufferInfo()
335 static int32_t CodecProxyParseBufferInfo(struct HdfSBuf *reply, CodecBufferInfo *buffer) in CodecProxyParseBufferInfo() argument
337 if (reply == NULL || buffer == NULL) { in CodecProxyParseBufferInfo()
341 if (!HdfSbufReadUint32(reply, (uint32_t *)&buffer->type)) { in CodecProxyParseBufferInfo()
345 int32_t ret = CodecProxyParseBufOfBufferInfo(reply, buffer); in CodecProxyParseBufferInfo()
349 if (!HdfSbufReadUint32(reply, &buffer->offset)) { in CodecProxyParseBufferInfo()
353 if (!HdfSbufReadUint32(reply, &buffer->length)) { in CodecProxyParseBufferInfo()
357 if (!HdfSbufReadUint32(reply, &buffer->capacity)) { in CodecProxyParseBufferInfo()
364 int32_t CodecProxyParseCodecBuffer(struct HdfSBuf *reply, CodecBuffer *codecBuffer) in CodecProxyParseCodecBuffer() argument
366 if (reply == NULL || codecBuffer == NULL) { in CodecProxyParseCodecBuffer()
370 if (!HdfSbufReadUint32(reply, &codecBuffer->bufferId)) { in CodecProxyParseCodecBuffer()
374 if (!HdfSbufReadInt64(reply, &codecBuffer->timeStamp)) { in CodecProxyParseCodecBuffer()
378 if (!HdfSbufReadUint32(reply, &codecBuffer->flag)) { in CodecProxyParseCodecBuffer()
383 if (CodecProxyParseBufferInfo(reply, &codecBuffer->buffer[i])) { in CodecProxyParseCodecBuffer()
422 int32_t CodecProxyParseFenceFd(struct HdfSBuf *reply, int32_t *fenceFd) in CodecProxyParseFenceFd() argument
425 if (!HdfSbufReadUint8(reply, &validFd)) { in CodecProxyParseFenceFd()
430 *fenceFd = HdfSbufReadFileDescriptor(reply); in CodecProxyParseFenceFd()