Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  GlyphUtils.h

  Sprache: C
 

/*
 * Copyright 2025 Google LLC
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */


#ifndef sktext_gpu_GlyphUtils_DEFINED
#define sktext_gpu_GlyphUtils_DEFINED

#include "src/core/SkMask.h"
#include "src/gpu/MaskFormat.h"

namespace sktext::gpu {

/**
 * Utility functions for glyph handling shared across backends.
 */


// Convert SkMask::Format to skgpu::MaskFormat
inline skgpu::MaskFormat FormatFromSkGlyph(SkMask::Format format) {
    switch (format) {
        case SkMask::kBW_Format:
        case SkMask::kSDF_Format:
            // fall through to kA8 -- we store BW and SDF glyphs in our 8-bit cache
        case SkMask::kA8_Format:
            return skgpu::MaskFormat::kA8;
        case SkMask::k3D_Format:
            return skgpu::MaskFormat::kA8;  // ignore the mul and add planes, just use the mask
        case SkMask::kLCD16_Format:
            return skgpu::MaskFormat::kA565;
        case SkMask::kARGB32_Format:
            return skgpu::MaskFormat::kARGB;
    }

    SkUNREACHABLE;
}

}  // namespace sktext::gpu

#endif  // sktext_gpu_GlyphUtils_DEFINED

Messung V0.5 in Prozent
C=62 H=100 G=83

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002