Home
last modified time | relevance | path

Searched refs:conversion (Results 1 - 25 of 145) sorted by relevance

123456

/third_party/mesa3d/src/intel/vulkan/
H A Danv_nir_lower_ycbcr_textures.c35 struct anv_ycbcr_conversion *conversion; member
88 struct anv_ycbcr_conversion *conversion = state->conversion; in implicit_downsampled_coords() local
93 for (c = 0; c < ARRAY_SIZE(conversion->chroma_offsets); c++) { in implicit_downsampled_coords()
95 conversion->chroma_offsets[c] == VK_CHROMA_LOCATION_COSITED_EVEN) { in implicit_downsampled_coords()
117 struct anv_ycbcr_conversion *conversion = state->conversion; in create_plane_tex_instr_implicit() local
119 &conversion->format->planes[plane]; in create_plane_tex_instr_implicit()
128 if (plane_format->has_chroma && conversion->chroma_reconstruction) { in create_plane_tex_instr_implicit()
245 if (sampler->conversion in anv_nir_lower_ycbcr_textures_instr()
[all...]
H A Danv_formats.c1675 struct anv_ycbcr_conversion *conversion; in anv_CreateSamplerYcbcrConversion() local
1690 conversion = vk_object_zalloc(&device->vk, pAllocator, sizeof(*conversion), in anv_CreateSamplerYcbcrConversion()
1692 if (!conversion) in anv_CreateSamplerYcbcrConversion()
1695 conversion->format = anv_get_format(pCreateInfo->format); in anv_CreateSamplerYcbcrConversion()
1696 conversion->ycbcr_model = pCreateInfo->ycbcrModel; in anv_CreateSamplerYcbcrConversion()
1697 conversion->ycbcr_range = pCreateInfo->ycbcrRange; in anv_CreateSamplerYcbcrConversion()
1699 /* The Vulkan 1.1.95 spec says "When creating an external format conversion, in anv_CreateSamplerYcbcrConversion()
1703 conversion->mapping[0] = pCreateInfo->components.r; in anv_CreateSamplerYcbcrConversion()
1704 conversion in anv_CreateSamplerYcbcrConversion()
[all...]
H A DgenX_state.c982 ANV_FROM_HANDLE(anv_ycbcr_conversion, conversion, in CreateSampler()
983 pSamplerConversion->conversion); in CreateSampler()
985 /* Ignore conversion for non-YUV formats. This fulfills a requirement in CreateSampler()
990 if (conversion == NULL || !conversion->format->can_ycbcr) in CreateSampler()
993 sampler->n_planes = conversion->format->n_planes; in CreateSampler()
994 sampler->conversion = conversion; in CreateSampler()
1065 sampler->conversion && sampler->conversion in CreateSampler()
[all...]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DConstantUnion.cpp297 ImplicitTypeConversion conversion = GetConversion(constant.type, type); in operator ==() local
298 if (conversion == ImplicitTypeConversion::Same) in operator ==()
316 else if (conversion == ImplicitTypeConversion::Invalid) in operator ==()
359 ImplicitTypeConversion conversion = GetConversion(constant.type, type); in operator >() local
360 if (conversion == ImplicitTypeConversion::Same) in operator >()
376 ASSERT(conversion != ImplicitTypeConversion::Invalid); in operator >()
383 ImplicitTypeConversion conversion = GetConversion(constant.type, type); in operator <() local
384 if (conversion == ImplicitTypeConversion::Same) in operator <()
400 ASSERT(conversion != ImplicitTypeConversion::Invalid); in operator <()
413 ImplicitTypeConversion conversion in add() local
448 ImplicitTypeConversion conversion = GetConversion(lhs.type, rhs.type); sub() local
483 ImplicitTypeConversion conversion = GetConversion(lhs.type, rhs.type); mul() local
[all...]
/third_party/python/Lib/
H A Dstring.py203 for literal_text, field_name, format_spec, conversion in \
237 # do any conversion on the resulting object
238 obj = self.convert_field(obj, conversion)
267 def convert_field(self, value, conversion):
268 # do any conversion on the resulting object
269 if conversion is None:
271 elif conversion == 's':
273 elif conversion == 'r':
275 elif conversion == 'a':
277 raise ValueError("Unknown conversion specifie
[all...]
/third_party/python/Objects/stringlib/
H A Dunicode_format.h555 int *format_spec_needs_expanding, Py_UCS4 *conversion) in parse_field()
564 *conversion = '\0'; in parse_field()
594 /* we have a format specifier and/or a conversion */ in parse_field()
597 /* see if there's a conversion specifier */ in parse_field()
602 "end of string while looking for conversion " in parse_field()
606 *conversion = PyUnicode_READ_CHAR(str->str, str->start++); in parse_field()
614 "expected ':' after conversion specifier"); in parse_field()
677 SubString *format_spec, Py_UCS4 *conversion, in MarkupIterator_next()
690 *conversion = '\0'; in MarkupIterator_next()
757 format_spec_needs_expanding, conversion)) in MarkupIterator_next()
554 parse_field(SubString *str, SubString *field_name, SubString *format_spec, int *format_spec_needs_expanding, Py_UCS4 *conversion) parse_field() argument
675 MarkupIterator_next(MarkupIterator *self, SubString *literal, int *field_present, SubString *field_name, SubString *format_spec, Py_UCS4 *conversion, int *format_spec_needs_expanding) MarkupIterator_next() argument
765 do_conversion(PyObject *obj, Py_UCS4 conversion) do_conversion() argument
806 output_markup(SubString *field_name, SubString *format_spec, int format_spec_needs_expanding, Py_UCS4 conversion, _PyUnicodeWriter *writer, PyObject *args, PyObject *kwargs, int recursion_depth, AutoNumber *auto_number) output_markup() argument
878 Py_UCS4 conversion; do_markup() local
1005 Py_UCS4 conversion; formatteriter_next() local
[all...]
/third_party/node/deps/npm/node_modules/color-convert/
H A Dindex.js22 // Preserve .conversion property if there is one
23 if ('conversion' in fn) {
24 wrappedFn.conversion = fn.conversion;
46 // in conversion functions.
56 // Preserve .conversion property if there is one
57 if ('conversion' in fn) {
58 wrappedFn.conversion = fn.conversion;
H A Droute.js6 all functions that are routed have a property `.conversion` attached
74 fn.conversion = path;
80 const conversion = {};
88 // No possible conversion, or this node is the source model.
92 conversion[toModel] = wrapConversion(toModel, graph);
95 return conversion;
/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_pbo.c409 enum st_pbo_conversion conversion, in create_fs()
517 st_pbo_sampler_type_for_target(target, conversion), in create_fs()
542 if (conversion == ST_PBO_CONVERT_SINT_TO_UINT) in create_fs()
544 else if (conversion == ST_PBO_CONVERT_UINT_TO_SINT) in create_fs()
558 type[conversion]), "img"); in create_fs()
609 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format); in st_pbo_get_upload_fs() local
611 if (!st->pbo.upload_fs[conversion][need_layer]) in st_pbo_get_upload_fs()
612 st->pbo.upload_fs[conversion][need_layer] = create_fs(st, false, 0, conversion, PIPE_FORMAT_NONE, need_layer); in st_pbo_get_upload_fs()
614 return st->pbo.upload_fs[conversion][need_laye in st_pbo_get_upload_fs()
407 create_fs(struct st_context *st, bool download, enum pipe_texture_target target, enum st_pbo_conversion conversion, enum pipe_format format, bool need_layer) create_fs() argument
627 enum st_pbo_conversion conversion = get_pbo_conversion(src_format, dst_format); st_pbo_get_download_fs() local
[all...]
/third_party/mesa3d/src/amd/vulkan/
H A Dradv_nir_lower_ycbcr_textures.c36 const struct radv_sampler_ycbcr_conversion_state *conversion; member
83 const struct radv_sampler_ycbcr_conversion_state *conversion = state->conversion; in implicit_downsampled_coords() local
89 pipe_format_to_chroma_format(vk_format_to_pipe_format(state->conversion->format)); in implicit_downsampled_coords()
100 if (conversion->chroma_offsets[c] == VK_CHROMA_LOCATION_COSITED_EVEN) { in implicit_downsampled_coords()
127 if (plane && true /*state->conversion->chroma_reconstruction*/) { in create_plane_tex_instr_implicit()
269 .conversion = ycbcr_sampler, in try_lower_tex_ycbcr()
275 VkFormat format = state.conversion->format; in try_lower_tex_ycbcr()
285 if (state.conversion->ycbcr_model != VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY) { in try_lower_tex_ycbcr()
291 result = nir_convert_ycbcr_to_rgb(builder, state.conversion in try_lower_tex_ycbcr()
[all...]
H A Dradv_descriptor_set.c149 /* Store block of offsets first, followed by the conversion descriptors (padded to the struct in radv_CreateDescriptorSetLayout()
216 struct radv_sampler_ycbcr_conversion *conversion = in radv_CreateDescriptorSetLayout() local
219 if (conversion) { in radv_CreateDescriptorSetLayout()
222 vk_format_get_plane_count(conversion->state.format)); in radv_CreateDescriptorSetLayout()
1642 struct radv_sampler_ycbcr_conversion *conversion = NULL; in radv_CreateSamplerYcbcrConversion() local
1644 conversion = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*conversion), 8, in radv_CreateSamplerYcbcrConversion()
1647 if (conversion == NULL) in radv_CreateSamplerYcbcrConversion()
1650 vk_object_base_init(&device->vk, &conversion->base, VK_OBJECT_TYPE_SAMPLER_YCBCR_CONVERSION); in radv_CreateSamplerYcbcrConversion()
1652 conversion in radv_CreateSamplerYcbcrConversion()
[all...]
/third_party/mesa3d/src/gallium/frontends/vdpau/
H A Dsurface.c207 enum getbits_conversion conversion = CONVERSION_NONE; in vlVdpVideoSurfaceGetBitsYCbCr() local
231 conversion = CONVERSION_NV12_TO_YV12; in vlVdpVideoSurfaceGetBitsYCbCr()
233 conversion = CONVERSION_YV12_TO_NV12; in vlVdpVideoSurfaceGetBitsYCbCr()
236 conversion = CONVERSION_SWAP_YUYV_UYVY; in vlVdpVideoSurfaceGetBitsYCbCr()
270 if (conversion == CONVERSION_NV12_TO_YV12 && i == 1) { in vlVdpVideoSurfaceGetBitsYCbCr()
274 } else if (conversion == CONVERSION_YV12_TO_NV12 && i > 0) { in vlVdpVideoSurfaceGetBitsYCbCr()
278 } else if (conversion == CONVERSION_SWAP_YUYV_UYVY) { in vlVdpVideoSurfaceGetBitsYCbCr()
307 enum getbits_conversion conversion = CONVERSION_NONE; in vlVdpVideoSurfacePutBitsYCbCr() local
371 conversion = CONVERSION_YV12_TO_NV12; in vlVdpVideoSurfacePutBitsYCbCr()
399 if (conversion in vlVdpVideoSurfacePutBitsYCbCr()
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DVertexArrayVk.cpp44 // To perform the GPU conversion for formats with components that aren't byte-aligned in BindingIsAligned()
358 // so there's no need to perform any conversion. in convertIndexBufferCPU()
373 ConversionBuffer *conversion, in convertVertexBufferGPU()
394 conversion->data.releaseInFlightBuffers(contextVk); in convertVertexBufferGPU()
395 ANGLE_TRY(conversion->data.allocate(contextVk, numVertices * dstFormatSize, nullptr, nullptr, in convertVertexBufferGPU()
396 &conversion->lastAllocationOffset, nullptr)); in convertVertexBufferGPU()
398 ASSERT(conversion->dirty); in convertVertexBufferGPU()
399 conversion->dirty = false; in convertVertexBufferGPU()
410 params.dstOffset = static_cast<size_t>(conversion->lastAllocationOffset); in convertVertexBufferGPU()
413 contextVk, conversion in convertVertexBufferGPU()
368 convertVertexBufferGPU(ContextVk *contextVk, BufferVk *srcBuffer, const gl::VertexBinding &binding, size_t attribIndex, const vk::Format &vertexFormat, ConversionBuffer *conversion, GLuint relativeOffset, bool compressed) convertVertexBufferGPU() argument
418 convertVertexBufferCPU(ContextVk *contextVk, BufferVk *srcBuffer, const gl::VertexBinding &binding, size_t attribIndex, const vk::Format &vertexFormat, ConversionBuffer *conversion, GLuint relativeOffset, bool compressed) convertVertexBufferCPU() argument
627 ConversionBuffer *conversion = bufferVk->getVertexConversionBuffer( syncDirtyAttrib() local
[all...]
H A DVertexArrayVk.h120 ConversionBuffer *conversion,
128 ConversionBuffer *conversion,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ycbcr/
H A DvktYCbCrImageQueryTests.cpp179 VkSamplerYcbcrConversion conversion) in createImageView()
185 conversion in createImageView()
191 (conversion != DE_NULL) ? &samplerConversionInfo : DE_NULL, in createImageView()
218 VkSamplerYcbcrConversion conversion);
237 VkSamplerYcbcrConversion conversion) in TestImage()
241 , m_imageView (createImageView(vkd, device, *m_image, format, conversion)) in TestImage()
394 const Unique<VkSamplerYcbcrConversion> conversion (isYCbCrImage in testImageQuery()
402 *conversion, in testImageQuery()
478 testImages[ndx] = TestImageSp(new TestImage(context, vkd, device, context.getDefaultAllocator(), params.format, testSizes[ndx], params.flags, *conversion)); in testImageQuery()
481 testImages.push_back(TestImageSp(new TestImage(context, vkd, device, context.getDefaultAllocator(), params.format, UVec2(16, 18), params.flags, *conversion))); in testImageQuery()
175 createImageView(const DeviceInterface& vkd, VkDevice device, VkImage image, VkFormat format, VkSamplerYcbcrConversion conversion) createImageView() argument
230 TestImage(const Context& context, const DeviceInterface& vkd, VkDevice device, Allocator& allocator, VkFormat format, const UVec2& size, const VkImageCreateFlags createFlags, VkSamplerYcbcrConversion conversion) TestImage() argument
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/
H A DvktYCbCrImageQueryTests.cpp179 VkSamplerYcbcrConversion conversion) in createImageView()
185 conversion in createImageView()
191 (conversion != DE_NULL) ? &samplerConversionInfo : DE_NULL, in createImageView()
218 VkSamplerYcbcrConversion conversion);
237 VkSamplerYcbcrConversion conversion) in TestImage()
241 , m_imageView (createImageView(vkd, device, *m_image, format, conversion)) in TestImage()
394 const Unique<VkSamplerYcbcrConversion> conversion (isYCbCrImage in testImageQuery()
402 *conversion, in testImageQuery()
478 testImages[ndx] = TestImageSp(new TestImage(context, vkd, device, context.getDefaultAllocator(), params.format, testSizes[ndx], params.flags, *conversion)); in testImageQuery()
481 testImages.push_back(TestImageSp(new TestImage(context, vkd, device, context.getDefaultAllocator(), params.format, UVec2(16, 18), params.flags, *conversion))); in testImageQuery()
175 createImageView(const DeviceInterface& vkd, VkDevice device, VkImage image, VkFormat format, VkSamplerYcbcrConversion conversion) createImageView() argument
230 TestImage(const Context& context, const DeviceInterface& vkd, VkDevice device, Allocator& allocator, VkFormat format, const UVec2& size, const VkImageCreateFlags createFlags, VkSamplerYcbcrConversion conversion) TestImage() argument
[all...]
/third_party/skia/src/gpu/vk/
H A DGrVkSamplerYcbcrConversion.cpp83 VkSamplerYcbcrConversion conversion; in Create() local
86 nullptr, &conversion)); in Create()
91 return new GrVkSamplerYcbcrConversion(gpu, conversion, GenerateKey(info)); in Create()
/third_party/lzma/CPP/7zip/
H A Dwarn_gcc.mak33 # In C: -Wsign-conversion enabled also by -Wconversion
34 # -Wno-sign-conversion \
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
H A DVertexArrayMtl.h99 IndexConversionBufferMtl *conversion);
114 ConversionBufferMtl *conversion);
123 ConversionBufferMtl *conversion);
/third_party/python/Parser/
H A Dstring_parser.c544 includes the expression, conversion character, format_spec expression, and
568 int conversion = -1; /* The conversion char. Use default if not in fstring_find_expr() local
679 /* For "!=". since '=' is not an allowed conversion character, in fstring_find_expr()
741 conversion or format_spec. */ in fstring_find_expr()
773 /* Check for a conversion char, if present. */ in fstring_find_expr()
780 conversion = (unsigned char)**str; in fstring_find_expr()
783 /* Validate the conversion. */ in fstring_find_expr()
784 if (!(conversion == 's' || conversion in fstring_find_expr()
[all...]
/third_party/libinput/src/
H A Dutil-time.h117 } conversion[] = { in to_human_time() local
127 ARRAY_FOR_EACH(conversion, c) { in to_human_time()
/third_party/protobuf/src/google/protobuf/util/internal/
H A Dprotostream_objectwriter.cc141 // conversion to 'nanos', rather than a double, so that there is no in GetNanosFromStringPiece()
158 // 'conversion' converts i_nanos into nanoseconds. in GetNanosFromStringPiece()
159 // conversion = kNanosPerSecond / static_cast<int32>(std::pow(10, scale)) in GetNanosFromStringPiece()
160 // For efficiency, we precompute the conversion factor. in GetNanosFromStringPiece()
161 int32 conversion = 0; in GetNanosFromStringPiece() local
164 conversion = 100000000; in GetNanosFromStringPiece()
167 conversion = 10000000; in GetNanosFromStringPiece()
170 conversion = 1000000; in GetNanosFromStringPiece()
173 conversion = 100000; in GetNanosFromStringPiece()
176 conversion in GetNanosFromStringPiece()
[all...]
/third_party/mesa3d/src/freedreno/vulkan/
H A Dtu_image.c162 const struct tu_sampler_ycbcr_conversion *conversion = ycbcr_conversion ? in tu_image_view_init() local
163 tu_sampler_ycbcr_conversion_from_handle(ycbcr_conversion->conversion) : NULL; in tu_image_view_init()
208 if (conversion) { in tu_image_view_init()
211 vk_component_mapping_to_pipe_swizzle(conversion->components, in tu_image_view_init()
238 if (conversion) { in tu_image_view_init()
239 args.chroma_offsets[0] = (enum fdl_chroma_location) conversion->chroma_offsets[0]; in tu_image_view_init()
240 args.chroma_offsets[1] = (enum fdl_chroma_location) conversion->chroma_offsets[1]; in tu_image_view_init()
/third_party/mesa3d/src/panfrost/lib/
H A Dpan_blend.c727 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
731 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
736 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
740 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
745 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
749 cfg.fixed_function.conversion.register_format = in pan_blend_get_internal_desc()
756 cfg.fixed_function.conversion.memory_format = in pan_blend_get_internal_desc()
/third_party/python/Python/
H A Dast_unparse.c668 const char *conversion; in append_formattedvalue() local
691 if (e->v.FormattedValue.conversion > 0) { in append_formattedvalue()
692 switch (e->v.FormattedValue.conversion) { in append_formattedvalue()
694 conversion = "!a"; in append_formattedvalue()
697 conversion = "!r"; in append_formattedvalue()
700 conversion = "!s"; in append_formattedvalue()
704 "unknown f-value conversion kind"); in append_formattedvalue()
707 APPEND_STR(conversion); in append_formattedvalue()

Completed in 23 milliseconds

123456