gfx/skia/trunk/src/core/SkDistanceFieldGen.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 /*
     2  * Copyright 2014 Google Inc.
     3  *
     4  * Use of this source code is governed by a BSD-style license that can be
     5  * found in the LICENSE file.
     6  */
     7 #ifndef SkDistanceFieldGen_DEFINED
     8 #define SkDistanceFieldGen_DEFINED
    10 /** Given 8-bit mask data, generate the associated distance field
    12  *  @param distanceField     The distance field to be generated. Should already be allocated
    13  *                           by the client with the padding below.
    14  *  @param image             8-bit mask we're using to generate the distance field.
    15  *  @param w                 Width of the image.
    16  *  @param h                 Height of the image.
    17  *  @param distanceMagnitude Largest possible absolute value for the distance. The distance field
    18  *                           will be padded to w + 2*distanceMagnitude, h + 2*distanceMagnitude.
    19  */
    20 bool SkGenerateDistanceFieldFromImage(unsigned char* distanceField,
    21                                       const unsigned char* image,
    22                                       int w, int h,
    23                                       int distanceMagnitude);
    25 #endif

mercurial