Home
last modified time | relevance | path

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

123

/external/tensorflow/tensorflow/contrib/slim/python/slim/data/
Dtfexample_decoder_test.py66 def _Encoder(self, image, image_format): argument
67 assert image_format in ['jpeg', 'JPEG', 'png', 'PNG', 'raw', 'RAW']
68 if image_format in ['jpeg', 'JPEG']:
71 if image_format in ['png', 'PNG']:
74 if image_format in ['raw', 'RAW']:
77 def GenerateImage(self, image_format, image_shape, image_dtype=np.uint8): argument
92 assert image_format in ['raw', 'RAW'] or image_dtype == np.uint8
97 tf_encoded = self._Encoder(image, image_format)
102 'image/format': self._StringFeature(image_format)
107 def DecodeExample(self, serialized_example, item_handler, image_format): argument
[all …]
Dtest_utils.py52 def _encoder(image, image_format): argument
53 assert image_format in ['jpeg', 'png']
54 if image_format == 'jpeg':
57 if image_format == 'png':
62 def generate_image(image_shape, image_format='jpeg', label=0): argument
79 tf_encoded = _encoder(image, image_format)
82 'image/format': _string_feature(image_format),
Dtfexample_decoder.py396 image_format = keys_to_tensors[self._format_key]
399 return map_fn.map_fn(lambda x: self._decode(x, image_format),
402 return self._decode(image_buffer, image_format)
404 def _decode(self, image_buffer, image_format): argument
448 math_ops.equal(image_format, 'raw'),
449 math_ops.equal(image_format, 'RAW')): decode_raw,
/external/sfntly/cpp/src/sfntly/table/bitmap/
Dindex_sub_table.cc42 image_format()); in GlyphInfo()
114 image_format()); in GlyphInfo()
222 int32_t image_format, in Builder() argument
229 image_format_(image_format), in Builder()
263 image_format()); in SerializeIndexSubHeader()
Dindex_sub_table.h51 int32_t image_format() { return image_format_; } in image_format() function
102 int32_t image_format,
134 int32_t image_format() { return image_format_; } in image_format() function
Dbitmap_size_table.cc116 return subtable->image_format(); in GlyphFormat()
359 return subtable->image_format(); in GlyphFormat()
/external/harfbuzz_ng/src/
Dhb-ot-color-cbdt-table.hh411 unsigned int image_offset = 0, image_length = 0, image_format = 0; in get_extents() local
412 … if (!subtable_record->get_image_data (glyph, base, &image_offset, &image_length, &image_format)) in get_extents()
420 switch (image_format) in get_extents()
464 unsigned int image_offset = 0, image_length = 0, image_format = 0; in reference_png() local
465 … if (!subtable_record->get_image_data (glyph, base, &image_offset, &image_length, &image_format)) in reference_png()
473 switch (image_format) in reference_png()
/external/mesa3d/src/mesa/main/
Dformatquery.c1365 mesa_format image_format; in _mesa_GetInternalformativ() local
1371 image_format = _mesa_get_shader_image_format(internalformat); in _mesa_GetInternalformativ()
1372 if (image_format == MESA_FORMAT_NONE) in _mesa_GetInternalformativ()
1376 buffer[0] = (_mesa_get_format_bytes(image_format) * 8); in _mesa_GetInternalformativ()
1408 mesa_format image_format; in _mesa_GetInternalformativ() local
1416 image_format = _mesa_get_shader_image_format(internalformat); in _mesa_GetInternalformativ()
1417 if (image_format == MESA_FORMAT_NONE) in _mesa_GetInternalformativ()
1420 _mesa_uncompressed_format_to_type_and_comps(image_format, &datatype, in _mesa_GetInternalformativ()
/external/mesa3d/src/compiler/glsl/
Dir_print_visitor.cpp191 char image_format[32] = {0}; in visit() local
192 if (ir->data.image_format) { in visit()
193 snprintf(image_format, sizeof(image_format), "format=%x ", in visit()
194 ir->data.image_format); in visit()
219 image_format, memory_read_only, memory_write_only, in visit()
Dopt_structure_splitting.cpp360 new_var->data.image_format = in do_structure_splitting()
361 type->fields.structure[i].image_format; in do_structure_splitting()
Dopt_array_splitting.cpp486 new_var->data.image_format = entry->var->data.image_format; in optimize_split_arrays()
/external/autotest/client/cros/chameleon/
Dchameleon_video_capturer.py124 def write_images(self, frame_indices, dest_dir, image_format): argument
140 path = os.path.join(dest_dir, str(i) + '.' + image_format)
/external/libxcam/capi/
Dcontext_priv.cpp92 uint32_t image_format = V4L2_PIX_FMT_NV12; in set_parameters() local
109 buf_info.init (image_format, _image_width, _image_height); in set_parameters()
/external/mesa3d/src/compiler/
Dglsl_types.h1009 unsigned image_format:16; member
1026 memory_restrict(0), image_format(0), explicit_xfb_buffer(0), in glsl_struct_field()
1038 memory_restrict(0), image_format(0), explicit_xfb_buffer(0), in glsl_struct_field()
/external/mesa3d/src/gallium/state_trackers/dri/
Ddri2.c462 unsigned int image_format = __DRI_IMAGE_FORMAT_NONE; in dri_image_drawable_get_buffers() local
485 image_format = __DRI_IMAGE_FORMAT_RGB565; in dri_image_drawable_get_buffers()
488 image_format = __DRI_IMAGE_FORMAT_XRGB8888; in dri_image_drawable_get_buffers()
491 image_format = __DRI_IMAGE_FORMAT_ARGB8888; in dri_image_drawable_get_buffers()
494 image_format = __DRI_IMAGE_FORMAT_XBGR8888; in dri_image_drawable_get_buffers()
497 image_format = __DRI_IMAGE_FORMAT_ABGR8888; in dri_image_drawable_get_buffers()
500 image_format = __DRI_IMAGE_FORMAT_XRGB2101010; in dri_image_drawable_get_buffers()
503 image_format = __DRI_IMAGE_FORMAT_ARGB2101010; in dri_image_drawable_get_buffers()
506 image_format = __DRI_IMAGE_FORMAT_NONE; in dri_image_drawable_get_buffers()
511 return (*sPriv->image.loader->getBuffers) (dPriv, image_format, in dri_image_drawable_get_buffers()
/external/mesa3d/include/CL/
Dcl_ext.h272 const cl_image_format *image_format,
/external/mesa3d/src/mesa/drivers/dri/common/
Ddri_util.h316 driImageFormatToGLFormat(uint32_t image_format);
Ddri_util.c909 driImageFormatToGLFormat(uint32_t image_format) in driImageFormatToGLFormat() argument
911 switch (image_format) { in driImageFormatToGLFormat()
/external/mesa3d/src/gallium/state_trackers/clover/core/
Dmodule.hpp79 image_format enumerator
Dkernel.cpp205 case module::argument::image_format: { in bind()
208 std::vector<cl_uint> image_format{ in bind() local
211 for (auto x : image_format) { in bind()
/external/mesa3d/src/mesa/state_tracker/
Dst_glsl_to_tgsi_private.h133 enum pipe_format image_format:10;
/external/mesa3d/src/gallium/state_trackers/clover/api/
Ddispatch.hpp128 const cl_image_format *image_format,
138 const cl_image_format *image_format,
659 const cl_image_format *image_format,
/external/freetype/src/sfnt/
Dttsbit.c1265 FT_UInt start, end, index_format, image_format; in tt_sbit_decoder_load_image() local
1306 image_format = FT_NEXT_USHORT( p ); in tt_sbit_decoder_load_image()
1437 image_format, glyph_index )); in tt_sbit_decoder_load_image()
1440 image_format, in tt_sbit_decoder_load_image()
/external/mesa3d/src/gallium/state_trackers/clover/llvm/codegen/
Dcommon.cpp118 module::argument::image_format); in make_kernel_args()
/external/libaom/libaom/test/
Dresize_test.cc605 explicit ResizingCspVideoSource(aom_img_fmt_t image_format) { in ResizingCspVideoSource() argument
607 SetImageFormat(image_format); in ResizingCspVideoSource()

123