Lines Matching refs:plane

41     struct plane {  struct
49 } plane[3]; member
208 ScopedLocalRef<jobject> plane( in getNativeImage() local
210 img->plane[ix].colInc = env->CallIntMethod(plane.get(), gFields.methodPixelStride); in getNativeImage()
211 img->plane[ix].rowInc = env->CallIntMethod(plane.get(), gFields.methodRowStride); in getNativeImage()
213 env, env->CallObjectMethod(plane.get(), gFields.methodBuffer)); in getNativeImage()
215 img->plane[ix].buffer = (const uint8_t *)env->GetDirectBufferAddress(buffer.get()); in getNativeImage()
216 img->plane[ix].size = env->GetDirectBufferCapacity(buffer.get()); in getNativeImage()
218 img->plane[ix].cropOffs = in getNativeImage()
219 (img->crop.left >> xDecim) * img->plane[ix].colInc in getNativeImage()
220 + (img->crop.top >> yDecim) * img->plane[ix].rowInc; in getNativeImage()
221 img->plane[ix].cropHeight = in getNativeImage()
223 img->plane[ix].cropWidth = in getNativeImage()
228 (((img->width + (1 << xDecim) - 1) >> xDecim) - 1) * img->plane[ix].colInc; in getNativeImage()
230 (((img->height + (1 << yDecim) - 1) >> yDecim) - 1) * img->plane[ix].rowInc; in getNativeImage()
232 || widthOffs + heightOffs >= (ssize_t)img->plane[ix].size) { in getNativeImage()
254 const uint8_t *row = img->plane[ix].buffer + img->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_getImageChecksum()
255 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) { in Java_android_media_cts_CodecUtils_getImageChecksum()
257 ssize_t colInc = img->plane[ix].colInc; in Java_android_media_cts_CodecUtils_getImageChecksum()
258 for (size_t x = img->plane[ix].cropWidth; x > 0; --x) { in Java_android_media_cts_CodecUtils_getImageChecksum()
262 row += img->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_getImageChecksum()
280 tgt->plane[0].cropWidth, tgt->plane[0].cropHeight, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
281 tgt->plane[0].rowInc, tgt->plane[0].colInc, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
282 tgt->plane[1].rowInc, tgt->plane[1].colInc, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
283 tgt->plane[2].rowInc, tgt->plane[2].colInc, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
286 src->plane[0].cropWidth, src->plane[0].cropHeight, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
287 src->plane[0].rowInc, src->plane[0].colInc, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
288 src->plane[1].rowInc, src->plane[1].colInc, in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
289 src->plane[2].rowInc, src->plane[2].colInc); in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
291 uint8_t *row = const_cast<uint8_t *>(tgt->plane[ix].buffer) + tgt->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
292 for (size_t y = 0; y < tgt->plane[ix].cropHeight; ++y) { in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
294 ssize_t colInc = tgt->plane[ix].colInc; in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
295 const uint8_t *srcRow = (src->plane[ix].buffer + src->plane[ix].cropOffs in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
296 + src->plane[ix].rowInc * (y % src->plane[ix].cropHeight)); in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
297 for (size_t x = 0; x < tgt->plane[ix].cropWidth; ++x) { in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
298 *col = srcRow[src->plane[ix].colInc * (x % src->plane[ix].cropWidth)]; in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
301 row += tgt->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_copyFlexYUVImage()
316 const uint8_t *row = img->plane[ix].buffer + img->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
318 for (size_t y = img->plane[ix].cropHeight; y > 0; --y) { in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
320 ssize_t colInc = img->plane[ix].colInc; in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
321 for (size_t x = img->plane[ix].cropWidth; x > 0; --x) { in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
325 row += img->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_fillImageRectWithYUV()
338 const uint8_t *yrow = img->plane[0].buffer + img->plane[0].cropOffs; in getRawStats()
339 const uint8_t *urow = img->plane[1].buffer + img->plane[1].cropOffs; in getRawStats()
340 const uint8_t *vrow = img->plane[2].buffer + img->plane[2].cropOffs; in getRawStats()
342 ssize_t ycolInc = img->plane[0].colInc; in getRawStats()
343 ssize_t ucolInc = img->plane[1].colInc; in getRawStats()
344 ssize_t vcolInc = img->plane[2].colInc; in getRawStats()
346 ssize_t yrowInc = img->plane[0].rowInc; in getRawStats()
347 ssize_t urowInc = img->plane[1].rowInc; in getRawStats()
348 ssize_t vrowInc = img->plane[2].rowInc; in getRawStats()
353 for (size_t y = img->plane[0].cropHeight; y; --y) { in getRawStats()
358 for (size_t x = img->plane[0].cropWidth; x; --x) { in getRawStats()
387 rawStats[0] = img->plane[0].cropWidth * (uint64_t)img->plane[0].cropHeight; in getRawStats()