Home
last modified time | relevance | path

Searched refs:margin (Results 1 - 25 of 102) sorted by relevance

12345

/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_pdftopdf_processor.cc131 double margin=2.25*fscale; in add_border_rect() local
132 // (PageLeft+margin,PageBottom+margin) rect (PageRight-PageLeft-2*margin,...) ... for nup>1: PageLeft=0,etc. in add_border_rect()
133 // if (double) margin+=2*fscale ...rect... in add_border_rect()
142 boxcmd+=" "+QUtil::double_to_string(rect.left+margin)+" "+QUtil::double_to_string(rect.bottom+margin)+" "+ in add_border_rect()
143 QUtil::double_to_string(rect.right-rect.left-2*margin)+" "+QUtil::double_to_string(rect.top-rect.bottom-2*margin)+" re S \n"; in add_border_rect()
145 margin in add_border_rect()
376 double margin = 2.25; add_label() local
[all...]
/third_party/python/Lib/
H A Dtextwrap.py434 margin = None
438 if margin is None:
439 margin = indent
443 elif indent.startswith(margin):
448 elif margin.startswith(indent):
449 margin = indent
454 for i, (x, y) in enumerate(zip(margin, indent)):
456 margin = margin[:i]
460 if 0 and margin
[all...]
/third_party/libsnd/tests/
H A Dlossy_comp_test.c49 static void lcomp_test_short (const char *filename, int filetype, int chan, double margin) ;
50 static void lcomp_test_int (const char *filename, int filetype, int chan, double margin) ;
51 static void lcomp_test_float (const char *filename, int filetype, int chan, double margin) ;
52 static void lcomp_test_double (const char *filename, int filetype, int chan, double margin) ;
54 static void sdlcomp_test_short (const char *filename, int filetype, int chan, double margin) ;
55 static void sdlcomp_test_int (const char *filename, int filetype, int chan, double margin) ;
56 static void sdlcomp_test_float (const char *filename, int filetype, int chan, double margin) ;
57 static void sdlcomp_test_double (const char *filename, int filetype, int chan, double margin) ;
61 static int error_function (double data, double orig, double margin) ;
649 lcomp_test_short (const char *filename, int filetype, int channels, double margin) in lcomp_test_short() argument
836 lcomp_test_int(const char *filename, int filetype, int channels, double margin) lcomp_test_int() argument
1034 lcomp_test_float(const char *filename, int filetype, int channels, double margin) lcomp_test_float() argument
1229 lcomp_test_double(const char *filename, int filetype, int channels, double margin) lcomp_test_double() argument
1425 sdlcomp_test_short(const char *filename, int filetype, int channels, double margin) sdlcomp_test_short() argument
1645 sdlcomp_test_int(const char *filename, int filetype, int channels, double margin) sdlcomp_test_int() argument
1869 sdlcomp_test_float(const char *filename, int filetype, int channels, double margin) sdlcomp_test_float() argument
2116 sdlcomp_test_double(const char *filename, int filetype, int channels, double margin) sdlcomp_test_double() argument
2484 error_function(double data, double orig, double margin) error_function() argument
[all...]
H A Dfix_this.c43 static void lcomp_test_int (const char *str, const char *filename, int filetype, double margin) ;
45 static int error_function (double data, double orig, double margin) ;
76 lcomp_test_int (const char *str, const char *filename, int filetype, double margin) in lcomp_test_int() argument
158 { if (error_function (data [k] / scale, orig [k] / scale, margin)) in lcomp_test_int()
207 if (error_function (data [k] / scale, orig [k + m * 11] / scale, margin)) in lcomp_test_int()
229 if (error_function ((double) data [0], (double) orig [seekpos], margin)) in lcomp_test_int()
242 if (error_function ((double) data [0], (double) orig [seekpos], margin) || k != seekpos) in lcomp_test_int()
251 if (error_function ((double) data [0], (double) orig [seekpos], margin) || k != seekpos) in lcomp_test_int()
271 if (error_function (data [0] / scale, orig [5] / scale, margin)) in lcomp_test_int()
318 error_function (double data, double orig, double margin) in error_function() argument
[all...]
/third_party/skia/gm/
H A Dimagefiltersclipped.cpp120 SkScalar margin = SkIntToScalar(16); variable
122 bounds.outset(margin, margin);
130 canvas->translate(r.width() + margin, 0);
133 canvas->translate(0, r.height() + margin);
139 canvas->translate(SK_ARRAY_COUNT(filters)*(r.width() + margin), 0);
143 canvas->translate(0, r.height() + margin);
H A Dmatriximagefilter.cpp50 SkScalar margin = SkIntToScalar(10); in DEF_SIMPLE_GM_BG() local
57 canvas->translate(margin, margin); in DEF_SIMPLE_GM_BG()
60 canvas->translate(srcRect.width() + margin, 0); in DEF_SIMPLE_GM_BG()
H A Dimagefiltersscaled.cpp122 SkScalar margin = SkIntToScalar(16); variable
124 bounds.outset(margin, margin);
144 canvas->translate(r.width() * scales[j].fX + margin, 0);
147 canvas->translate(0, r.height() * scales[j].fY + margin);
H A Dimagefiltersstroked.cpp74 SkScalar margin = 32; variable
82 canvas->translate(0, margin);
85 canvas->translate(margin, 0);
96 canvas->translate(r.width() + margin, 0);
H A Dclippedbitmapshaders.cpp98 SkScalar margin = (SLIDE_SIZE / 3 - RECT_SIZE) / 2; variable
100 SkScalar yOrigin = SLIDE_SIZE / 3 * i + margin;
102 SkScalar xOrigin = SLIDE_SIZE / 3 * j + margin;
H A Dtexteffects.cpp178 // widen the gaps with a margin (on each side of the gap), elimnating segments that go away
179 static int trim_with_halo(SkScalar intervals[], int count, SkScalar margin) { in trim_with_halo() argument
184 *intervals++ -= margin; in trim_with_halo()
186 intervals[0] += margin; in trim_with_halo()
187 intervals[1] -= margin; in trim_with_halo()
200 *intervals += margin; in trim_with_halo()
/third_party/ffmpeg/libavfilter/
H A Dvf_tile.c38 unsigned margin; member
59 { "margin", "set outer border margin in pixels", OFFSET(margin),
84 if ((tile->w - 1 > (UINT32_MAX - 2 * tile->margin) / tile->padding) || in init()
85 (tile->h - 1 > (UINT32_MAX - 2 * tile->margin) / tile->padding)) { in init()
86 av_log(ctx, AV_LOG_ERROR, "Combination of Tile size %ux%u, padding %d and margin %d overflows.\n", in init()
87 tile->w, tile->h, tile->padding, tile->margin); in init()
124 const unsigned total_margin_w = (tile->w - 1) * tile->padding + 2*tile->margin; in config_props()
125 const unsigned total_margin_h = (tile->h - 1) * tile->padding + 2*tile->margin; in config_props()
[all...]
/third_party/skia/src/core/
H A DSkBlurMask.h19 SkBlurStyle, SkIPoint *margin = nullptr,
23 SkBlurStyle, SkIPoint *margin = nullptr,
28 // is very small -- this can be used predict the margin bump ahead of time without completely
34 // * calculate margin - if src.fImage is null, then this call only calculates the border.
40 SkIPoint* margin = nullptr);
46 SkBlurStyle, SkIPoint* margin = nullptr);
H A DSkBlurMask.cpp106 SkIPoint* margin) { in BoxBlur()
124 if (margin != nullptr) { in BoxBlur()
126 // The margin is actually {-(src.fBounds.width() / 2), -(src.fBounds.height() / 2)} in BoxBlur()
128 *margin = SkIPoint{0,0}; in BoxBlur()
140 if (margin != nullptr) { in BoxBlur()
141 *margin = border; in BoxBlur()
397 SkIPoint *margin, SkMask::CreateMode createMode) { in BlurRect()
404 if (margin) { in BlurRect()
405 margin->set( pad, pad ); in BlurRect()
495 SkIPoint *margin, SkMas in BlurRRect()
105 BoxBlur(SkMask* dst, const SkMask& src, SkScalar sigma, SkBlurStyle style, SkIPoint* margin) BoxBlur() argument
395 BlurRect(SkScalar sigma, SkMask *dst, const SkRect &src, SkBlurStyle style, SkIPoint *margin, SkMask::CreateMode createMode) BlurRect() argument
493 BlurRRect(SkScalar sigma, SkMask *dst, const SkRRect &src, SkBlurStyle style, SkIPoint *margin, SkMask::CreateMode createMode) BlurRRect() argument
506 BlurGroundTruth(SkScalar sigma, SkMask* dst, const SkMask& src, SkBlurStyle style, SkIPoint* margin) BlurGroundTruth() argument
[all...]
H A DSkBlurMF.cpp55 SkIPoint* margin) const override;
98 SkIPoint* margin, SkMask::CreateMode createMode) const;
100 SkIPoint* margin, SkMask::CreateMode createMode) const;
159 SkIPoint* margin) const { in filterMask()
161 return SkBlurMask::BoxBlur(dst, src, sigma, fBlurStyle, margin); in filterMask()
166 SkIPoint* margin, SkMask::CreateMode createMode) const { in filterRectMask()
169 return SkBlurMask::BlurRect(sigma, dst, r, fBlurStyle, margin, createMode); in filterRectMask()
174 SkIPoint* margin, SkMask::CreateMode createMode) const { in filterRRectMask()
177 return SkBlurMask::BlurRRect(sigma, dst, r, fBlurStyle, margin, createMode); in filterRRectMask()
334 SkIPoint margin; in filterRRectToNine() local
164 filterRectMask(SkMask* dst, const SkRect& r, const SkMatrix& matrix, SkIPoint* margin, SkMask::CreateMode createMode) const filterRectMask() argument
172 filterRRectMask(SkMask* dst, const SkRRect& r, const SkMatrix& matrix, SkIPoint* margin, SkMask::CreateMode createMode) const filterRRectMask() argument
453 SkIPoint margin; filterRectsToNine() local
[all...]
/third_party/libsnd/src/G72x/
H A Dg72x_test.c43 static void g723_test (double margin) ;
46 static int error_function (double data, double orig, double margin) ;
93 g723_test (double margin) in g723_test() argument
136 { if (error_function (data [k], orig [k], margin)) in g723_test()
174 error_function (double data, double orig, double margin) in error_function() argument
184 if (error > margin) in error_function()
/third_party/protobuf/src/google/protobuf/util/
H A Dfield_comparator.h136 // Sets the fraction and margin for the float comparison of a given field.
143 double margin);
145 // Sets the fraction and margin for the float comparison of all float and
151 void SetDefaultFractionAndMargin(double fraction, double margin);
162 // Defines the tolerance for floating point comparison (fraction and margin).
165 double margin; member
166 Tolerance() : fraction(0.0), margin(0.0) {} in Tolerance()
167 Tolerance(double f, double m) : fraction(f), margin(m) {} in Tolerance()
H A Dfield_comparator.cc139 double margin) { in SetDefaultFractionAndMargin()
140 default_tolerance_ = Tolerance(fraction, margin); in SetDefaultFractionAndMargin()
146 double margin) { in SetFractionAndMargin()
151 map_tolerance_[field] = Tolerance(fraction, margin); in SetFractionAndMargin()
174 // Covers +inf and -inf (which are not within margin or fraction of in CompareDoubleOrFloat()
194 // Use user-provided fraction and margin. Since they are stored as in CompareDoubleOrFloat()
199 static_cast<T>(tolerance->margin)); in CompareDoubleOrFloat()
138 SetDefaultFractionAndMargin(double fraction, double margin) SetDefaultFractionAndMargin() argument
144 SetFractionAndMargin(const FieldDescriptor* field, double fraction, double margin) SetFractionAndMargin() argument
/third_party/skia/third_party/externals/harfbuzz/util/
H A Dview-cairo.hh143 cairo_t *cr = helper_cairo_create_context (w + margin.l + margin.r, in render()
144 h + margin.t + margin.b, in render()
151 cairo_translate (cr, margin.l, margin.t); in render()
/third_party/python/Python/
H A Dtraceback.c402 /* Writes indent spaces, followed by the margin if it is not `\0`.
406 _Py_WriteIndentedMargin(int indent, const char *margin, PyObject *f) in _Py_WriteIndentedMargin() argument
411 if (margin) { in _Py_WriteIndentedMargin()
412 if (PyFile_WriteString(margin, f) < 0) { in _Py_WriteIndentedMargin()
421 int margin_indent, const char *margin, in display_source_line_with_margin()
552 if (_Py_WriteIndentedMargin(margin_indent, margin, f) < 0) { in display_source_line_with_margin()
762 PyFrameObject *frame, PyObject *name, int margin_indent, const char *margin) in tb_displayline()
768 if (_Py_WriteIndentedMargin(margin_indent, margin, f) < 0) { in tb_displayline()
790 margin_indent, margin, &truncation, &source_line); in tb_displayline()
887 if (_Py_WriteIndentedMargin(margin_indent, margin, in tb_displayline()
420 display_source_line_with_margin(PyObject *f, PyObject *filename, int lineno, int indent, int margin_indent, const char *margin, int *truncation, PyObject **line) display_source_line_with_margin() argument
761 tb_displayline(PyTracebackObject* tb, PyObject *f, PyObject *filename, int lineno, PyFrameObject *frame, PyObject *name, int margin_indent, const char *margin) tb_displayline() argument
924 tb_printinternal(PyTracebackObject *tb, PyObject *f, long limit, int indent, const char *margin) tb_printinternal() argument
986 _PyTraceBack_Print_Indented(PyObject *v, int indent, const char *margin, const char *header_margin, const char *header, PyObject *f) _PyTraceBack_Print_Indented() argument
1029 const char *margin = NULL; PyTraceBack_Print() local
[all...]
/third_party/skia/src/effects/
H A DSkShaderMaskFilter.cpp23 SkIPoint* margin) const override;
68 SkIPoint* margin) const { in filterMask()
73 if (margin) { in filterMask()
74 margin->set(0, 0); in filterMask()
/third_party/skia/src/gpu/text/
H A DGrSDFMaskFilter.cpp25 SkIPoint* margin) const override;
47 const SkMatrix& matrix, SkIPoint* margin) const { in filterMask()
57 if (margin) { in filterMask()
58 margin->set(SK_DistanceFieldPad, SK_DistanceFieldPad); in filterMask()
/third_party/protobuf/src/google/protobuf/stubs/
H A Dmathutil.h126 // fraction of their magnitude or within a certain absolute margin of error.
128 // WithinFraction(x, y, fraction) || WithinMargin(x, y, margin)
133 const T fraction, const T margin);
138 const T fraction, const T margin) { in WithinFractionOrMargin()
142 margin >= T(0)); in WithinFractionOrMargin()
155 return AbsDiff(x, y) <= Max(margin, relative_margin); in WithinFractionOrMargin()
137 WithinFractionOrMargin(const T x, const T y, const T fraction, const T margin) WithinFractionOrMargin() argument
/third_party/ltp/testcases/kernel/syscalls/setitimer/
H A Dsetitimer01.c63 long margin; in verify_setitimer() local
97 margin = tc->which == ITIMER_REAL ? 0 : time_step; in verify_setitimer()
101 ovalue->it_value.tv_usec > time_usec + margin) in verify_setitimer()
/third_party/skia/samplecode/
H A DSampleTextBox.cpp53 SkScalar margin = 20; in drawTest() local
60 SkTextBlobBuilderRunHandler builder(gText, { margin, margin }); in drawTest()
94 fShaper->shape(utf8, utf8Bytes, *font, *bidi, *script, *language, w - margin, &builder); in drawTest()
/third_party/lzma/CPP/Windows/Control/
H A DDialog.cpp178 bool CDialog::GetMargins(int margin, int &x, int &y) in GetMargins() argument
180 x = margin; in GetMargins()
181 y = margin; in GetMargins()
185 rect.right = margin; in GetMargins()
186 rect.bottom = margin; in GetMargins()

Completed in 15 milliseconds

12345