HomeSort by relevance Sort by last modified time
    Searched refs:sampleFactor (Results 1 - 2 of 2) sorted by null

  /external/skia/src/codec/
SkCodecPriv.h 50 * This does not need to be called and is not called when sampleFactor == 1.
52 static inline int get_start_coord(int sampleFactor) { return sampleFactor / 2; };
60 * This does not need to be called and is not called when sampleFactor == 1.
62 static inline int get_dst_coord(int srcCoord, int sampleFactor) { return srcCoord / sampleFactor; };
70 * This does not need to be called and is not called when sampleFactor == 1.
72 static inline bool is_coord_necessary(int srcCoord, int sampleFactor, int scaledDim) {
74 int startCoord = get_start_coord(sampleFactor);
77 if (srcCoord < startCoord || get_dst_coord(srcCoord, sampleFactor) >= scaledDim)
    [all...]
  /packages/apps/Camera2/src/com/android/camera/ui/
ZoomView.java 296 int sampleFactor = (int) (1f / scale);
297 if (sampleFactor <=1) {
301 if ((1 << (i + 1)) > sampleFactor) {
302 sampleFactor = (1 << i);
306 return sampleFactor;

Completed in 1077 milliseconds