• Home
  • Raw
  • Download

Lines Matching refs:ret

48     media_status_t ret = AImageReader_newWithUsage(  in GrallocConsumer()  local
51 if (ret != AMEDIA_OK || mImgReader == nullptr) { in GrallocConsumer()
52 ALOGE("Error creating image reader. ret %d", ret); in GrallocConsumer()
55 ret = AImageReader_getWindow(mImgReader, &mNativeWindow); in GrallocConsumer()
56 if (ret != AMEDIA_OK || mNativeWindow == nullptr) { in GrallocConsumer()
57 ALOGE("Error creating native window. ret %d", ret); in GrallocConsumer()
61 ret = AImageReader_setImageListener(mImgReader, &mReaderCb); in GrallocConsumer()
91 media_status_t ret; in lockNextBuffer() local
99 ret = unlockBuffer(idx); in lockNextBuffer()
100 if (ret != AMEDIA_OK) { in lockNextBuffer()
101 return ret; in lockNextBuffer()
105 ret = AImageReader_acquireNextImage(mImgReader, &(mAcquiredBuffer[idx].mImg)); in lockNextBuffer()
106 if (ret != AMEDIA_OK || mAcquiredBuffer[idx].mImg == nullptr) { in lockNextBuffer()
108 __FUNCTION__, mImgReader, ret, mAcquiredBuffer[idx].mImg); in lockNextBuffer()
109 return ret; in lockNextBuffer()
114 ret = AImage_getFormat(img, &format); in lockNextBuffer()
115 if (ret != AMEDIA_OK || format == -1) { in lockNextBuffer()
117 __FUNCTION__, img, ret, format); in lockNextBuffer()
118 return ret; in lockNextBuffer()
128 ret = AImage_getPlaneData(img, 0, &data, &dataLength); in lockNextBuffer()
129 if (ret != AMEDIA_OK || data == nullptr || dataLength <= 0) { in lockNextBuffer()
131 __FUNCTION__, img, ret, data, dataLength); in lockNextBuffer()
132 return ret; in lockNextBuffer()
136 ret = AImage_getTimestamp(img, &timestamp); in lockNextBuffer()
137 if (ret != AMEDIA_OK || timestamp == -1) { in lockNextBuffer()
139 __FUNCTION__, img, ret); in lockNextBuffer()
140 return ret; in lockNextBuffer()
144 ret = AImage_getPlaneRowStride(img, 0, &rowstride); in lockNextBuffer()
145 if (ret != AMEDIA_OK || rowstride == -1) { in lockNextBuffer()
147 __FUNCTION__, img, ret, rowstride); in lockNextBuffer()
148 return ret; in lockNextBuffer()
152 ret = AImage_getHardwareBuffer(img, &hardwareBuffer); in lockNextBuffer()
153 if (ret != AMEDIA_OK || hardwareBuffer == nullptr) { in lockNextBuffer()
155 __FUNCTION__, img, ret); in lockNextBuffer()
156 return ret; in lockNextBuffer()
175 ret = AImage_getPlaneData(img, 1, &uData, &uDataLength); in lockNextBuffer()
176 if (ret != AMEDIA_OK || uData == nullptr || uDataLength <= 0) { in lockNextBuffer()
178 __FUNCTION__, img, ret, uData, uDataLength); in lockNextBuffer()
179 return ret; in lockNextBuffer()
184 ret = AImage_getPlaneData(img, 2, &vData, &vDataLength); in lockNextBuffer()
185 if (ret != AMEDIA_OK || vData == nullptr || vDataLength <= 0) { in lockNextBuffer()
187 __FUNCTION__, img, ret, vData, vDataLength); in lockNextBuffer()
188 return ret; in lockNextBuffer()
192 ret = AImage_getPlaneRowStride(img, 1, &uRowStride); in lockNextBuffer()
193 if (ret != AMEDIA_OK || uRowStride == -1) { in lockNextBuffer()
195 __FUNCTION__, img, ret, uRowStride); in lockNextBuffer()
196 return ret; in lockNextBuffer()
200 ret = AImage_getPlaneRowStride(img, 2, &vRowStride); in lockNextBuffer()
201 if (ret != AMEDIA_OK || vRowStride == -1) { in lockNextBuffer()
203 __FUNCTION__, img, ret, vRowStride); in lockNextBuffer()
204 return ret; in lockNextBuffer()
208 ret = AImage_getPlanePixelStride(img, 1, &uPixStride); in lockNextBuffer()
209 if (ret != AMEDIA_OK || uPixStride == -1) { in lockNextBuffer()
211 __FUNCTION__, img, ret, uPixStride); in lockNextBuffer()
212 return ret; in lockNextBuffer()
235 media_status_t ret; in unlockBuffer() local
270 media_status_t ret; in releaseIdx() local
271 ret = unlockBuffer(idx); in releaseIdx()
272 if (ret != OK) { in releaseIdx()