Lines Matching refs:ycbcr

287                            int color_format, struct android_ycbcr *ycbcr) {
307 ycbcr->y = reinterpret_cast<void *>(base + y_meta_size);
308 ycbcr->cb = reinterpret_cast<void *>(base + y_meta_size + y_size + c_meta_size);
309 ycbcr->cr = reinterpret_cast<void *>(base + y_meta_size + y_size + c_meta_size + 1);
310 ycbcr->ystride = y_stride;
311 ycbcr->cstride = VENUS_UV_STRIDE(color_format, INT(width));
315 int color_format, struct android_ycbcr *ycbcr) {
322 // Client passed ycbcr argument is ptr to struct android_ycbcr[2].
330 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[0]);
332 field_base = reinterpret_cast<uint64_t>(ycbcr[0].cb) + uv_size;
333 GetYuvUbwcSPPlaneInfo(field_base, width, height, COLOR_FMT_NV12_UBWC, &ycbcr[1]);
337 struct android_ycbcr *ycbcr) {
341 ycbcr->y = reinterpret_cast<void *>(base);
342 ycbcr->cb = reinterpret_cast<void *>(base + ystride * UINT(height));
343 ycbcr->cr = reinterpret_cast<void *>(base + ystride * UINT(height) + 1);
344 ycbcr->ystride = ystride;
345 ycbcr->cstride = cstride;
346 ycbcr->chroma_step = 2 * bpp;
349 int GetYUVPlaneInfo(const private_handle_t *hnd, struct android_ycbcr *ycbcr) {
359 memset(ycbcr->reserved, 0, sizeof(ycbcr->reserved));
394 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr);
398 GetYuvSPPlaneInfo(hnd->base, width, height, 2, ycbcr);
403 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr);
405 GetYuvUbwcInterlacedSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_UBWC, ycbcr);
407 ycbcr->chroma_step = 2;
411 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_NV12_BPP10_UBWC, ycbcr);
412 ycbcr->chroma_step = 3;
416 GetYuvUbwcSPPlaneInfo(hnd->base, width, height, COLOR_FMT_P010_UBWC, ycbcr);
417 ycbcr->chroma_step = 4;
430 GetYuvSPPlaneInfo(hnd->base, width, height, 1, ycbcr);
431 std::swap(ycbcr->cb, ycbcr->cr);
438 ycbcr->y = reinterpret_cast<void *>(hnd->base);
439 ycbcr->cr = reinterpret_cast<void *>(hnd->base + ystride * height);
440 ycbcr->cb = reinterpret_cast<void *>(hnd->base + ystride * height + cstride * height / 2);
441 ycbcr->ystride = ystride;
442 ycbcr->cstride = cstride;
443 ycbcr->chroma_step = 1;
448 ycbcr->y = reinterpret_cast<void *>(hnd->base);
449 ycbcr->cr = NULL;
450 ycbcr->cb = NULL;
451 ycbcr->ystride = ystride;
452 ycbcr->cstride = 0;
453 ycbcr->chroma_step = 0;