Lines Matching defs:ret
34 int32_t ret = CodecDequeueOutput(decoderHdl, timeoutMs, nullptr, &outInfo);
35 if (ret == CODEC_ERR_FRAME_BUF_EMPTY) {
36 DEMO_LOG("CodecDequeueOutput deque empty.(ret=%d)", ret);
38 } else if (ret != 0) {
39 DEMO_LOG("CodecDequeueOutput error.(ret=%d)", ret);
43 ret = Write2VideoDevice(outInfo);
44 if (ret != 0) {
49 ret = CodecQueueOutput(decoderHdl, &outInfo, timeoutMs, -1);
50 if (ret != 0) {
51 DEMO_LOG("CodecQueueOutput failed.(ret=%d)", ret);
68 int32_t ret = HalPlayerSysInit();
69 if (ret != 0) {
74 ret = HalPlayerVoInit(&voHdl_);
75 if (ret != 0) {
80 ret = HalStartVideoOutput(voHdl_);
81 if (ret != 0) {
91 int32_t ret = HalStopVideoOutput(voHdl_);
92 if (ret != 0) {
110 int32_t ret = HalConfigVideoOutput(voHdl_, voAttr);
111 if (ret != 0) {
116 ret = HalWriteVo(voHdl_, outputInfo.vendorPrivate);
117 if (ret != 0) {
165 int32_t ret = CodecInit();
166 if (ret != 0) {
167 DEMO_LOG("Codec init failed.(ret=%d)", ret);
171 ret = CodecCreate("codec.avc.soft.decoder", param, index, &decoderHdl_);
172 if (ret != 0) {
173 DEMO_LOG("Codec create failed.(ret=%d)", ret);
177 ret = CodecStart(decoderHdl_);
178 if (ret != 0) {
179 DEMO_LOG("Codec start failed.(ret=%d)", ret);
197 int32_t ret = CodecDequeInput(decoderHdl_, timeoutMs, &inputData);
198 if (ret != 0) {
199 DEMO_LOG("CodecDequeInput error.(ret=%d)", ret);
210 while ((ret = CodecQueueInput(decoderHdl_, &inputData, timeoutMs)) == CODEC_ERR_STREAM_BUF_FULL) {
213 if (ret != 0) {
214 DEMO_LOG("CodecQueueInput error.(ret=%d)", ret);
337 int32_t ret = decodeMng.DecodePack(buf + offset, frameSize, timeStamp);
345 if (ret != DEMO_OK) {