Lines Matching defs:format
508 * <p>If using the {@link android.graphics.ImageFormat#YV12} format,
513 * @param data the contents of the preview frame in the format defined
518 * (NV21) format.
660 * 8, using the image format from
663 * <p>If using the {@link android.graphics.ImageFormat#YV12} format, the
700 * using the image format from {@link Camera.Parameters#getPreviewFormat()}.
1024 * The format of the data depends on the context of the callback
1666 private static final String KEY_PREVIEW_FORMAT = "preview-format";
1670 private static final String KEY_PICTURE_FORMAT = "picture-format";
2396 * Sets the image format for preview pictures.
2397 * <p>If this is never called, the default format will be
2399 * uses the NV21 encoding format.</p>
2432 * @param pixel_format the desired preview picture format, defined by
2451 * Returns the image format for preview frames got from
2454 * @return the preview format.
2522 * Sets the image format for pictures.
2524 * @param pixel_format the desired picture format
2541 * Returns the image format for pictures.
2543 * @return the picture format
2581 private int pixelFormatForCameraFormat(String format) {
2582 if (format == null)
2585 if (format.equals(PIXEL_FORMAT_YUV422SP))
2588 if (format.equals(PIXEL_FORMAT_YUV420SP))
2591 if (format.equals(PIXEL_FORMAT_YUV422I))
2594 if (format.equals(PIXEL_FORMAT_YUV420P))
2597 if (format.equals(PIXEL_FORMAT_RGB565))
2600 if (format.equals(PIXEL_FORMAT_JPEG))