Home
last modified time | relevance | path

Searched refs:extents (Results 1 – 25 of 63) sorted by relevance

123

/external/fio/
Dcairo_text_helpers.c13 cairo_text_extents_t extents; in draw_aligned_text() local
33 cairo_text_extents(cr, text, &extents); in draw_aligned_text()
34 x = x + direction * (factor * extents.width + extents.x_bearing); in draw_aligned_text()
35 y = y - (extents.height / 2 + extents.y_bearing); in draw_aligned_text()
66 cairo_text_extents_t extents; in draw_vertical_centered_text() local
71 cairo_text_extents(cr, text, &extents); in draw_vertical_centered_text()
74 y = y + (extents.width / 2.0 + extents.x_bearing); in draw_vertical_centered_text()
75 x = x - (extents.height / 2.0 + extents.y_bearing); in draw_vertical_centered_text()
/external/harfbuzz_ng/src/
Dhb-font-private.hh166 inline hb_bool_t get_font_h_extents (hb_font_extents_t *extents) in get_font_h_extents()
168 memset (extents, 0, sizeof (*extents)); in get_font_h_extents()
170 extents, in get_font_h_extents()
173 inline hb_bool_t get_font_v_extents (hb_font_extents_t *extents) in get_font_v_extents()
175 memset (extents, 0, sizeof (*extents)); in get_font_v_extents()
177 extents, in get_font_v_extents()
252 hb_glyph_extents_t *extents) in get_glyph_extents()
254 memset (extents, 0, sizeof (*extents)); in get_glyph_extents()
257 extents, in get_glyph_extents()
296 hb_font_extents_t *extents) in get_extents_for_direction()
[all …]
Dhb-ot-font.cc170 hb_glyph_extents_t *extents) const in get_extents()
195 extents->x_bearing = MIN (glyph_header.xMin, glyph_header.xMax); in get_extents()
196 extents->y_bearing = MAX (glyph_header.yMin, glyph_header.yMax); in get_extents()
197 extents->width = MAX (glyph_header.xMin, glyph_header.xMax) - extents->x_bearing; in get_extents()
198 extents->height = MIN (glyph_header.yMin, glyph_header.yMax) - extents->y_bearing; in get_extents()
388 hb_glyph_extents_t *extents, in hb_ot_get_glyph_extents() argument
392 bool ret = ot_font->glyf.get_extents (glyph, extents); in hb_ot_get_glyph_extents()
393 extents->x_bearing = font->em_scale_x (extents->x_bearing); in hb_ot_get_glyph_extents()
394 extents->y_bearing = font->em_scale_y (extents->y_bearing); in hb_ot_get_glyph_extents()
395 extents->width = font->em_scale_x (extents->width); in hb_ot_get_glyph_extents()
[all …]
Dhb-buffer-serialize.cc156 hb_glyph_extents_t extents; in _hb_buffer_serialize_glyphs_json() local
157 hb_font_get_glyph_extents(font, info[i].codepoint, &extents); in _hb_buffer_serialize_glyphs_json()
159 extents.x_bearing, extents.y_bearing)); in _hb_buffer_serialize_glyphs_json()
161 extents.width, extents.height)); in _hb_buffer_serialize_glyphs_json()
231 hb_glyph_extents_t extents; in _hb_buffer_serialize_glyphs_text() local
232 hb_font_get_glyph_extents(font, info[i].codepoint, &extents); in _hb_buffer_serialize_glyphs_text()
233 … ARRAY_LENGTH (b) - (p - b), "<%d,%d,%d,%d>", extents.x_bearing, extents.y_bearing, extents.width,… in _hb_buffer_serialize_glyphs_text()
Dhb-ft.cc278 hb_glyph_extents_t *extents, in hb_ft_get_glyph_extents() argument
287 extents->x_bearing = ft_face->glyph->metrics.horiBearingX; in hb_ft_get_glyph_extents()
288 extents->y_bearing = ft_face->glyph->metrics.horiBearingY; in hb_ft_get_glyph_extents()
289 extents->width = ft_face->glyph->metrics.width; in hb_ft_get_glyph_extents()
290 extents->height = -ft_face->glyph->metrics.height; in hb_ft_get_glyph_extents()
293 extents->x_bearing = -extents->x_bearing; in hb_ft_get_glyph_extents()
294 extents->width = -extents->width; in hb_ft_get_glyph_extents()
298 extents->y_bearing = -extents->y_bearing; in hb_ft_get_glyph_extents()
299 extents->height = -extents->height; in hb_ft_get_glyph_extents()
Dhb-font.cc264 hb_glyph_extents_t *extents, in hb_font_get_glyph_extents_nil() argument
267 memset (extents, 0, sizeof (*extents)); in hb_font_get_glyph_extents_nil()
274 hb_glyph_extents_t *extents, in hb_font_get_glyph_extents_parent() argument
277 hb_bool_t ret = font->parent->get_glyph_extents (glyph, extents); in hb_font_get_glyph_extents_parent()
279 font->parent_scale_position (&extents->x_bearing, &extents->y_bearing); in hb_font_get_glyph_extents_parent()
280 font->parent_scale_distance (&extents->width, &extents->height); in hb_font_get_glyph_extents_parent()
605 hb_font_extents_t *extents) in hb_font_get_h_extents() argument
607 return font->get_font_h_extents (extents); in hb_font_get_h_extents()
623 hb_font_extents_t *extents) in hb_font_get_v_extents() argument
625 return font->get_font_v_extents (extents); in hb_font_get_v_extents()
[all …]
Dhb-font.h151 hb_glyph_extents_t *extents,
399 hb_font_extents_t *extents);
402 hb_font_extents_t *extents);
439 hb_glyph_extents_t *extents);
468 hb_font_extents_t *extents);
500 hb_glyph_extents_t *extents);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
DItemLocationBox.java158 …nt itemId, int constructionMethod, int dataReferenceIndex, long baseOffset, List<Extent> extents) { in createItem() argument
159 return new Item(itemId, constructionMethod, dataReferenceIndex, baseOffset, extents); in createItem()
171 public List<Extent> extents = new LinkedList<Extent>(); field in ItemLocationBox.Item
191 extents.add(new Extent(in)); in Item()
195 …nt itemId, int constructionMethod, int dataReferenceIndex, long baseOffset, List<Extent> extents) { in Item() argument
200 this.extents = extents; in Item()
215 for (Extent extent : extents) { in getSize()
237 IsoTypeWriter.writeUInt16(bb, extents.size()); in getContent()
239 for (Extent extent : extents) { in getContent()
255 … if (extents != null ? !extents.equals(item.extents) : item.extents != null) return false; in equals()
[all …]
/external/harfbuzz_ng/util/
Dview-cairo.cc43 hb_font_extents_t extents; in render() local
44 hb_font_get_extents_for_direction (font, direction, &extents); in render()
46 double ascent = y_sign * scalbn ((double) extents.ascender, scale_bits); in render()
47 double descent = y_sign * -scalbn ((double) extents.descender, scale_bits); in render()
48 …double font_height = y_sign * scalbn ((double) extents.ascender - extents.descender + extents.line… in render()
/external/bsdiff/
DMakefile35 extents.o \
63 bspatch.o: bspatch.cc bspatch.h extents.h extents_file.h file_interface.h \
66 extents.o: extents.cc extents.h extents_file.h file_interface.h
70 extents_unittest.o: extents_unittest.cc extents.h extents_file.h \
Dextents.cc93 bool ParseExtentStr(const char* ex_str, std::vector<ex_t>* extents) { in ParseExtentStr() argument
104 extents->resize(ret); in ParseExtentStr()
109 extents_read(ex_str, extents->data(), extents->size()); in ParseExtentStr()
Dextents_file.cc21 const std::vector<ex_t>& extents) in ExtentsFile() argument
22 : file_(std::move(file)), extents_(extents) { in ExtentsFile()
23 acc_len_.reserve(extents.size()); in ExtentsFile()
24 for (const ex_t& extent : extents) { in ExtentsFile()
Dextents_unittest.cc42 std::vector<ex_t> extents; in TEST_F() local
43 EXPECT_FALSE(ParseExtentStr(test_case, &extents)) << "while testing case \"" in TEST_F()
45 EXPECT_EQ(std::vector<ex_t>(), extents); in TEST_F()
Dextents.h19 bool ParseExtentStr(const char* ex_str, std::vector<ex_t>* extents);
/external/harfbuzz_ng/test/api/
Dtest-font.c117 hb_glyph_extents_t extents; in _test_font_nil_funcs() local
128 extents.x_bearing = extents.y_bearing = 13; in _test_font_nil_funcs()
129 extents.width = extents.height = 15; in _test_font_nil_funcs()
130 hb_font_get_glyph_extents (font, 17, &extents); in _test_font_nil_funcs()
131 g_assert_cmpint (extents.x_bearing, ==, 0); in _test_font_nil_funcs()
132 g_assert_cmpint (extents.y_bearing, ==, 0); in _test_font_nil_funcs()
133 g_assert_cmpint (extents.width, ==, 0); in _test_font_nil_funcs()
134 g_assert_cmpint (extents.height, ==, 0); in _test_font_nil_funcs()
/external/e2fsprogs/tests/f_uninit_ext_past_eof2/
Dname1 fallocated extents after nonzero i_size and total extents > 4
/external/e2fsprogs/tests/f_extents2/
Dname1 multiply claimed blocks in extents and other illegal extents
/external/e2fsprogs/tests/f_bad_disconnected_inode/
Dexpect.12 Inode 1 has EXTENTS_FL flag set on filesystem without extents support.
5 Inode 15 has EXTENTS_FL flag set on filesystem without extents support.
8 Inode 16 has EXTENTS_FL flag set on filesystem without extents support.
/external/mesa3d/src/gallium/state_trackers/xorg/
Dxorg_dri2.c361 BoxPtr extents = REGION_EXTENTS(pScreen, pRegion); in dri2_copy_region() local
363 if (extents->x1 == 0 && extents->y1 == 0 && in dri2_copy_region()
364 extents->x2 == pDraw->width && extents->y2 == pDraw->height) { in dri2_copy_region()
/external/vulkan-validation-layers/demos/smoke/
DMeshes.cpp394 float extents[3] = { in get_transform() local
400 float max_extent = extents[0]; in get_transform()
401 if (max_extent < extents[1]) in get_transform()
402 max_extent = extents[1]; in get_transform()
403 if (max_extent < extents[2]) in get_transform()
404 max_extent = extents[2]; in get_transform()
/external/valgrind/docs/internals/
Darm_thumb_notes_gdbserver.txt43 * Thumb bit in extents
46 At least at this moment (r2155/r11786), the extents for ARM/thumb blocks
48 a good thing: extents should preferrably reference the real address range of
85 Also, it would oblige to keep the thumb bit in the extents, which
/external/e2fsprogs/debugfs/
Dro_debug_cmds.ct42 request do_dump_extents, "Dump extents information ",
43 dump_extents, extents, ex;
/external/e2fsprogs/tests/f_extents/
Dname1 basic extents support
/external/e2fsprogs/tests/f_uninit_ext_past_eof/
Dname1 fallocated extents after i_size
/external/e2fsprogs/tests/f_fast_symlink_extents/
Dname1 fast symlink with extents flag set

123