Lines Matching refs:plane_info
473 PlaneLayoutInfo *plane_info) { in GetYuvUbwcSPPlaneInfo() argument
505 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYuvUbwcSPPlaneInfo()
506 plane_info[0].offset = (uint32_t)yOffset; in GetYuvUbwcSPPlaneInfo()
507 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo()
508 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYuvUbwcSPPlaneInfo()
509 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYuvUbwcSPPlaneInfo()
510 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYuvUbwcSPPlaneInfo()
512 plane_info[1].component = (PlaneComponent)(PLANE_COMPONENT_Cb | PLANE_COMPONENT_Cr); in GetYuvUbwcSPPlaneInfo()
513 plane_info[1].offset = (uint32_t)cOffset; in GetYuvUbwcSPPlaneInfo()
514 plane_info[1].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo()
515 plane_info[1].stride_bytes = static_cast<int32_t>(c_stride); in GetYuvUbwcSPPlaneInfo()
516 plane_info[1].scanlines = static_cast<int32_t>(c_height); in GetYuvUbwcSPPlaneInfo()
517 plane_info[1].size = static_cast<uint32_t>(c_size); in GetYuvUbwcSPPlaneInfo()
519 plane_info[2].component = (PlaneComponent)(PLANE_COMPONENT_META | PLANE_COMPONENT_Y); in GetYuvUbwcSPPlaneInfo()
520 plane_info[2].offset = (uint32_t)yMetaOffset; in GetYuvUbwcSPPlaneInfo()
521 plane_info[2].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo()
522 plane_info[2].stride_bytes = static_cast<int32_t>(y_meta_stride); in GetYuvUbwcSPPlaneInfo()
523 plane_info[2].scanlines = static_cast<int32_t>(y_meta_height); in GetYuvUbwcSPPlaneInfo()
524 plane_info[2].size = static_cast<uint32_t>(y_meta_size); in GetYuvUbwcSPPlaneInfo()
526 plane_info[3].component = in GetYuvUbwcSPPlaneInfo()
528 plane_info[3].offset = (uint32_t)cMetaOffset; in GetYuvUbwcSPPlaneInfo()
529 plane_info[3].stride = static_cast<int32_t>(UINT(width)); in GetYuvUbwcSPPlaneInfo()
530 plane_info[3].stride_bytes = static_cast<int32_t>(c_meta_stride); in GetYuvUbwcSPPlaneInfo()
531 plane_info[3].scanlines = static_cast<int32_t>(c_meta_height); in GetYuvUbwcSPPlaneInfo()
532 plane_info[3].size = static_cast<uint32_t>(c_meta_size); in GetYuvUbwcSPPlaneInfo()
539 PlaneLayoutInfo plane_info[8]) { in GetYuvUbwcInterlacedSPPlaneInfo()
548 GetYuvUbwcSPPlaneInfo(width, height, COLOR_FMT_NV12_UBWC, &plane_info[0]); in GetYuvUbwcInterlacedSPPlaneInfo()
550 GetYuvUbwcSPPlaneInfo(width, height, COLOR_FMT_NV12_UBWC, &plane_info[4]); in GetYuvUbwcInterlacedSPPlaneInfo()
558 uint32_t bpp, PlaneLayoutInfo *plane_info) { in GetYuvSPPlaneInfo() argument
622 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYuvSPPlaneInfo()
623 plane_info[0].offset = (uint32_t)yOffset; in GetYuvSPPlaneInfo()
624 plane_info[0].step = 1; in GetYuvSPPlaneInfo()
625 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYuvSPPlaneInfo()
626 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYuvSPPlaneInfo()
627 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYuvSPPlaneInfo()
628 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYuvSPPlaneInfo()
630 plane_info[1].component = (PlaneComponent)(PLANE_COMPONENT_Cb | PLANE_COMPONENT_Cr); in GetYuvSPPlaneInfo()
631 plane_info[1].offset = (uint32_t)cOffset; in GetYuvSPPlaneInfo()
632 plane_info[1].step = 2 * bpp; in GetYuvSPPlaneInfo()
633 plane_info[1].stride = static_cast<int32_t>(UINT(width)); in GetYuvSPPlaneInfo()
634 plane_info[1].stride_bytes = static_cast<int32_t>(c_stride); in GetYuvSPPlaneInfo()
635 plane_info[1].scanlines = static_cast<int32_t>(c_height); in GetYuvSPPlaneInfo()
636 plane_info[1].size = static_cast<uint32_t>(c_size); in GetYuvSPPlaneInfo()
675 PlaneLayoutInfo plane_info[8] = {}; in GetYUVPlaneInfo() local
678 err = GetYUVPlaneInfo(info, format, width, height, interlaced, &plane_count, plane_info); in GetYUVPlaneInfo()
681 CopyPlaneLayoutInfotoAndroidYcbcr(hnd->base, plane_count, &plane_info[0], &ycbcr[0]); in GetYUVPlaneInfo()
691 field_base = hnd->base + plane_info[1].offset + uv_size; in GetYUVPlaneInfo()
693 CopyPlaneLayoutInfotoAndroidYcbcr(field_base, plane_count, &plane_info[4], &ycbcr[1]); in GetYUVPlaneInfo()
695 CopyPlaneLayoutInfotoAndroidYcbcr(hnd->base, plane_count, plane_info, ycbcr); in GetYUVPlaneInfo()
709 int GetRawPlaneInfo(int32_t format, int32_t width, int32_t height, PlaneLayoutInfo *plane_info) { in GetRawPlaneInfo() argument
735 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_RAW; in GetRawPlaneInfo()
736 plane_info[0].h_subsampling = 0; in GetRawPlaneInfo()
737 plane_info[0].v_subsampling = 0; in GetRawPlaneInfo()
738 plane_info[0].offset = 0; in GetRawPlaneInfo()
739 plane_info[0].step = step; in GetRawPlaneInfo()
740 plane_info[0].stride = width; in GetRawPlaneInfo()
741 plane_info[0].stride_bytes = static_cast<int32_t>(alignedWidth); in GetRawPlaneInfo()
743 plane_info[0].stride_bytes = static_cast<int32_t>(alignedWidth * GetBpp(format)); in GetRawPlaneInfo()
745 plane_info[0].scanlines = height; in GetRawPlaneInfo()
746 plane_info[0].size = size; in GetRawPlaneInfo()
1480 int32_t flags, int *plane_count, PlaneLayoutInfo *plane_info) { in GetYUVPlaneInfo() argument
1487 format, info.width, info.height, plane_count, plane_info); in GetYUVPlaneInfo()
1511 GetYuvSPPlaneInfo(info, format, width, height, 1, plane_info); in GetYUVPlaneInfo()
1513 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1514 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1515 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1516 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1525 GetRawPlaneInfo(format, info.width, info.height, plane_info); in GetYUVPlaneInfo()
1530 GetYuvSPPlaneInfo(info, format, width, height, 1, plane_info); in GetYUVPlaneInfo()
1532 plane_info[0].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1533 plane_info[0].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1538 GetYuvSPPlaneInfo(info, format, width, height, 2, plane_info); in GetYUVPlaneInfo()
1540 plane_info[0].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1541 plane_info[0].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1549 GetYuvUbwcInterlacedSPPlaneInfo(width, height, plane_info); in GetYUVPlaneInfo()
1550 plane_info[0].step = plane_info[4].step = 1; in GetYUVPlaneInfo()
1551 plane_info[1].step = plane_info[5].step = 2; in GetYUVPlaneInfo()
1552 plane_info[0].h_subsampling = plane_info[4].h_subsampling = 0; in GetYUVPlaneInfo()
1553 plane_info[0].v_subsampling = plane_info[4].v_subsampling = 0; in GetYUVPlaneInfo()
1554 plane_info[1].h_subsampling = plane_info[5].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1555 plane_info[1].v_subsampling = plane_info[5].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1556 plane_info[2].h_subsampling = plane_info[3].h_subsampling = 0; in GetYUVPlaneInfo()
1557 plane_info[2].v_subsampling = plane_info[3].v_subsampling = 0; in GetYUVPlaneInfo()
1558 plane_info[2].step = plane_info[3].step = 0; in GetYUVPlaneInfo()
1559 plane_info[6].h_subsampling = plane_info[7].h_subsampling = 0; in GetYUVPlaneInfo()
1560 plane_info[6].v_subsampling = plane_info[7].v_subsampling = 0; in GetYUVPlaneInfo()
1561 plane_info[6].step = plane_info[7].step = 0; in GetYUVPlaneInfo()
1564 GetYuvUbwcSPPlaneInfo(width, height, COLOR_FMT_NV12_UBWC, plane_info); in GetYUVPlaneInfo()
1565 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1566 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1567 plane_info[0].step = 1; in GetYUVPlaneInfo()
1568 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1569 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1570 plane_info[1].step = 2; in GetYUVPlaneInfo()
1571 plane_info[2].h_subsampling = plane_info[3].h_subsampling = 0; in GetYUVPlaneInfo()
1572 plane_info[2].v_subsampling = plane_info[3].v_subsampling = 0; in GetYUVPlaneInfo()
1573 plane_info[2].step = plane_info[3].step = 0; in GetYUVPlaneInfo()
1579 GetYuvSPPlaneInfo(info, format, width, height, 2, plane_info); in GetYUVPlaneInfo()
1581 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1582 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1583 plane_info[0].step = 2; in GetYUVPlaneInfo()
1584 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1585 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1586 plane_info[1].step = 4; in GetYUVPlaneInfo()
1591 GetYuvUbwcSPPlaneInfo(width, height, COLOR_FMT_NV12_BPP10_UBWC, plane_info); in GetYUVPlaneInfo()
1593 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1594 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1595 plane_info[1].step = 1; in GetYUVPlaneInfo()
1596 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1597 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1598 plane_info[1].step = 3; in GetYUVPlaneInfo()
1599 plane_info[2].h_subsampling = plane_info[3].h_subsampling = 0; in GetYUVPlaneInfo()
1600 plane_info[2].v_subsampling = plane_info[3].v_subsampling = 0; in GetYUVPlaneInfo()
1601 plane_info[2].step = plane_info[3].step = 0; in GetYUVPlaneInfo()
1606 GetYuvUbwcSPPlaneInfo(width, height, COLOR_FMT_P010_UBWC, plane_info); in GetYUVPlaneInfo()
1608 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1609 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1610 plane_info[1].step = 1; in GetYUVPlaneInfo()
1611 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1612 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1613 plane_info[1].step = 4; in GetYUVPlaneInfo()
1614 plane_info[2].h_subsampling = plane_info[3].h_subsampling = 0; in GetYUVPlaneInfo()
1615 plane_info[2].v_subsampling = plane_info[3].v_subsampling = 0; in GetYUVPlaneInfo()
1616 plane_info[2].step = plane_info[3].step = 0; in GetYUVPlaneInfo()
1631 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYUVPlaneInfo()
1632 plane_info[0].offset = (uint32_t)yOffset; in GetYUVPlaneInfo()
1633 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYUVPlaneInfo()
1634 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYUVPlaneInfo()
1635 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYUVPlaneInfo()
1636 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYUVPlaneInfo()
1637 plane_info[0].step = 2; in GetYUVPlaneInfo()
1638 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1639 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1641 plane_info[1].component = (PlaneComponent)(PLANE_COMPONENT_Cb | PLANE_COMPONENT_Cr); in GetYUVPlaneInfo()
1642 plane_info[1].offset = (uint32_t)cOffset; in GetYUVPlaneInfo()
1643 plane_info[1].stride = static_cast<int32_t>(UINT(width)); in GetYUVPlaneInfo()
1644 plane_info[1].stride_bytes = static_cast<int32_t>(c_stride); in GetYUVPlaneInfo()
1645 plane_info[1].scanlines = static_cast<int32_t>(c_height); in GetYUVPlaneInfo()
1646 plane_info[1].size = static_cast<uint32_t>(c_size); in GetYUVPlaneInfo()
1647 plane_info[1].step = 4; in GetYUVPlaneInfo()
1648 plane_info[1].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1649 plane_info[1].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1672 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYUVPlaneInfo()
1673 plane_info[0].offset = (uint32_t)yOffset; in GetYUVPlaneInfo()
1674 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYUVPlaneInfo()
1675 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYUVPlaneInfo()
1676 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYUVPlaneInfo()
1677 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYUVPlaneInfo()
1678 plane_info[0].step = 1; in GetYUVPlaneInfo()
1679 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1680 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1682 plane_info[1].component = (PlaneComponent)PLANE_COMPONENT_Cb; in GetYUVPlaneInfo()
1683 plane_info[1].offset = (uint32_t)cbOffset; in GetYUVPlaneInfo()
1684 plane_info[2].component = (PlaneComponent)PLANE_COMPONENT_Cr; in GetYUVPlaneInfo()
1685 plane_info[2].offset = (uint32_t)crOffset; in GetYUVPlaneInfo()
1687 plane_info[i].stride = static_cast<int32_t>(UINT(width)); in GetYUVPlaneInfo()
1688 plane_info[i].stride_bytes = static_cast<int32_t>(c_stride); in GetYUVPlaneInfo()
1689 plane_info[i].scanlines = static_cast<int32_t>(c_height); in GetYUVPlaneInfo()
1690 plane_info[i].size = static_cast<uint32_t>(c_size); in GetYUVPlaneInfo()
1691 plane_info[i].step = 1; in GetYUVPlaneInfo()
1692 plane_info[i].h_subsampling = h_subsampling; in GetYUVPlaneInfo()
1693 plane_info[i].v_subsampling = v_subsampling; in GetYUVPlaneInfo()
1707 plane_info[0].component = (PlaneComponent)PLANE_COMPONENT_Y; in GetYUVPlaneInfo()
1708 plane_info[0].offset = (uint32_t)yOffset; in GetYUVPlaneInfo()
1709 plane_info[0].stride = static_cast<int32_t>(UINT(width)); in GetYUVPlaneInfo()
1710 plane_info[0].stride_bytes = static_cast<int32_t>(y_stride); in GetYUVPlaneInfo()
1711 plane_info[0].scanlines = static_cast<int32_t>(y_height); in GetYUVPlaneInfo()
1712 plane_info[0].size = static_cast<uint32_t>(y_size); in GetYUVPlaneInfo()
1713 plane_info[0].step = 1; in GetYUVPlaneInfo()
1714 plane_info[0].h_subsampling = 0; in GetYUVPlaneInfo()
1715 plane_info[0].v_subsampling = 0; in GetYUVPlaneInfo()
1766 void CopyPlaneLayoutInfotoAndroidYcbcr(uint64_t base, int plane_count, PlaneLayoutInfo *plane_info, in CopyPlaneLayoutInfotoAndroidYcbcr() argument
1768 ycbcr->y = reinterpret_cast<void *>(base + plane_info[0].offset); in CopyPlaneLayoutInfotoAndroidYcbcr()
1769 ycbcr->ystride = plane_info[0].stride_bytes; in CopyPlaneLayoutInfotoAndroidYcbcr()
1790 ycbcr->cb = reinterpret_cast<void *>(base + plane_info[1].offset); in CopyPlaneLayoutInfotoAndroidYcbcr()
1791 ycbcr->cr = reinterpret_cast<void *>(base + plane_info[1].offset + 1); in CopyPlaneLayoutInfotoAndroidYcbcr()
1792 ycbcr->cstride = plane_info[1].stride_bytes; in CopyPlaneLayoutInfotoAndroidYcbcr()
1793 ycbcr->chroma_step = plane_info[1].step; in CopyPlaneLayoutInfotoAndroidYcbcr()
1799 ycbcr->cb = reinterpret_cast<void *>(base + plane_info[1].offset); in CopyPlaneLayoutInfotoAndroidYcbcr()
1800 ycbcr->cr = reinterpret_cast<void *>(base + plane_info[2].offset); in CopyPlaneLayoutInfotoAndroidYcbcr()
1801 ycbcr->cstride = plane_info[1].stride_bytes; in CopyPlaneLayoutInfotoAndroidYcbcr()
1802 ycbcr->chroma_step = plane_info[1].step; in CopyPlaneLayoutInfotoAndroidYcbcr()
1824 int32_t /* flags */, int *plane_count, PlaneLayoutInfo *plane_info) { in GetRGBPlaneInfo() argument
1827 plane_info->component = in GetRGBPlaneInfo()
1830 plane_info->component = (PlaneComponent)(plane_info->component | PLANE_COMPONENT_A); in GetRGBPlaneInfo()
1832 GetBufferSizeAndDimensions(info, &(plane_info->size), (unsigned int *) &width, in GetRGBPlaneInfo()
1834 plane_info->step = GetBpp(format); in GetRGBPlaneInfo()
1835 plane_info->offset = GetRgbMetaSize(format, width, height, usage); in GetRGBPlaneInfo()
1836 plane_info->h_subsampling = 0; in GetRGBPlaneInfo()
1837 plane_info->v_subsampling = 0; in GetRGBPlaneInfo()
1838 plane_info->stride = width; in GetRGBPlaneInfo()
1839 plane_info->stride_bytes = width * plane_info->step; in GetRGBPlaneInfo()
1840 plane_info->scanlines = height; in GetRGBPlaneInfo()