Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions | Variables
asyncrescaleandread.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/core/SkSurface.h"
#include "include/core/SkYUVAInfo.h"
#include "include/core/SkYUVAPixmaps.h"
#include "include/effects/SkGradientShader.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrRecordingContext.h"
#include "include/gpu/ganesh/SkImageGanesh.h"
#include "src/base/SkScopeExit.h"
#include "src/core/SkAutoPixmapStorage.h"
#include "tools/DecodeUtils.h"
#include "tools/Resources.h"
#include "tools/ToolUtils.h"
#include "tools/gpu/YUVUtils.h"
#include <variant>

Go to the source code of this file.

Namespaces

namespace  Type
 
namespace  Type::kRGBA
 

Macros

#define DEF_RESCALE_AND_READ_GRID_GM(IMAGE_FILE, TAG, SRC_RECT, W, H, SOURCE, TYPE)
 

Functions

 DEF_RESCALE_AND_READ_GRID_GM (images/yellow_rose.webp, yuv420_rose, SkIRect::MakeXYWH(50, 5, 200, 150), 410, 376, ReadSource::kSurface, Type::kYUVA) DEF_RESCALE_AND_READ_GRID_GM(images/yellow_rose.webp
 
Type::kYUV DEF_RESCALE_AND_READ_GRID_GM (images/yellow_rose.webp, rose, SkIRect::MakeXYWH(100, 20, 100, 100), 410, 410, ReadSource::kSurface, Type::kRGBA) DEF_RESCALE_AND_READ_GRID_GM(images/dog.jpg
 
Type::kYUV Type::kRGBA DEF_RESCALE_AND_READ_GRID_GM (images/dog.jpg, dog_up, SkIRect::MakeWH(180, 180), 800, 400, ReadSource::kImage, Type::kRGBA) DEF_RESCALE_AND_READ_GRID_GM(images/text.png
 
Type::kYUV Type::kRGBA() int (0.7 *637)
 
Type::kYUV Type::kRGBA()() Type::kRGBA DEF_RESCALE_AND_READ_GRID_GM (images/text.png, text_up, SkIRect::MakeWH(637, 105),(int)(1.2 *637),(int)(1.2 *105), ReadSource::kSurface, Type::kRGBA) DEF_RESCALE_AND_READ_GRID_GM(images/text.png
 
Type::kYUV Type::kRGBA()() Type::kRGBA() int (2.4 *300)
 

Variables

 yuv420_rose_down
 
Type::kYUV dog_down
 
Type::kYUV Type::kRGBA text_down
 
Type::kYUV Type::kRGBA()() Type::kRGBA text_up_large
 

Macro Definition Documentation

◆ DEF_RESCALE_AND_READ_GRID_GM

#define DEF_RESCALE_AND_READ_GRID_GM (   IMAGE_FILE,
  TAG,
  SRC_RECT,
  W,
  H,
  SOURCE,
  TYPE 
)
Value:
DEF_GM(return new (AsyncRescaleAndReadGridGM<SOURCE, TYPE>)( \
"async_rescale_and_read_" #TAG, #IMAGE_FILE, SRC_RECT, SkISize{W, H});)
#define W
Definition aaa.cpp:17
#define DEF_GM(CODE)
Definition gm.h:40
#define TAG()
Definition SkMD5.cpp:130

Definition at line 462 of file asyncrescaleandread.cpp.

464 {W, H});)

Function Documentation

◆ DEF_RESCALE_AND_READ_GRID_GM() [1/4]

Type::kYUV Type::kRGBA DEF_RESCALE_AND_READ_GRID_GM ( images/dog.  jpg,
dog_up  ,
SkIRect::MakeWH(180, 180)  ,
800  ,
400  ,
ReadSource::kImage  ,
Type::kRGBA   
)

◆ DEF_RESCALE_AND_READ_GRID_GM() [2/4]

Type::kYUV Type::kRGBA()() Type::kRGBA DEF_RESCALE_AND_READ_GRID_GM ( images/text.  png,
text_up  ,
SkIRect::MakeWH(637, 105)  ,
(int)(1.2 *637)  ,
(int)(1.2 *105)  ,
ReadSource::kSurface  ,
Type::kRGBA   
)

◆ DEF_RESCALE_AND_READ_GRID_GM() [3/4]

Type::kYUV DEF_RESCALE_AND_READ_GRID_GM ( images/yellow_rose.  webp,
rose  ,
SkIRect::MakeXYWH(100, 20, 100, 100)  ,
410  ,
410  ,
ReadSource::kSurface  ,
Type::kRGBA   
)

◆ DEF_RESCALE_AND_READ_GRID_GM() [4/4]

DEF_RESCALE_AND_READ_GRID_GM ( images/yellow_rose.  webp,
yuv420_rose  ,
SkIRect::MakeXYWH(50, 5, 200, 150)  ,
410  ,
376  ,
ReadSource::kSurface  ,
Type::kYUVA   
)

◆ int() [1/2]

Type::kYUV Type::kRGBA() int ( 0.7 *  637)

◆ int() [2/2]

Type::kYUV Type::kRGBA()() Type::kRGBA() int ( 2.4 *  300)

Variable Documentation

◆ dog_down

Type::kYUV dog_down

Definition at line 491 of file asyncrescaleandread.cpp.

◆ text_down

Type::kYUV Type::kRGBA text_down

Definition at line 507 of file asyncrescaleandread.cpp.

◆ text_up_large

Type::kYUV Type::kRGBA()() Type::kRGBA text_up_large

Definition at line 523 of file asyncrescaleandread.cpp.

◆ yuv420_rose_down

yuv420_rose_down

Definition at line 475 of file asyncrescaleandread.cpp.