Lines Matching defs:format
60 /** Format: opaque format used for raw data transfer; must have a height of 1 */
108 * format is not a supported Format type.</p>
112 * @param format The format of each pixel, one of {@link #RGBA_8888}, {@link #RGBA_FP16},
123 * too large to allocate), if the format is not supported, if the requested number of layers
127 public static HardwareBuffer create(int width, int height, @Format int format, int layers,
129 if (!HardwareBuffer.isSupportedFormat(format)) {
130 throw new IllegalArgumentException("Invalid pixel format " + format);
141 if (format == BLOB && height != 1) {
142 throw new IllegalArgumentException("Height must be 1 when using the BLOB format");
144 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage);
200 * Returns the format of this buffer, one of {@link #RGBA_8888}, {@link #RGBA_FP16},
206 throw new IllegalStateException("This HardwareBuffer has been closed and its format "
316 * Validates whether a particular format is supported by HardwareBuffer.
318 * @param format The format to validate.
320 * @return True if <code>format</code> is a supported format. false otherwise.
323 private static boolean isSupportedFormat(@Format int format) {
324 switch(format) {
337 private static native long nCreateHardwareBuffer(int width, int height, int format, int layers,