Home
last modified time | relevance | path

Searched refs:surfaceFormat (Results 1 – 25 of 47) sorted by relevance

12

/external/OpenCL-CTS/test_conformance/extensions/cl_khr_dx9_media_sharing/
Dutils.h116 bool YUVGenerate(TSurfaceFormat surfaceFormat, std::vector<cl_uchar> &yuv,
125 bool YUVSurfaceSet(TSurfaceFormat surfaceFormat,
135 bool YUVSurfaceGet(TSurfaceFormat surfaceFormat,
145 bool YUVCompare(TSurfaceFormat surfaceFormat,
151 void DataGenerate(TSurfaceFormat surfaceFormat, cl_channel_type type,
155 void DataGenerate(TSurfaceFormat surfaceFormat, cl_channel_type type,
159 void DataGenerate(TSurfaceFormat surfaceFormat, cl_channel_type type,
163 bool DataCompare(TSurfaceFormat surfaceFormat, cl_channel_type type,
167 bool DataCompare(TSurfaceFormat surfaceFormat, cl_channel_type type,
171 bool DataCompare(TSurfaceFormat surfaceFormat, cl_channel_type type,
[all …]
Dtest_memory_access.cpp22 TSurfaceFormat surfaceFormat, TSharedHandleType sharedHandle) in memory_access() argument
39 if (!YUVGenerate(surfaceFormat, bufferRef0, width, height, 0, 90) in memory_access()
40 || !YUVGenerate(surfaceFormat, bufferRef1, width, height, 91, 180) in memory_access()
41 || !YUVGenerate(surfaceFormat, bufferRef2, width, height, 181, 255)) in memory_access()
60 if (surfaceFormat != SURFACE_FORMAT_NV12 in memory_access()
61 && !SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in memory_access()
67 SurfaceFormatToString(surfaceFormat, formatStr); in memory_access()
81 adapterType, width, height, surfaceFormat, *deviceWrapper, in memory_access()
91 if (!YUVSurfaceSet(surfaceFormat, surface, bufferRef0, width, height)) in memory_access()
136 unsigned int planesNum = PlanesNum(surfaceFormat); in memory_access()
[all …]
Dtest_functions_api.cpp23 TSurfaceFormat surfaceFormat, TSharedHandleType sharedHandle) in api_functions() argument
45 if (!YUVGenerate(surfaceFormat, bufferRef1[i], width, height, in api_functions()
48 || !YUVGenerate(surfaceFormat, bufferRef2[i], width, height, in api_functions()
51 || !YUVGenerate(surfaceFormat, bufferRef3[i], width, height, in api_functions()
73 if (surfaceFormat != SURFACE_FORMAT_NV12 in api_functions()
74 && !SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in api_functions()
80 SurfaceFormatToString(surfaceFormat, formatStr); in api_functions()
94 adapterType, width, height, surfaceFormat, *deviceWrapper, in api_functions()
132 unsigned int planesNum = PlanesNum(surfaceFormat); in api_functions()
169 if (!YUVSurfaceSet(surfaceFormat, surface, in api_functions()
[all …]
Dtest_create_context.cpp22 TSurfaceFormat surfaceFormat, TSharedHandleType sharedHandle) in context_create() argument
36 if (!YUVGenerate(surfaceFormat, bufferIn, width, height, 0, 255)) in context_create()
54 if (surfaceFormat != SURFACE_FORMAT_NV12 in context_create()
55 && !SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in context_create()
61 SurfaceFormatToString(surfaceFormat, formatStr); in context_create()
73 adapterType, width, height, surfaceFormat, *deviceWrapper, in context_create()
120 if (!YUVSurfaceSet(surfaceFormat, surface, bufferIn, width, height)) in context_create()
137 unsigned int planesNum = PlanesNum(surfaceFormat); in context_create()
225 if (!YUVCompare(surfaceFormat, out, bufferIn, width, height)) in context_create()
261 if (!YUVSurfaceGet(surfaceFormat, surface, bufferOut, width, height)) in context_create()
[all …]
Dutils.cpp206 bool YUVGenerate(TSurfaceFormat surfaceFormat, std::vector<cl_uchar> &yuv, in YUVGenerate() argument
210 switch (surfaceFormat) in YUVGenerate()
307 bool YUVSurfaceSet(TSurfaceFormat surfaceFormat, in YUVSurfaceSet() argument
312 switch (surfaceFormat) in YUVSurfaceSet()
413 bool YUVSurfaceGet(TSurfaceFormat surfaceFormat, in YUVSurfaceGet() argument
418 switch (surfaceFormat) in YUVSurfaceGet()
550 bool YUVCompare(TSurfaceFormat surfaceFormat, in YUVCompare() argument
555 switch (surfaceFormat) in YUVCompare()
580 void DataGenerate(TSurfaceFormat surfaceFormat, cl_channel_type type, in DataGenerate() argument
631 void DataGenerate(TSurfaceFormat surfaceFormat, cl_channel_type type, in DataGenerate() argument
[all …]
Dtest_interop_sync.cpp23 TSurfaceFormat surfaceFormat, in interop_user_sync() argument
38 if (!YUVGenerate(surfaceFormat, bufferIn, width, height, 0, 255)) in interop_user_sync()
56 if (surfaceFormat != SURFACE_FORMAT_NV12 in interop_user_sync()
57 && !SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in interop_user_sync()
64 SurfaceFormatToString(surfaceFormat, formatStr); in interop_user_sync()
77 adapterType, width, height, surfaceFormat, *deviceWrapper, in interop_user_sync()
127 if (!YUVSurfaceSet(surfaceFormat, surface, bufferIn, width, height)) in interop_user_sync()
144 unsigned int planesNum = PlanesNum(surfaceFormat); in interop_user_sync()
268 if (!YUVCompare(surfaceFormat, out, bufferIn, width, height)) in interop_user_sync()
296 if (!YUVSurfaceGet(surfaceFormat, surface, bufferOut, width, height)) in interop_user_sync()
[all …]
Dtest_functions_kernel.cpp29 TSurfaceFormat surfaceFormat, in kernel_functions() argument
64 if (!YUVGenerate(surfaceFormat, bufferIn[i], width, height, in kernel_functions()
67 || !YUVGenerate(surfaceFormat, bufferExp[i], width, height, in kernel_functions()
88 if (surfaceFormat != SURFACE_FORMAT_NV12 in kernel_functions()
89 && !SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in kernel_functions()
95 SurfaceFormatToString(surfaceFormat, formatStr); in kernel_functions()
106 if (!MediaSurfaceCreate(adapterType, width, height, surfaceFormat, in kernel_functions()
120 if (!MediaSurfaceCreate(adapterType, width, height, surfaceFormat, in kernel_functions()
167 unsigned int planesNum = PlanesNum(surfaceFormat); in kernel_functions()
218 if (!YUVSurfaceSet(surfaceFormat, surfaceSrc, in kernel_functions()
[all …]
Dtest_other_data_types.cpp31 TSurfaceFormat surfaceFormat, in other_data_types() argument
54 if (!SurfaceFormatToOCL(surfaceFormat, format)) in other_data_types()
106 if (!SurfaceFormatCheck(adapterType, *deviceWrapper, surfaceFormat)) in other_data_types()
112 SurfaceFormatToString(surfaceFormat, formatStr); in other_data_types()
127 SurfaceFormatToString(surfaceFormat, formatStr); in other_data_types()
149 unsigned int planeNum = ChannelNum(surfaceFormat); in other_data_types()
152 DataGenerate(surfaceFormat, format.image_channel_data_type, in other_data_types()
155 DataGenerate(surfaceFormat, format.image_channel_data_type, in other_data_types()
162 if (!MediaSurfaceCreate(adapterType, width, height, surfaceFormat, in other_data_types()
176 if (!MediaSurfaceCreate(adapterType, width, height, surfaceFormat, in other_data_types()
[all …]
/external/skia/src/gpu/gl/
DGrGLCaps.h165 void getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat,
173 void getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
186 void getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
327 const GrBackendFormat& surfaceFormat,
462 void getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType,
DGrGLCaps.cpp1230 void GrGLCaps::getTexImageExternalFormatAndType(GrGLFormat surfaceFormat, GrGLenum* externalFormat, in getTexImageExternalFormatAndType() argument
1232 const auto& info = this->getFormatInfo(surfaceFormat); in getTexImageExternalFormatAndType()
1247 void GrGLCaps::getTexSubImageExternalFormatAndType(GrGLFormat surfaceFormat, in getTexSubImageExternalFormatAndType() argument
1252 this->getExternalFormat(surfaceFormat, surfaceColorType, memoryColorType, in getTexSubImageExternalFormatAndType()
1256 void GrGLCaps::getReadPixelsFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getReadPixelsFormat() argument
1259 this->getExternalFormat(surfaceFormat, surfaceColorType, memoryColorType, in getReadPixelsFormat()
1263 void GrGLCaps::getExternalFormat(GrGLFormat surfaceFormat, GrColorType surfaceColorType, in getExternalFormat() argument
1267 *externalFormat = this->getFormatInfo(surfaceFormat).externalFormat( in getExternalFormat()
1269 *externalType = this->getFormatInfo(surfaceFormat).externalType( in getExternalFormat()
4245 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() argument
[all …]
/external/skia/tools/sk_app/
DVulkanWindowContext.cpp237 VkFormat surfaceFormat = VK_FORMAT_UNDEFINED; in createSwapchain() local
242 surfaceFormat = localFormat; in createSwapchain()
251 if (VK_FORMAT_UNDEFINED == surfaceFormat) { in createSwapchain()
256 switch (surfaceFormat) { in createSwapchain()
290 swapchainCreateInfo.imageFormat = surfaceFormat; in createSwapchain()
/external/angle/src/libANGLE/renderer/vulkan/win32/
DDisplayVkWin32.cpp164 for (const VkSurfaceFormatKHR &surfaceFormat : mSurfaceFormats) in checkConfigSupport() local
166 if (surfaceFormat.format == formatVk.actualImageVkFormat()) in checkConfigSupport()
/external/skqp/tools/sk_app/
DVulkanWindowContext.cpp230 VkFormat surfaceFormat = VK_FORMAT_UNDEFINED; in createSwapchain() local
235 surfaceFormat = localFormat; in createSwapchain()
244 if (VK_FORMAT_UNDEFINED == surfaceFormat) { in createSwapchain()
249 switch (surfaceFormat) { in createSwapchain()
278 swapchainCreateInfo.imageFormat = surfaceFormat; in createSwapchain()
/external/deqp/external/vulkancts/modules/vulkan/wsi/
DvktWsiColorSpaceTests.cpp329 VkSurfaceFormatKHR surfaceFormat, in getBasicSwapchainParameters() argument
364 surfaceFormat.format, in getBasicSwapchainParameters()
365 (setColorspaceManually ? desiredColorspace : surfaceFormat.colorSpace), in getBasicSwapchainParameters()
531 VkSurfaceFormatKHR surfaceFormat = in colorspaceCompareTest() local
538 const tcu::TextureFormat textureFormat = vk::mapVkFormat(surfaceFormat.format); in colorspaceCompareTest()
552 surfaceFormat, in colorspaceCompareTest()
DvktWsiFullScreenExclusiveTests.cpp258 VkSurfaceFormatKHR surfaceFormat, in getBasicSwapchainParameters() argument
274 surfaceFormat.format, in getBasicSwapchainParameters()
275 surfaceFormat.colorSpace, in getBasicSwapchainParameters()
DvktWsiSurfaceTests.cpp825 extFormats[ndx] = formats[ndx].surfaceFormat; in querySurfaceFormats2Test()
853 formatsClone[ndx].surfaceFormat == formats[ndx].surfaceFormat, in querySurfaceFormats2Test()
/external/skia/src/gpu/dawn/
DGrDawnCaps.h33 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() argument
/external/skia/src/gpu/d3d/
DGrD3DCaps.h52 const GrBackendFormat& surfaceFormat,
DGrD3DCaps.cpp885 GrColorType surfaceColorType, const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() argument
888 if (!surfaceFormat.asDxgiFormat(&dxgiFormat)) { in supportedWritePixelsColorType()
/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMutableTests.cpp1972 const VkSurfaceFormatKHR surfaceFormat, in makeSwapchain() argument
1982 surfaceFormat.format, in makeSwapchain()
2004 surfaceFormat.format, // VkFormat imageFormat; in makeSwapchain()
2005 surfaceFormat.colorSpace, // VkColorSpaceKHR imageColorSpace; in makeSwapchain()
2070 const VkSurfaceFormatKHR* surfaceFormat = DE_NULL; in testSwapchainMutable() local
2076 surfaceFormat = &surfaceFormats[i]; in testSwapchainMutable()
2082 if (surfaceFormat == DE_NULL) in testSwapchainMutable()
2098 *surfaceFormat, in testSwapchainMutable()
/external/skia/src/gpu/mtl/
DGrMtlCaps.h46 const GrBackendFormat& surfaceFormat,
/external/skia/src/gpu/mock/
DGrMockCaps.h133 const GrBackendFormat& surfaceFormat, in supportedWritePixelsColorType() argument
/external/skia/src/gpu/vk/
DGrVkCaps.h57 const GrBackendFormat& surfaceFormat,
/external/skia/src/gpu/
DGrCaps.h287 const GrBackendFormat& surfaceFormat,
/external/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c657 out_fmt->surfaceFormat.format = *disp_fmt; in wsi_wl_surface_get_formats2()
658 out_fmt->surfaceFormat.colorSpace = VK_COLORSPACE_SRGB_NONLINEAR_KHR; in wsi_wl_surface_get_formats2()

12