/external/skia/src/gpu/ |
GrYUVProvider.cpp | 24 sk_sp<SkCachedData> init_provider(GrYUVProvider* provider, SkYUVPlanesCache::Info* yuvInfo, 27 data.reset(SkYUVPlanesCache::FindAndRef(provider->onGetID(), yuvInfo)); 31 planes[1] = (uint8_t*)planes[0] + (yuvInfo->fSizeInfo.fWidthBytes[SkYUVSizeInfo::kY] * 32 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight); 33 planes[2] = (uint8_t*)planes[1] + (yuvInfo->fSizeInfo.fWidthBytes[SkYUVSizeInfo::kU] * 34 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kU].fHeight); 37 if (!provider->onQueryYUV8(&yuvInfo->fSizeInfo, &yuvInfo->fColorSpace)) { 44 totalSize += yuvInfo->fSizeInfo.fWidthBytes[i] * yuvInfo->fSizeInfo.fSizes[i].fHeight [all...] |
/external/skqp/src/gpu/ |
GrYUVProvider.cpp | 23 sk_sp<SkCachedData> init_provider(GrYUVProvider* provider, SkYUVPlanesCache::Info* yuvInfo, 26 data.reset(SkYUVPlanesCache::FindAndRef(provider->onGetID(), yuvInfo)); 30 planes[1] = (uint8_t*)planes[0] + (yuvInfo->fSizeInfo.fWidthBytes[SkYUVSizeInfo::kY] * 31 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kY].fHeight); 32 planes[2] = (uint8_t*)planes[1] + (yuvInfo->fSizeInfo.fWidthBytes[SkYUVSizeInfo::kU] * 33 yuvInfo->fSizeInfo.fSizes[SkYUVSizeInfo::kU].fHeight); 36 if (!provider->onQueryYUV8(&yuvInfo->fSizeInfo, &yuvInfo->fColorSpace)) { 43 totalSize += yuvInfo->fSizeInfo.fWidthBytes[i] * yuvInfo->fSizeInfo.fSizes[i].fHeight [all...] |
/external/skia/tests/ |
YUVCacheTest.cpp | 34 SkYUVPlanesCache::Info yuvInfo; 36 yuvInfo.fSizeInfo.fSizes[i].fWidth = 20 * i; 37 yuvInfo.fSizeInfo.fSizes[i].fHeight = 10 * i; 38 yuvInfo.fSizeInfo.fWidthBytes[i] = 80 * i; 40 yuvInfo.fColorSpace = kRec601_SkYUVColorSpace; 44 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); 51 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache); 63 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fSizes[i].fWidth == 65 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fSizes[i].fHeight == 67 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fWidthBytes[i] = [all...] |
/external/skqp/tests/ |
YUVCacheTest.cpp | 34 SkYUVPlanesCache::Info yuvInfo; 36 yuvInfo.fSizeInfo.fSizes[i].fWidth = 20 * i; 37 yuvInfo.fSizeInfo.fSizes[i].fHeight = 10 * i; 38 yuvInfo.fSizeInfo.fWidthBytes[i] = 80 * i; 40 yuvInfo.fColorSpace = kRec601_SkYUVColorSpace; 44 SkCachedData* data = SkYUVPlanesCache::FindAndRef(genID, &yuvInfo, &cache); 51 SkYUVPlanesCache::Add(genID, data, &yuvInfo, &cache); 63 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fSizes[i].fWidth == 65 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fSizes[i].fHeight == 67 REPORTER_ASSERT(reporter, yuvInfo.fSizeInfo.fWidthBytes[i] = [all...] |
/hardware/qcom/display/msm8909/gralloc/ |
gr_utils.cpp | 775 struct android_ycbcr yuvInfo = {}; 811 int ret = GetYUVPlaneInfo(hnd, &yuvInfo); 817 stride[0] = static_cast<uint32_t>(yuvInfo.ystride); 818 offset[0] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.y) - hnd->base); 819 stride[1] = static_cast<uint32_t>(yuvInfo.cstride); 829 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cb) - hnd->base); 834 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cr) - hnd->base); 837 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cr) - hnd->base); 838 stride[2] = static_cast<uint32_t>(yuvInfo.cstride); 839 offset[2] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cb) - hnd->base) [all...] |
/hardware/qcom/display/msm8909w_3100/libgralloc1/ |
gr_utils.cpp | 775 struct android_ycbcr yuvInfo = {}; 811 int ret = GetYUVPlaneInfo(hnd, &yuvInfo); 817 stride[0] = static_cast<uint32_t>(yuvInfo.ystride); 818 offset[0] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.y) - hnd->base); 819 stride[1] = static_cast<uint32_t>(yuvInfo.cstride); 829 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cb) - hnd->base); 834 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cr) - hnd->base); 837 offset[1] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cr) - hnd->base); 838 stride[2] = static_cast<uint32_t>(yuvInfo.cstride); 839 offset[2] = static_cast<uint32_t>(reinterpret_cast<uint64_t>(yuvInfo.cb) - hnd->base) [all...] |
/hardware/qcom/display/msm8909/libgralloc/ |
alloc_controller.cpp | [all...] |
/hardware/qcom/display/msm8909w_3100/libgralloc/ |
alloc_controller.cpp | [all...] |
/hardware/qcom/display/msm8084/libcopybit/ |
copybit_c2d.cpp | 449 yuvPlaneInfo& yuvInfo) 466 yuvInfo.plane1_offset = ALIGN(size,8192); 467 yuvInfo.yStride = aligned_width; 468 yuvInfo.plane1_stride = aligned_width; 475 yuvInfo.yStride = aligned_width; 476 yuvInfo.plane1_stride = aligned_width; 479 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 481 yuvInfo.plane1_offset = aligned_width * height; 564 yuvPlaneInfo yuvInfo = {0}; 565 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8226/libcopybit/ |
copybit_c2d.cpp | 455 yuvPlaneInfo& yuvInfo) 472 yuvInfo.plane1_offset = ALIGN(size,8192); 473 yuvInfo.yStride = aligned_width; 474 yuvInfo.plane1_stride = aligned_width; 481 yuvInfo.yStride = aligned_width; 482 yuvInfo.plane1_stride = aligned_width; 485 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 487 yuvInfo.plane1_offset = aligned_width * height; 570 yuvPlaneInfo yuvInfo = {0}; 571 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8909/libcopybit/ |
copybit_c2d.cpp | 456 yuvPlaneInfo& yuvInfo) 473 yuvInfo.plane1_offset = ALIGN(size,8192); 474 yuvInfo.yStride = aligned_width; 475 yuvInfo.plane1_stride = aligned_width; 482 yuvInfo.yStride = aligned_width; 483 yuvInfo.plane1_stride = aligned_width; 486 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 488 yuvInfo.plane1_offset = aligned_width * height; 575 yuvPlaneInfo yuvInfo = {0}; 576 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8909w_3100/libcopybit/ |
copybit_c2d.cpp | 456 yuvPlaneInfo& yuvInfo) 473 yuvInfo.plane1_offset = ALIGN(size,8192); 474 yuvInfo.yStride = aligned_width; 475 yuvInfo.plane1_stride = aligned_width; 482 yuvInfo.yStride = aligned_width; 483 yuvInfo.plane1_stride = aligned_width; 486 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 488 yuvInfo.plane1_offset = aligned_width * height; 575 yuvPlaneInfo yuvInfo = {0}; 576 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8960/libcopybit/ |
copybit_c2d.cpp | 439 yuvPlaneInfo& yuvInfo) 456 yuvInfo.plane1_offset = ALIGN(size,8192); 457 yuvInfo.yStride = aligned_width; 458 yuvInfo.plane1_stride = aligned_width; 465 yuvInfo.yStride = aligned_width; 466 yuvInfo.plane1_stride = aligned_width; 469 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 471 yuvInfo.plane1_offset = aligned_width * height; 554 yuvPlaneInfo yuvInfo = {0}; 555 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8994/libcopybit/ |
copybit_c2d.cpp | 458 yuvPlaneInfo& yuvInfo) 475 yuvInfo.plane1_offset = ALIGN(size,8192); 476 yuvInfo.yStride = aligned_width; 477 yuvInfo.plane1_stride = aligned_width; 484 yuvInfo.yStride = aligned_width; 485 yuvInfo.plane1_stride = aligned_width; 488 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 490 yuvInfo.plane1_offset = aligned_width * height; 573 yuvPlaneInfo yuvInfo = {0}; 574 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8996/libcopybit/ |
copybit_c2d.cpp | 456 yuvPlaneInfo& yuvInfo) 473 yuvInfo.plane1_offset = ALIGN(size,8192); 474 yuvInfo.yStride = aligned_width; 475 yuvInfo.plane1_stride = aligned_width; 482 yuvInfo.yStride = aligned_width; 483 yuvInfo.plane1_stride = aligned_width; 486 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 488 yuvInfo.plane1_offset = aligned_width * height; 575 yuvPlaneInfo yuvInfo = {0}; 576 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |
/hardware/qcom/display/msm8998/libcopybit/ |
copybit_c2d.cpp | 454 yuvPlaneInfo& yuvInfo) 471 yuvInfo.plane1_offset = ALIGN(size,8192); 472 yuvInfo.yStride = aligned_width; 473 yuvInfo.plane1_stride = aligned_width; 480 yuvInfo.yStride = aligned_width; 481 yuvInfo.plane1_stride = aligned_width; 484 yuvInfo.plane1_offset = ALIGN(aligned_width * height, 2048); 486 yuvInfo.plane1_offset = aligned_width * height; 573 yuvPlaneInfo yuvInfo = {0}; 574 status = calculate_yuv_offset_and_stride(info, yuvInfo); [all...] |