Flutter Engine
The Flutter Engine
|
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkFont.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkFontTypes.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageGenerator.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkPixmap.h"
#include "include/core/SkPoint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkTypeface.h"
#include "include/core/SkTypes.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrRecordingContext.h"
#include "include/gpu/GrTypes.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "include/private/base/SkTPin.h"
#include "include/private/base/SkTemplates.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "include/utils/SkTextUtils.h"
#include "src/base/SkHalf.h"
#include "src/core/SkConvertPixels.h"
#include "src/core/SkYUVMath.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrRecordingContextPriv.h"
#include "tools/DecodeUtils.h"
#include "tools/ToolUtils.h"
#include "tools/fonts/FontToolUtils.h"
#include "tools/gpu/YUVUtils.h"
#include <math.h>
#include <string.h>
#include <initializer_list>
#include <memory>
#include <utility>
#include <vector>
#include "include/effects/SkColorMatrix.h"
#include "src/core/SkAutoPixmapStorage.h"
#include "tools/Resources.h"
Go to the source code of this file.
Classes | |
class | YUVAPlanarConfig |
struct | PlaneData |
class | skiagm::WackyYUVFormatsGM |
class | skiagm::YUVMakeColorSpaceGM |
class | YUVSplitterGM |
Namespaces | |
namespace | skiagm |
Typedefs | |
using | Recorder = skgpu::graphite::Recorder |
Enumerations | |
enum | YUVFormat { kP016_YUVFormat , kP010_YUVFormat , kP016F_YUVFormat , kY416_YUVFormat , kAYUV_YUVFormat , kY410_YUVFormat , kNV12_YUVFormat , kNV21_YUVFormat , kI420_YUVFormat , kYV12_YUVFormat , kLast_YUVFormat = kYV12_YUVFormat } |
Functions | |
static bool | has_alpha_channel (YUVFormat format) |
static void | add_arc (SkPath *path, const SkPoint &o1, const SkVector &v1, const SkPoint &o2, const SkVector &v2, SkTDArray< SkRect > *circles, bool takeLongWayRound) |
static SkPath | create_splat (const SkPoint &o, SkScalar innerRadius, SkScalar outerRadius, SkScalar ratio, int numLobes, SkTDArray< SkRect > *circles) |
static SkBitmap | make_bitmap (SkColorType colorType, const SkPath &path, const SkTDArray< SkRect > &circles, bool opaque, bool padWithRed) |
static void | convert_rgba_to_yuva (const float mtx[20], SkColor col, uint8_t yuv[4]) |
static void | extract_planes (const SkBitmap &origBM, SkYUVColorSpace yuvColorSpace, SkEncodedOrigin origin, PlaneData *planes) |
static SkBitmap | make_quarter_2_channel (const SkBitmap &fullY, const SkBitmap &quarterU, const SkBitmap &quarterV, bool uv) |
static SkBitmap | make_16 (const SkBitmap &src, SkColorType dstCT, std::function< void(uint16_t *dstPixel, const float *srcPixel)> convert) |
static uint16_t | flt_2_uint16 (float flt) |
static int | create_YUV (const PlaneData &planes, YUVFormat yuvFormat, SkBitmap resultBMs[], bool opaque) |
static void | draw_col_label (SkCanvas *canvas, int x, int yuvColorSpace, bool opaque) |
static void | draw_row_label (SkCanvas *canvas, int y, int yuvFormat) |
static sk_sp< SkColorFilter > | yuv_to_rgb_colorfilter () |
skiagm::DEF_GM (return new WackyYUVFormatsGM(false, false, false, WackyYUVFormatsGM::Type::kFromTextures);) DEF_GM(return new WackyYUVFormatsGM(false | |
skiagm::DEF_GM (return new WackyYUVFormatsGM(true, false, false, WackyYUVFormatsGM::Type::kFromTextures);) DEF_GM(return new WackyYUVFormatsGM(false | |
skiagm::DEF_GM (return new WackyYUVFormatsGM(false, false, false, WackyYUVFormatsGM::Type::kFromGenerator);) DEF_GM(return new WackyYUVFormatsGM(false | |
static void | draw_diff (SkCanvas *canvas, SkScalar x, SkScalar y, const SkImage *a, const SkImage *b) |
Variables | |
static const int | kTileWidthHeight = 128 |
static const int | kLabelWidth = 64 |
static const int | kLabelHeight = 32 |
static const int | kSubsetPadding = 8 |
static const int | kPad = 1 |
const SkYUVColorSpace | color_space_array [] |
skiagm::true | |
skiagm::false | |
using Recorder = skgpu::graphite::Recorder |
Definition at line 68 of file wacky_yuv_formats.cpp.
enum YUVFormat |
Enumerator | |
---|---|
kP016_YUVFormat | |
kP010_YUVFormat | |
kP016F_YUVFormat | |
kY416_YUVFormat | |
kAYUV_YUVFormat | |
kY410_YUVFormat | |
kNV12_YUVFormat | |
kNV21_YUVFormat | |
kI420_YUVFormat | |
kYV12_YUVFormat | |
kLast_YUVFormat |
Definition at line 70 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 248 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 397 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 290 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 566 of file wacky_yuv_formats.cpp.
Definition at line 712 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 1227 of file wacky_yuv_formats.cpp.
Definition at line 741 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 408 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 563 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 102 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 543 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 347 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 515 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 761 of file wacky_yuv_formats.cpp.
const SkYUVColorSpace color_space_array[] |
Definition at line 225 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 64 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 63 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 66 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 65 of file wacky_yuv_formats.cpp.
|
static |
Definition at line 62 of file wacky_yuv_formats.cpp.