Searched refs:metrics (Results 426 - 450 of 707) sorted by path

<<11121314151617181920>>

/external/chromium_org/third_party/skia/src/core/
H A DSkPaint.cpp1251 SkScalar SkPaint::getFontMetrics(FontMetrics* metrics, SkScalar zoom) const { argument
1263 if (NULL == metrics) {
1264 metrics = &storage;
1267 paint.descriptorProc(NULL, zoomPtr, FontMetricsDescProc, metrics, true);
1270 metrics->fTop = SkScalarMul(metrics->fTop, scale);
1271 metrics->fAscent = SkScalarMul(metrics->fAscent, scale);
1272 metrics->fDescent = SkScalarMul(metrics
[all...]
H A DSkPictureRecord.cpp1040 SkPaint::FontMetrics metrics; local
1041 paint.getFontMetrics(&metrics);
1045 bounds.set(0, metrics.fTop, SK_Scalar1, metrics.fBottom);
H A DSkRecordDraw.cpp467 SkPaint::FontMetrics metrics; local
468 paint.getFontMetrics(&metrics);
469 correct.fLeft += metrics.fXMin;
470 correct.fTop += metrics.fTop;
471 correct.fRight += metrics.fXMax;
472 correct.fBottom += metrics.fBottom;
477 metrics.fXMin, metrics.fTop, metrics.fXMax, metrics
[all...]
H A DSkScalerContext.cpp783 virtual void generateFontMetrics(SkPaint::FontMetrics* metrics) SK_OVERRIDE {
784 if (metrics) {
785 sk_bzero(metrics, sizeof(*metrics));
/external/chromium_org/third_party/skia/src/fonts/
H A DSkGScalerContext.cpp140 void SkGScalerContext::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
141 fProxy->getFontMetrics(metrics);
142 if (metrics) {
144 metrics->fTop = SkScalarMul(metrics->fTop, scale);
145 metrics->fAscent = SkScalarMul(metrics->fAscent, scale);
146 metrics->fDescent = SkScalarMul(metrics->fDescent, scale);
147 metrics
[all...]
H A DSkTestScalerContext.cpp124 void SkTestTypeface::getFontMetrics(SkPaint::FontMetrics* metrics) {
125 *metrics = fTestFont->fMetrics;
274 virtual void generateFontMetrics(SkPaint::FontMetrics* metrics) SK_OVERRIDE {
275 fFace->getFontMetrics(metrics);
276 if (metrics) {
278 metrics->fTop = SkScalarMul(metrics->fTop, scale);
279 metrics->fAscent = SkScalarMul(metrics->fAscent, scale);
280 metrics
[all...]
H A DSkTestScalerContext.h65 void getFontMetrics(SkPaint::FontMetrics* metrics);
/external/chromium_org/third_party/skia/src/ports/
H A DSkFontHost_FreeType.cpp1030 // FreeType does no provide linear metrics for bitmap fonts.
1168 vector.x = fFace->glyph->metrics.vertBearingX - fFace->glyph->metrics.horiBearingX;
1169 vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY;
1259 vector.x = fFace->glyph->metrics.vertBearingX - fFace->glyph->metrics.horiBearingX;
1260 vector.y = -fFace->glyph->metrics.vertBearingY - fFace->glyph->metrics.horiBearingY;
1304 // If the font isn't scalable, scale the metrics fro
1380 generateFontMetrics(SkPaint::FontMetrics* metrics) argument
[all...]
H A DSkFontHost_mac.cpp700 * CT vertical metrics are pre-rotated (in em space, before transform) 90deg clock-wise.
701 * This makes kCTFontDefaultOrientation dangerous, because the metrics from
703 * Use fCTVerticalFont with kCTFontVerticalOrientation to get metrics in the same space.
1368 void SkScalerContext_Mac::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
1369 if (NULL == metrics) {
1375 metrics->fTop = CGToScalar(-CGRectGetMaxY_inline(theBounds));
1376 metrics->fAscent = CGToScalar(-CTFontGetAscent(fCTFont));
1377 metrics->fDescent = CGToScalar( CTFontGetDescent(fCTFont));
1378 metrics->fBottom = CGToScalar(-CGRectGetMinY_inline(theBounds));
1379 metrics
[all...]
H A DSkFontHost_win.cpp658 // When GDI hinting, remove the entire Y scale to prevent 'subpixel' metrics.
738 // Create a hires matrix if we need linear metrics.
981 void SkScalerContext_GDI::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
982 if (NULL == metrics) {
985 sk_bzero(metrics, sizeof(*metrics));
992 metrics->fTop = SkIntToScalar(-fTM.tmAscent);
993 metrics->fAscent = SkIntToScalar(-fTM.tmAscent);
994 metrics->fDescent = SkIntToScalar(fTM.tmDescent);
995 metrics
[all...]
H A DSkFontMgr_win_dw.cpp595 NONCLIENTMETRICSW metrics; local
596 metrics.cbSize = sizeof(metrics);
598 sizeof(metrics),
599 &metrics,
603 HRM(this->getByFamilyName(metrics.lfMessageFont.lfFaceName, fontFamily),
H A DSkRemotableFontMgr_win_dw.cpp223 NONCLIENTMETRICSW metrics; local
224 metrics.cbSize = sizeof(metrics);
226 sizeof(metrics),
227 &metrics,
232 size_t len = wcsnlen_s(metrics.lfMessageFont.lfFaceName, LF_FACESIZE) + 1;
233 if (0 != wcsncpy_s(name->reset(len), len, metrics.lfMessageFont.lfFaceName, _TRUNCATE)) {
H A DSkScalerContext_win_dw.cpp254 // If the user requested aliased, do so with aliased compatible metrics.
272 // render high quality rotated glyphs but measure using bitmap metrics.
291 // The normal case is to use natural symmetric rendering and linear metrics.
375 "Could not get gdi compatible glyph metrics.");
378 "Could not get design metrics.");
391 // DirectWrite produced 'compatible' metrics, but while close,
497 void SkScalerContext_DW::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
498 if (NULL == metrics) {
502 sk_bzero(metrics, sizeof(*metrics));
[all...]
H A DSkTypeface_win_dw.cpp128 DWRITE_FONT_METRICS metrics; local
129 fDWriteFontFace->GetMetrics(&metrics);
130 return metrics.designUnitsPerEm;
/external/chromium_org/third_party/skia/src/utils/
H A DSkGatherPixelRefsAndRects.h166 SkPaint::FontMetrics metrics; variable
167 paint.getFontMetrics(&metrics);
175 bounds.fBottom += metrics.fBottom;
176 bounds.fTop += metrics.fTop;
186 bounds.fTop = metrics.fTop;
187 bounds.fBottom = metrics.fBottom;
190 SkScalar pad = (metrics.fBottom - metrics.fTop) / 2;
232 SkPaint::FontMetrics metrics; variable
233 paint.getFontMetrics(&metrics);
254 SkPaint::FontMetrics metrics; variable
[all...]
/external/chromium_org/third_party/skia/src/views/
H A DSkTextBox.cpp180 SkPaint::FontMetrics metrics; local
195 fontHeight = paint.getFontMetrics(&metrics);
222 y += fBox.fTop - metrics.fAscent;
229 if (y + metrics.fDescent + metrics.fLeading > 0)
235 if (y + metrics.fAscent >= fBox.fBottom)
/external/chromium_org/third_party/skia/tools/
H A Dcreate_test_font.cpp336 SkPaint::FontMetrics metrics; local
337 paint.getFontMetrics(&metrics);
340 metricsStr.printf("0x%08x, ", metrics.fFlags);
341 output_scalar(metrics.fTop, emSize, &metricsStr);
342 output_scalar(metrics.fAscent, emSize, &metricsStr);
343 output_scalar(metrics.fDescent, emSize, &metricsStr);
344 output_scalar(metrics.fBottom, emSize, &metricsStr);
345 output_scalar(metrics.fLeading, emSize, &metricsStr);
346 output_scalar(metrics.fAvgCharWidth, emSize, &metricsStr);
347 output_scalar(metrics
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/
H A Decho_cancellation.c471 int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics) { argument
483 if (metrics == NULL) {
495 metrics->erl.instant = (int)erl.instant;
500 metrics->erl.average = (int)dtmp;
502 metrics->erl.average = kOffsetLevel;
505 metrics->erl.max = (int)erl.max;
508 metrics->erl.min = (int)erl.min;
510 metrics->erl.min = kOffsetLevel;
514 metrics->erle.instant = (int)erle.instant;
519 metrics
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_processing/aec/include/
H A Decho_cancellation.h198 * Gets the current echo metrics for the session.
206 * AecMetrics* metrics Struct which will be filled out with the
207 * current echo metrics.
211 int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics);
214 * Gets the current delay metrics for the session.
/external/chromium_org/third_party/webrtc/modules/audio_processing/
H A Decho_cancellation_impl.cc224 // TODO(ajm): we currently just use the metrics from the first AEC. Think more
226 int EchoCancellationImpl::GetMetrics(Metrics* metrics) { argument
228 if (metrics == NULL) {
238 memset(metrics, 0, sizeof(Metrics));
246 metrics->residual_echo_return_loss.instant = my_metrics.rerl.instant;
247 metrics->residual_echo_return_loss.average = my_metrics.rerl.average;
248 metrics->residual_echo_return_loss.maximum = my_metrics.rerl.max;
249 metrics->residual_echo_return_loss.minimum = my_metrics.rerl.min;
251 metrics->echo_return_loss.instant = my_metrics.erl.instant;
252 metrics
[all...]
H A Decho_cancellation_impl.h51 virtual int GetMetrics(Metrics* metrics) OVERRIDE;
/external/chromium_org/third_party/webrtc/modules/audio_processing/include/
H A Daudio_processing.h432 // Enables the computation of various echo metrics. These are obtained
457 // TODO(ajm): discuss the metrics update period.
458 virtual int GetMetrics(Metrics* metrics) = 0;
465 // The delay metrics consists of the delay |median| and the delay standard
639 // An estimation component used to retrieve level metrics.
H A Dmock_audio_processing.h44 int(Metrics* metrics));
/external/chromium_org/third_party/webrtc/modules/audio_processing/test/
H A Daudio_processing_unittest.cc593 // Discard the first delay metrics to avoid convergence effects.
614 // Verify delay metrics.
792 EchoCancellation::Metrics metrics; local
794 apm_->echo_cancellation()->GetMetrics(&metrics));
H A Dprocess_test.cc105 printf("\n Level metrics (enabled by default)\n");
1066 printf("\n--Level metrics--\n");
1070 EchoCancellation::Metrics metrics; local
1071 apm->echo_cancellation()->GetMetrics(&metrics);
1072 printf("\n--Echo metrics--\n");
1075 PrintStat(metrics.echo_return_loss);
1077 PrintStat(metrics.echo_return_loss_enhancement);
1079 PrintStat(metrics.a_nlp);
1085 printf("\n--Delay metrics--\n");

Completed in 1724 milliseconds

<<11121314151617181920>>