Searched refs:tw (Results 1 - 4 of 4) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/ui/
H A DCameraControls.java109 int tw = lp.leftMargin + v.getMeasuredWidth() + lp.rightMargin;
114 result.left = (r + l) / 2 - tw / 2 + lp.leftMargin;
115 result.right = (r + l) / 2 + tw / 2 - lp.rightMargin;
122 result.left = r - tw + lp.leftMargin;
128 result.left = (r + l) / 2 - tw / 2 + lp.leftMargin;
129 result.right = (r + l) / 2 + tw / 2 - lp.rightMargin;
136 result.right = l + tw - lp.rightMargin;
146 int tw = lp.leftMargin + v.getMeasuredWidth() + lp.rightMargin;
150 v.layout(cx - tw / 2 + lp.leftMargin,
152 cx + tw /
[all...]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
H A DBlend.cpp448 int tw = STRIP_CROSS_FADE_WIDTH_PXLS; local
452 if (tw > 0)
458 // is set to imgMos.Y.width - tw, so that x+1 below
460 for(int x = tw; x < imgMos.Y.width - tw; )
471 for (int o = tw; o >= 0; o--)
476 imgMos.U.ptr[y][x - o] = 50 + (99 - 50) * o / tw;
479 for (int o = 1; o <= tw; o++)
487 x += (tw + 1);
501 int tw local
[all...]
/packages/apps/Camera2/jni/feature_mos/src/mosaic/
H A DBlend.cpp448 int tw = STRIP_CROSS_FADE_WIDTH_PXLS; local
452 if (tw > 0)
458 // is set to imgMos.Y.width - tw, so that x+1 below
460 for(int x = tw; x < imgMos.Y.width - tw; )
471 for (int o = tw; o >= 0; o--)
476 imgMos.U.ptr[y][x - o] = 50 + (99 - 50) * o / tw;
479 for (int o = 1; o <= tw; o++)
487 x += (tw + 1);
501 int tw local
[all...]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
H A DBlend.cpp448 int tw = STRIP_CROSS_FADE_WIDTH_PXLS; local
452 if (tw > 0)
458 // is set to imgMos.Y.width - tw, so that x+1 below
460 for(int x = tw; x < imgMos.Y.width - tw; )
471 for (int o = tw; o >= 0; o--)
476 imgMos.U.ptr[y][x - o] = 50 + (99 - 50) * o / tw;
479 for (int o = 1; o <= tw; o++)
487 x += (tw + 1);
501 int tw local
[all...]

Completed in 149 milliseconds