Home
last modified time | relevance | path

Searched refs:aspect (Results 1 – 25 of 371) sorted by relevance

12345678910>>...15

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DSubresource.cpp22 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertSingleAspect() argument
23 Aspect aspectMask = ConvertAspect(format, aspect); in ConvertSingleAspect()
28 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertAspect() argument
29 Aspect aspectMask = SelectFormatAspects(format, aspect); in ConvertAspect()
34 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect) { in ConvertViewAspect() argument
37 switch (aspect) { in ConvertViewAspect()
46 return ConvertAspect(format, aspect); in ConvertViewAspect()
49 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect) { in SelectFormatAspects() argument
50 switch (aspect) { in SelectFormatAspects()
65 uint8_t GetAspectIndex(Aspect aspect) { in GetAspectIndex() argument
[all …]
DSubresourceStorage.h121 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const;
175 bool IsAspectCompressedForTesting(Aspect aspect) const;
176 bool IsLayerCompressedForTesting(Aspect aspect, uint32_t layer) const;
188 SubresourceRange GetFullLayerRange(Aspect aspect, uint32_t layer) const;
246 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update() local
247 uint32_t aspectIndex = GetAspectIndex(aspect); in Update()
254 SubresourceRange::MakeFull(aspect, mArrayLayerCount, mMipLevelCount); in Update()
267 SubresourceRange updateRange = GetFullLayerRange(aspect, layer); in Update()
278 SubresourceRange::MakeSingle(aspect, layer, level); in Update()
305 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge() local
[all …]
DSubresource.h49 Aspect ConvertSingleAspect(const Format& format, wgpu::TextureAspect aspect);
53 Aspect ConvertAspect(const Format& format, wgpu::TextureAspect aspect);
58 Aspect SelectFormatAspects(const Format& format, wgpu::TextureAspect aspect);
62 Aspect ConvertViewAspect(const Format& format, wgpu::TextureAspect aspect);
86 static SubresourceRange MakeSingle(Aspect aspect,
94 uint8_t GetAspectIndex(Aspect aspect);
/third_party/mesa3d/src/vulkan/util/
Dvk_image.c455 VkImageAspectFlagBits aspect) in vk_image_layout_is_read_only() argument
457 assert(util_bitcount(aspect) == 1); in vk_image_layout_is_read_only()
486 return aspect == VK_IMAGE_ASPECT_DEPTH_BIT; in vk_image_layout_is_read_only()
489 return aspect == VK_IMAGE_ASPECT_STENCIL_BIT; in vk_image_layout_is_read_only()
500 VkImageAspectFlagBits aspect) in vk_image_layout_to_usage_flags() argument
502 assert(util_bitcount(aspect) == 1); in vk_image_layout_to_usage_flags()
513 assert(aspect & VK_IMAGE_ASPECT_ANY_COLOR_MASK_MESA); in vk_image_layout_to_usage_flags()
517 assert(aspect & (VK_IMAGE_ASPECT_DEPTH_BIT | in vk_image_layout_to_usage_flags()
522 assert(aspect & VK_IMAGE_ASPECT_DEPTH_BIT); in vk_image_layout_to_usage_flags()
524 VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL, aspect); in vk_image_layout_to_usage_flags()
[all …]
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dinherited_model.dart12 /// models whose dependents may only depend on one part or "aspect" of the
21 /// with a value that indicates what "aspect" of the model they depend
23 /// only if there was a change in the model that corresponds to the aspect
26 /// The type parameter `T` is the type of the model aspect objects.
39 /// static MyModel of(BuildContext context, String aspect) {
40 /// return InheritedModel.inheritFrom<MyModel>(context, aspect: aspect);
46 /// be rebuilt when the `foo` aspect of `MyModel` changes. If the aspect
53 /// each dependent and the set of aspect objects it depends on.
54 /// The [updateShouldNotifyDependent] method must compare the set of aspect
82 /// [updateShouldNotifyDependent] are just the aspect strings passed to
[all …]
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DUtilsD3D12.cpp74 Aspect aspect) { in ComputeTextureCopyLocationForTexture() argument
78 copyLocation.SubresourceIndex = texture->GetSubresourceIndex(level, layer, aspect); in ComputeTextureCopyLocationForTexture()
89 Aspect aspect) { in ComputeBufferLocationForCopyTextureRegion() argument
95 texture->GetD3D12CopyableSubresourceFormat(aspect); in ComputeBufferLocationForCopyTextureRegion()
155 Aspect aspect) { in RecordCopyBufferToTextureFromTextureCopySplit() argument
156 ASSERT(HasOneBit(aspect)); in RecordCopyBufferToTextureFromTextureCopySplit()
158 ComputeTextureCopyLocationForTexture(texture, textureMiplevel, textureLayer, aspect); in RecordCopyBufferToTextureFromTextureCopySplit()
168 offsetBytes, bufferBytesPerRow, aspect); in RecordCopyBufferToTextureFromTextureCopySplit()
186 Aspect aspect) { in CopyBufferTo2DTextureWithCopySplit() argument
187 ASSERT(HasOneBit(aspect)); in CopyBufferTo2DTextureWithCopySplit()
[all …]
DUtilsD3D12.h34 Aspect aspect);
42 Aspect aspect);
55 Aspect aspect);
65 Aspect aspect);
75 Aspect aspect);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawImageObjectUtil.cpp173 vk::VkImageAspectFlagBits aspect, in readSurface() argument
179 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readSurface()
181 …read(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, vk::VK_IM… in readSurface()
184 if (aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT || aspect == vk::VK_IMAGE_ASPECT_STENCIL_BIT) in readSurface()
186 …ue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect, m_pixelAccessData… in readSurface()
197 vk::VkImageAspectFlagBits aspect, in readDepth() argument
201 DE_ASSERT(aspect == vk::VK_IMAGE_ASPECT_DEPTH_BIT); in readDepth()
206 …readUsingBuffer(queue, allocator, layout, offset, width, height, 1, mipLevel, arrayElement, aspect in readDepth()
217 vk::VkImageAspectFlagBits aspect, in readVolume() argument
223 if (aspect == vk::VK_IMAGE_ASPECT_COLOR_BIT) in readVolume()
[all …]
DvktDrawImageObjectUtil.hpp80 vk::VkImageAspectFlagBits aspect,
90 vk::VkImageAspectFlagBits aspect,
99 vk::VkImageAspectFlagBits aspect,
110 vk::VkImageAspectFlagBits aspect,
118 vk::VkImageAspectFlagBits aspect,
131 vk::VkImageAspectFlagBits aspect,
144 vk::VkImageAspectFlagBits aspect,
153 vk::VkImageAspectFlagBits aspect,
161 vk::VkImageAspectFlagBits aspect,
170 vk::VkImageAspectFlagBits aspect,
[all …]
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkImage.cpp237 auto aspect = static_cast<VkImageAspectFlagBits>(subresourceRange.aspectMask); in getSizeInBytes() local
243 size = (layerCount - 1) * getLayerSize(aspect); in getSizeInBytes()
246 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
251 size = layerCount * getLayerSize(aspect); in getSizeInBytes()
258 size += getMultiSampledLevelSize(aspect, mipLevel); in getSizeInBytes()
350 auto aspect = static_cast<VkImageAspectFlagBits>(pSubresource->aspectMask); in getSubresourceLayout() local
351 pLayout->offset = getMemoryOffset(aspect, pSubresource->mipLevel, pSubresource->arrayLayer); in getSubresourceLayout()
352 pLayout->size = getMultiSampledLevelSize(aspect, pSubresource->mipLevel); in getSubresourceLayout()
353 pLayout->rowPitch = rowPitchBytes(aspect, pSubresource->mipLevel); in getSubresourceLayout()
354 pLayout->depthPitch = slicePitchBytes(aspect, pSubresource->mipLevel); in getSubresourceLayout()
[all …]
DVkImage.hpp82 Format getFormat(VkImageAspectFlagBits aspect) const;
89 VkExtent3D getMipLevelExtent(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
90 size_t rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
91 size_t slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
96 VkDeviceSize getLayerSize(VkImageAspectFlagBits aspect) const;
97 VkDeviceSize getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
125 VkDeviceSize getMultiSampledLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
126 VkDeviceSize getLayerOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
127 VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel) const;
128 …VkDeviceSize getMemoryOffset(VkImageAspectFlagBits aspect, uint32_t mipLevel, uint32_t layer) cons…
[all …]
DVkImageView.hpp105 Format getFormat(VkImageAspectFlagBits aspect) const { return image->getFormat(aspect); } in getFormat()
106 int rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
107 int slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
108 int getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage = RAW) const;
109 int layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage = RAW) const;
111 VkExtent2D getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const;
126 …void *getOffsetPointer(const VkOffset3D &offset, VkImageAspectFlagBits aspect, uint32_t mipLevel, …
DVkImageView.cpp324 int ImageView::rowPitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in rowPitchBytes() argument
326 return getImage(usage)->rowPitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in rowPitchBytes()
329 int ImageView::slicePitchBytes(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in slicePitchBytes() argument
331 return getImage(usage)->slicePitchBytes(aspect, subresourceRange.baseMipLevel + mipLevel); in slicePitchBytes()
334 int ImageView::getMipLevelSize(VkImageAspectFlagBits aspect, uint32_t mipLevel, Usage usage) const in getMipLevelSize() argument
336 return getImage(usage)->getMipLevelSize(aspect, subresourceRange.baseMipLevel + mipLevel); in getMipLevelSize()
339 int ImageView::layerPitchBytes(VkImageAspectFlagBits aspect, Usage usage) const in layerPitchBytes() argument
341 return static_cast<int>(getImage(usage)->getLayerSize(aspect)); in layerPitchBytes()
350 VkExtent2D ImageView::getMipLevelExtent(uint32_t mipLevel, VkImageAspectFlagBits aspect) const in getMipLevelExtent()
352 return Extent2D(image->getMipLevelExtent(aspect, subresourceRange.baseMipLevel + mipLevel)); in getMipLevelExtent()
[all …]
/third_party/gstreamer/gstreamer/docs/random/
Daspectratio5 - intended physical aspect ratio: 4/3
6 - pixel aspect ratio: 16/15
10 - physical aspect ratio: 4/3
11 - pixel aspect ratio: 1/1
20 - pixel aspect ratio: 16/15
22 => intended display aspect ratio: 4/3
28 - pixel aspect ratio: 16/15
30 => display aspect ratio: 4/3
42 - pixel aspect ratio: 8/9
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DEnumMaskIteratorTests.cpp48 for (TestAspect aspect : IterateEnumMask(static_cast<TestAspect>(0))) { in TEST() local
50 DAWN_UNUSED(aspect); in TEST()
58 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST() local
59 EXPECT_EQ(aspect, expected[i++]); in TEST()
67 for (TestAspect aspect : IterateEnumMask(aspects)) { in TEST() local
68 EXPECT_EQ(aspect, expected[i++]); in TEST()
DSubresourceStorageTests.cpp40 for (Aspect aspect : IterateEnumMask(range.aspects)) { in Update() local
45 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Update()
46 updateFunc(range, &mData[GetDataIndex(aspect, layer, level)]); in Update()
54 for (Aspect aspect : IterateEnumMask(mAspects)) { in Merge() local
57 SubresourceRange range = SubresourceRange::MakeSingle(aspect, layer, level); in Merge()
58 mergeFunc(range, &mData[GetDataIndex(aspect, layer, level)], in Merge()
59 other.Get(aspect, layer, level)); in Merge()
65 const T& Get(Aspect aspect, uint32_t arrayLayer, uint32_t mipLevel) const { in Get()
66 return mData[GetDataIndex(aspect, arrayLayer, mipLevel)]; in Get()
69 size_t GetDataIndex(Aspect aspect, uint32_t layer, uint32_t level) const { in GetDataIndex()
[all …]
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DFormat.cpp24 return aspect == Aspect::Color; in IsColor()
28 return aspect == Depth || aspect == DepthStencil; in HasDepth()
32 return aspect == Stencil || aspect == DepthStencil; in HasStencil()
36 return aspect != Color; in HasDepthOrStencil()
74 internalFormat.aspect = Format::Aspect::Color; in BuildFormatTable()
81 auto AddDepthStencilFormat = [&AddFormat](dawn::TextureFormat format, Format::Aspect aspect, in BuildFormatTable()
88 internalFormat.aspect = aspect; in BuildFormatTable()
102 internalFormat.aspect = Format::Aspect::Color; in BuildFormatTable()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DReadOnlyDepthStencilAttachmentTests.cpp63 wgpu::RenderPipeline CreateRenderPipeline(wgpu::TextureAspect aspect, in CreateRenderPipeline() argument
86 if (aspect == wgpu::TextureAspect::DepthOnly) { in CreateRenderPipeline()
100 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in CreateRenderPipeline()
126 void DoTest(wgpu::TextureAspect aspect, in DoTest() argument
138 if (aspect == wgpu::TextureAspect::DepthOnly) { in DoTest()
141 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in DoTest()
149 viewDesc.aspect = aspect; in DoTest()
168 wgpu::RenderPipeline pipeline = CreateRenderPipeline(aspect, format); in DoTest()
170 if (aspect == wgpu::TextureAspect::DepthOnly) { in DoTest()
176 ASSERT(aspect == wgpu::TextureAspect::StencilOnly); in DoTest()
DDepthStencilSamplingTests.cpp82 for (TestAspect aspect : aspects) { in GenerateSamplingShader() local
83 switch (aspect) { in GenerateSamplingShader()
273 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument
281 switch (aspect) { in DoSamplingTestImpl()
283 inputViewDesc.aspect = wgpu::TextureAspect::DepthOnly; in DoSamplingTestImpl()
286 inputViewDesc.aspect = wgpu::TextureAspect::StencilOnly; in DoSamplingTestImpl()
299 switch (aspect) { in DoSamplingTestImpl()
328 void DoSamplingTestImpl(TestAspect aspect, in DoSamplingTestImpl() argument
336 switch (aspect) { in DoSamplingTestImpl()
338 inputViewDesc.aspect = wgpu::TextureAspect::DepthOnly; in DoSamplingTestImpl()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
DVideoViewsValidationTests.cpp50 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
55 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
60 viewDesc.aspect = wgpu::TextureAspect::All; in TEST_F()
73 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
76 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
80 viewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
84 viewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
96 planeViewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
99 planeViewDesc.aspect = wgpu::TextureAspect::Plane1Only; in TEST_F()
106 planeViewDesc.aspect = wgpu::TextureAspect::Plane0Only; in TEST_F()
[all …]
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstglvideoflip.c172 flip->aspect = 1.0; in gst_gl_video_flip_init()
304 scale_x *= vf->aspect; in _set_active_method()
305 scale_y *= 1. / vf->aspect; in _set_active_method()
312 scale_x *= vf->aspect; in _set_active_method()
313 scale_y *= 1. / vf->aspect; in _set_active_method()
320 scale_x *= -vf->aspect; in _set_active_method()
321 scale_y *= 1. / vf->aspect; in _set_active_method()
329 scale_x *= -vf->aspect; in _set_active_method()
330 scale_y *= 1. / vf->aspect; in _set_active_method()
451 vf->aspect = in _input_sink_probe()
[all …]
/third_party/mindspore/tests/ut/cpp/dataset/
Drandom_crop_decode_resize_op_test.cc105 float scale, aspect; in TEST_F() local
116 aspect = rd_aspect(rd); in TEST_F()
117 crop_width = std::round(std::sqrt(h * w * scale / aspect)); in TEST_F()
118 crop_height = std::round(crop_width * aspect); in TEST_F()
125 aspect = static_cast<float>(h) / w; in TEST_F()
127 crop_width = std::round(std::sqrt(h * w * scale / aspect)); in TEST_F()
128 crop_height = std::round(crop_width * aspect); in TEST_F()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dmatrix_transform.hpp234 T aspect,
249 T aspect,
264 T aspect,
328 T fovy, T aspect, T near);
339 T fovy, T aspect, T near);
350 T fovy, T aspect, T near);
361 T fovy, T aspect, T near);
373 T fovy, T aspect, T near, T ep);
Dmatrix_transform.inl248 GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> perspective(T fovy, T aspect, T zNear, T zFar) argument
251 return perspectiveLH(fovy, aspect, zNear, zFar);
253 return perspectiveRH(fovy, aspect, zNear, zFar);
258 GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> perspectiveRH(T fovy, T aspect, T zNear, T zFar) argument
260 assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));
265 Result[0][0] = static_cast<T>(1) / (aspect * tanHalfFovy);
281 GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> perspectiveLH(T fovy, T aspect, T zNear, T zFar) argument
283 assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));
288 Result[0][0] = static_cast<T>(1) / (aspect * tanHalfFovy);
368 GLM_FUNC_QUALIFIER tmat4x4<T, defaultp> infinitePerspective(T fovy, T aspect, T zNear) argument
[all …]
/third_party/mesa3d/src/intel/vulkan/
Danv_image.c60 image_aspect_to_binding(struct anv_image *image, VkImageAspectFlags aspect) in image_aspect_to_binding() argument
68 assert(aspect >= VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT && in image_aspect_to_binding()
69 aspect <= VK_IMAGE_ASPECT_MEMORY_PLANE_3_BIT_EXT); in image_aspect_to_binding()
76 plane = aspect - VK_IMAGE_ASPECT_MEMORY_PLANE_0_BIT_EXT; in image_aspect_to_binding()
78 plane = anv_image_aspect_to_plane(image, aspect); in image_aspect_to_binding()
206 VkImageAspectFlagBits aspect) in choose_isl_surf_usage() argument
226 switch (aspect) { in choose_isl_surf_usage()
248 aspect == VK_IMAGE_ASPECT_COLOR_BIT) { in choose_isl_surf_usage()
359 plane_format.aspect == VK_IMAGE_ASPECT_STENCIL_BIT && in anv_image_plane_needs_shadow_surface()
514 VkImageAspectFlags aspect = plane_format.aspect; in add_aux_surface_if_supported() local
[all …]

12345678910>>...15