Lines Matching refs:width
145 * in the message.obj field, with width and height encoded as message.arg1 and message.arg2,
185 int width = screenResolution.x * 3 / 4;
186 if (width < MIN_FRAME_WIDTH) {
187 width = MIN_FRAME_WIDTH;
188 } else if (width > MAX_FRAME_WIDTH) {
189 width = MAX_FRAME_WIDTH;
197 int leftOffset = (screenResolution.x - width) / 2;
199 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height);
234 * @param width The width in pixels to scan.
237 public void setManualFramingRect(int width, int height) {
240 if (width > screenResolution.x) {
241 width = screenResolution.x;
246 int leftOffset = (screenResolution.x - width) / 2;
248 framingRect = new Rect(leftOffset, topOffset, leftOffset + width, topOffset + height);
252 requestedFramingRectWidth = width;
262 * @param width The width of the image.
266 public PlanarYUVLuminanceSource buildLuminanceSource(byte[] data, int width, int height) {
272 return new PlanarYUVLuminanceSource(data, width, height, rect.left, rect.top,
273 rect.width(), rect.height(), reverseImage);