Home
last modified time | relevance | path

Searched refs:sampleFactor (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/src/codec/
DSkCodecPriv.h55 static inline int get_start_coord(int sampleFactor) { return sampleFactor / 2; }; in get_start_coord() argument
65 static inline int get_dst_coord(int srcCoord, int sampleFactor) { return srcCoord / sampleFactor; }; in get_dst_coord() argument
75 static inline bool is_coord_necessary(int srcCoord, int sampleFactor, int scaledDim) { in is_coord_necessary() argument
77 int startCoord = get_start_coord(sampleFactor); in is_coord_necessary()
80 if (srcCoord < startCoord || get_dst_coord(srcCoord, sampleFactor) >= scaledDim) { in is_coord_necessary()
85 return ((srcCoord - startCoord) % sampleFactor) == 0; in is_coord_necessary()
/third_party/skia/src/codec/
DSkCodecPriv.h55 static inline int get_start_coord(int sampleFactor) { return sampleFactor / 2; }; in get_start_coord() argument
65 static inline int get_dst_coord(int srcCoord, int sampleFactor) { return srcCoord / sampleFactor; }; in get_dst_coord() argument
75 static inline bool is_coord_necessary(int srcCoord, int sampleFactor, int scaledDim) { in is_coord_necessary() argument
77 int startCoord = get_start_coord(sampleFactor); in is_coord_necessary()
80 if (srcCoord < startCoord || get_dst_coord(srcCoord, sampleFactor) >= scaledDim) { in is_coord_necessary()
85 return ((srcCoord - startCoord) % sampleFactor) == 0; in is_coord_necessary()