Lines Matching refs:ch
60 int32_t ch = mArrayHeight; in updateCaptureRequest() local
66 ch = entry.data.i32[3]; in updateCaptureRequest()
112 float cropAspect = static_cast<float>(cw) / ch; in updateCaptureRequest()
122 yShift = ch; in updateCaptureRequest()
125 ch * mRotateAspect : // pillarbox, not full width in updateCaptureRequest()
128 ch : // pillarbox or 1:1, full height in updateCaptureRequest()
132 transformMat[1] = -rw / ch; // +y -> -x in updateCaptureRequest()
135 yShift = (ch - rh) / 2; // top edge of crop to top edge of rotated in updateCaptureRequest()
138 transformMat[1] = rw / ch; // +y -> +x in updateCaptureRequest()
141 yShift = (ch + rh) / 2; // top edge of crop to bottom edge of rotated in updateCaptureRequest()
176 int32_t ch = mArrayHeight; in updateCaptureResult() local
182 ch = entry.data.i32[3]; in updateCaptureResult()
236 float cropAspect = static_cast<float>(cw) / ch; in updateCaptureResult()
247 yShift = ch; in updateCaptureResult()
252 ch * mRotateAspect : // pillarbox, not full width in updateCaptureResult()
255 ch : // pillarbox or 1:1, full height in updateCaptureResult()
258 ry = cy + (ch - rh) / 2; in updateCaptureResult()
261 transformMat[1] = ch / rw; // +y -> +x in updateCaptureResult()
264 yShift = ry - cy + ch; // top edge of rotated to bottom edge of cropped in updateCaptureResult()
267 transformMat[1] = -ch / rw; // +y -> -x in updateCaptureResult()
270 yShift = (ch - rh) / 2; // top edge of rotated to bottom edge of cropped in updateCaptureResult()