Home
last modified time | relevance | path

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

/external/skia/src/codec/
DSkCodecPriv.h52 static inline int get_start_coord(int sampleFactor) { return sampleFactor / 2; }; in get_start_coord() argument
62 static inline int get_dst_coord(int srcCoord, int sampleFactor) { return srcCoord / sampleFactor; }; in get_dst_coord() argument
72 static inline bool is_coord_necessary(int srcCoord, int sampleFactor, int scaledDim) { in is_coord_necessary() argument
74 int startCoord = get_start_coord(sampleFactor); in is_coord_necessary()
77 if (srcCoord < startCoord || get_dst_coord(srcCoord, sampleFactor) >= scaledDim) { in is_coord_necessary()
82 return ((srcCoord - startCoord) % sampleFactor) == 0; in is_coord_necessary()