Home
last modified time | relevance | path

Searched refs:ycbcr (Results 1 – 25 of 52) sorted by relevance

123

/external/drm_hwcomposer/bufferinfo/legacy/
DBufferInfoLibdrm.cpp87 struct android_ycbcr ycbcr; in GetYuvPlaneInfo() local
98 memset(&ycbcr, 0, sizeof(ycbcr)); in GetYuvPlaneInfo()
99 ret = gralloc_->lock_ycbcr(gralloc_, handle, 0, 0, 0, 0, 0, &ycbcr); in GetYuvPlaneInfo()
109 bo->offsets[0] = (size_t)ycbcr.y; in GetYuvPlaneInfo()
111 if ((size_t)ycbcr.cr < (size_t)ycbcr.cb) { in GetYuvPlaneInfo()
113 bo->offsets[1] = (size_t)ycbcr.cr; in GetYuvPlaneInfo()
114 bo->offsets[2] = (size_t)ycbcr.cb; in GetYuvPlaneInfo()
117 bo->offsets[1] = (size_t)ycbcr.cb; in GetYuvPlaneInfo()
118 bo->offsets[2] = (size_t)ycbcr.cr; in GetYuvPlaneInfo()
125 bo->pitches[0] = ycbcr.ystride; in GetYuvPlaneInfo()
[all …]
/external/pdfium/third_party/libtiff/
Dtif_color.c181 TIFFYCbCrtoRGB(TIFFYCbCrToRGB *ycbcr, uint32 Y, int32 Cb, int32 Cr, in TIFFYCbCrtoRGB() argument
191 i = ycbcr->Y_tab[Y] + ycbcr->Cr_r_tab[Cr]; in TIFFYCbCrtoRGB()
193 i = ycbcr->Y_tab[Y] in TIFFYCbCrtoRGB()
194 + (int)((ycbcr->Cb_g_tab[Cb] + ycbcr->Cr_g_tab[Cr]) >> SHIFT); in TIFFYCbCrtoRGB()
196 i = ycbcr->Y_tab[Y] + ycbcr->Cb_b_tab[Cb]; in TIFFYCbCrtoRGB()
234 TIFFYCbCrToRGBInit(TIFFYCbCrToRGB* ycbcr, float *luma, float *refBlackWhite) in TIFFYCbCrToRGBInit() argument
244 (uint8*) ycbcr+TIFFroundup_32(sizeof (TIFFYCbCrToRGB), sizeof (long))); in TIFFYCbCrToRGBInit()
246 ycbcr->clamptab = (clamptab += 256); in TIFFYCbCrToRGBInit()
250 ycbcr->Cr_r_tab = (int*) (clamptab + 3*256); in TIFFYCbCrToRGBInit()
251 ycbcr->Cb_b_tab = ycbcr->Cr_r_tab + 256; in TIFFYCbCrToRGBInit()
[all …]
/external/minigbm/cros_gralloc/gralloc3/
DCrosGralloc3Mapper.cc229 YCbCrLayout ycbcr = {}; in lockYCbCr() local
233 hidlCb(Error::NO_RESOURCES, ycbcr); in lockYCbCr()
240 hidlCb(Error::BAD_BUFFER, ycbcr); in lockYCbCr()
247 hidlCb(Error::BAD_BUFFER, ycbcr); in lockYCbCr()
254 hidlCb(result.error, ycbcr); in lockYCbCr()
260 ycbcr.y = result.mapped[0] + crosHandle->offsets[0]; in lockYCbCr()
261 ycbcr.cb = result.mapped[0] + crosHandle->offsets[1]; in lockYCbCr()
262 ycbcr.cr = result.mapped[0] + crosHandle->offsets[1] + 1; in lockYCbCr()
263 ycbcr.yStride = crosHandle->strides[0]; in lockYCbCr()
264 ycbcr.cStride = crosHandle->strides[1]; in lockYCbCr()
[all …]
/external/v4l2_codec2/common/
DEncodeHelpers.cpp74 android_ycbcr ycbcr = {}; in getGraphicBlockInfo() local
75 int32_t status = buf->lockYCbCr(GRALLOC_USAGE_SW_READ_OFTEN, &ycbcr); in getGraphicBlockInfo()
79 uintptr_t y = reinterpret_cast<uintptr_t>(ycbcr.y); in getGraphicBlockInfo()
80 ycbcr.y = nullptr; in getGraphicBlockInfo()
81 ycbcr.cb = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(ycbcr.cb) - y); in getGraphicBlockInfo()
82 ycbcr.cr = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(ycbcr.cr) - y); in getGraphicBlockInfo()
84 return ycbcr; in getGraphicBlockInfo()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_vertex_buffers.c221 buffer->ycbcr[i].resource = pipe_buffer_create in vl_vb_init()
228 if (!buffer->ycbcr[i].resource) in vl_vb_init()
252 pipe_resource_reference(&buffer->ycbcr[i].resource, NULL); in vl_vb_init()
271 buf.buffer.resource = buffer->ycbcr[component].resource; in vl_vb_get_ycbcr()
300 buffer->ycbcr[i].vertex_stream = pipe_buffer_map in vl_vb_map()
303 buffer->ycbcr[i].resource, in vl_vb_map()
305 &buffer->ycbcr[i].transfer in vl_vb_map()
327 return buffer->ycbcr[component].vertex_stream; in vl_vb_get_ycbcr_stream()
355 if (buffer->ycbcr[i].transfer) in vl_vb_unmap()
356 pipe_buffer_unmap(pipe, buffer->ycbcr[i].transfer); in vl_vb_unmap()
[all …]
/external/autotest/server/site_tests/cheets_CTS_P/
Dcontrol.arm.CtsDeqpTestCases.dEQP-VK.ycbcr8 NAME = 'cheets_CTS_P.arm.CtsDeqpTestCases.dEQP-VK.ycbcr'
16 DOC = 'Run module CtsDeqpTestCases.dEQP-VK.ycbcr of the Android Compatibility Test Suite (CTS) usin…
24 tag='arm.CtsDeqpTestCases.dEQP-VK.ycbcr',
25 test_name='cheets_CTS_P.arm.CtsDeqpTestCases.dEQP-VK.ycbcr',
26 …-include-filter', 'CtsDeqpTestCases', '--module', 'CtsDeqpTestCases', '--test', 'dEQP-VK.ycbcr.*'],
Dcontrol.x86.CtsDeqpTestCases.dEQP-VK.ycbcr8 NAME = 'cheets_CTS_P.x86.CtsDeqpTestCases.dEQP-VK.ycbcr'
16 DOC = 'Run module CtsDeqpTestCases.dEQP-VK.ycbcr of the Android Compatibility Test Suite (CTS) usin…
24 tag='x86.CtsDeqpTestCases.dEQP-VK.ycbcr',
25 test_name='cheets_CTS_P.x86.CtsDeqpTestCases.dEQP-VK.ycbcr',
26 …-include-filter', 'CtsDeqpTestCases', '--module', 'CtsDeqpTestCases', '--test', 'dEQP-VK.ycbcr.*'],
/external/minigbm/cros_gralloc/gralloc0/
Dgralloc0.cc417 int usage, int l, int t, int w, int h, struct android_ycbcr *ycbcr) in gralloc0_lock_ycbcr() argument
419 return module->lockAsync_ycbcr(module, handle, usage, l, t, w, h, ycbcr, -1); in gralloc0_lock_ycbcr()
471 struct android_ycbcr *ycbcr, int fence_fd) in gralloc0_lock_async_ycbcr() argument
525 ycbcr->y = addr[0]; in gralloc0_lock_async_ycbcr()
526 ycbcr->cb = addr[1]; in gralloc0_lock_async_ycbcr()
527 ycbcr->cr = addr[1] + 1; in gralloc0_lock_async_ycbcr()
528 ycbcr->ystride = (!map_flags) ? strides[0] : hnd->strides[0]; in gralloc0_lock_async_ycbcr()
529 ycbcr->cstride = (!map_flags) ? strides[1] : hnd->strides[1]; in gralloc0_lock_async_ycbcr()
530 ycbcr->chroma_step = 2; in gralloc0_lock_async_ycbcr()
534 ycbcr->y = addr[0]; in gralloc0_lock_async_ycbcr()
[all …]
/external/minigbm/cros_gralloc/gralloc0/tests/
Dgralloctest.c115 struct android_ycbcr ycbcr; /* sw access for yuv buffers */ member
127 info->ycbcr.y = NULL; in grallocinfo_init()
128 info->ycbcr.cb = NULL; in grallocinfo_init()
129 info->ycbcr.cr = NULL; in grallocinfo_init()
221 (info->h) / 2, &info->ycbcr); in lock_ycbcr()
250 (info->h) / 2, &info->ycbcr, info->fence_fd); in lock_async_ycbcr()
534 CHECK(info.ycbcr.y); in test_ycbcr()
535 CHECK(info.ycbcr.cb); in test_ycbcr()
536 CHECK(info.ycbcr.cr); in test_ycbcr()
598 CHECK(info.stride == info.ycbcr.ystride); in test_yuv_info()
[all …]
/external/mesa3d/src/egl/drivers/dri2/
Dplatform_android.c194 struct android_ycbcr ycbcr; in droid_create_image_from_prime_fds_yuv() local
207 memset(&ycbcr, 0, sizeof(ycbcr)); in droid_create_image_from_prime_fds_yuv()
209 0, 0, 0, 0, 0, &ycbcr); in droid_create_image_from_prime_fds_yuv()
224 offsets[0] = (size_t)ycbcr.y; in droid_create_image_from_prime_fds_yuv()
226 if ((size_t)ycbcr.cr < (size_t)ycbcr.cb) { in droid_create_image_from_prime_fds_yuv()
228 offsets[1] = (size_t)ycbcr.cr; in droid_create_image_from_prime_fds_yuv()
229 offsets[2] = (size_t)ycbcr.cb; in droid_create_image_from_prime_fds_yuv()
232 offsets[1] = (size_t)ycbcr.cb; in droid_create_image_from_prime_fds_yuv()
233 offsets[2] = (size_t)ycbcr.cr; in droid_create_image_from_prime_fds_yuv()
240 pitches[0] = ycbcr.ystride; in droid_create_image_from_prime_fds_yuv()
[all …]
/external/deqp/android/cts/master/
Dvk-master-2019-03-01.txt365273 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_optimal
365274 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear
365275 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_mapped
365276 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_optimal
365277 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear
365278 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_mapped
365279 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_optimal
365280 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear
365281 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_mapped
365282 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.tess_control_optimal
[all …]
Dvk-master-2020-03-01.txt160435 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_optimal_array
160436 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_array
160437 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_array_mapped
160438 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_optimal_array
160439 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_array
160440 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_array_mapped
160441 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_optimal_array
160442 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_array
160443 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_array_mapped
160444 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.tess_control_optimal_array
[all …]
/external/deqp/android/cts/master/src/
Dvk-master-2019-03-01.txt365273 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_optimal
365274 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear
365275 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_mapped
365276 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_optimal
365277 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear
365278 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_mapped
365279 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_optimal
365280 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear
365281 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_mapped
365282 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.tess_control_optimal
[all …]
Dvk-master-2020-03-01.txt160435 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_optimal_array
160436 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_array
160437 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.vertex_linear_array_mapped
160438 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_optimal_array
160439 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_array
160440 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.fragment_linear_array_mapped
160441 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_optimal_array
160442 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_array
160443 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.geometry_linear_array_mapped
160444 dEQP-VK.ycbcr.format.g8b8g8r8_422_unorm.tess_control_optimal_array
[all …]
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DCMakeLists.txt39 add_library(deqp-vk-ycbcr STATIC ${DEQP_VK_YCBCR_SRCS})
40 target_link_libraries(deqp-vk-ycbcr ${DEQP_VK_YCBCR_LIBS})
DvktYCbCrConversionTests.hpp31 namespace ycbcr namespace
DvktYCbCrFilteringTests.hpp31 namespace ycbcr namespace
DvktYCbCrFormatTests.hpp31 namespace ycbcr namespace
DvktYCbCrImageQueryTests.hpp31 namespace ycbcr namespace
DvktYCbCrStorageImageWriteTests.hpp31 namespace ycbcr namespace
DvktYCbCrTests.hpp31 namespace ycbcr namespace
DvktYCbCrViewTests.hpp31 namespace ycbcr namespace
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemYCbCrConversionTests.cpp190 …if (ycbcr::isXChromaSubsampled(config.format) && (config.xChromaOffset == vk::VK_CHROMA_LOCATION_C… in validateFormatSupport()
193 …if (ycbcr::isXChromaSubsampled(config.format) && (config.xChromaOffset == vk::VK_CHROMA_LOCATION_M… in validateFormatSupport()
196 …if (ycbcr::isYChromaSubsampled(config.format) && (config.yChromaOffset == vk::VK_CHROMA_LOCATION_C… in validateFormatSupport()
199 …if (ycbcr::isYChromaSubsampled(config.format) && (config.yChromaOffset == vk::VK_CHROMA_LOCATION_M… in validateFormatSupport()
319 const ycbcr::MultiPlaneImageData& imageData, in uploadYCbCrImage()
1000 ycbcr::MultiPlaneImageData& ycbcrSrc, in generateYCbCrImage()
1005 const std::vector<tcu::FloatFormat> filteringPrecision (ycbcr::getPrecision(config.format)); in generateYCbCrImage()
1006 const std::vector<tcu::FloatFormat> conversionPrecision (ycbcr::getPrecision(config.format)); in generateYCbCrImage()
1007 const tcu::UVec4 bitDepth (ycbcr::getYCbCrBitDepth(config.format)); in generateYCbCrImage()
1016ycbcr::ChannelAccess nullAccess (tcu::TEXTURECHANNELCLASS_UNSIGNED_FIXED_POINT, 1u, tcu::IVe… in generateYCbCrImage()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/
DCMakeLists.txt32 add_subdirectory(ycbcr)
78 ycbcr
145 deqp-vk-ycbcr
/external/mesa3d/include/android_stub/hardware/
Dgralloc.h270 struct android_ycbcr *ycbcr);
315 struct android_ycbcr *ycbcr, int fenceFd);

123