public class PixelFormat extends RefCounted
| Modifier and Type | Class and Description |
|---|---|
static class |
PixelFormat.Type
Pixel format.
Note: PIX_FMT_RGB32 is handled in an endian-specific manner. |
| Modifier and Type | Method and Description |
|---|---|
PixelFormat |
copyReference()
Create a new PixelFormat object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
static int |
getBufferSizeNeeded(int width,
int height,
PixelFormat.Type pix_fmt)
Find the buffer size that would be necessary to store an image
with the given qualities. |
static PixelFormatDescriptor |
getDescriptor(PixelFormat.Type pix_fmt) |
static PixelFormat.Type |
getFormat(String name)
Return the pixel format corresponding to name.
If there is no pixel format with name name, then looks for a pixel format with the name corresponding to the native endian format of name. For example in a little-endian system, first looks for "gray16", then for "gray16le". Finally if no pixel format has been found, returns AV_PIX_FMT_NONE. |
static String |
getFormatName(PixelFormat.Type pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is
unknown. |
static PixelFormatDescriptor |
getInstalledFormatDescriptor(int i)
Returns the 'i'th pixel format descriptor that is known to humble video
|
static int |
getNumInstalledFormats()
Returns the total number of pixel format descriptors known to humble video.
|
static int |
getNumPlanes(PixelFormat.Type pix_fmt) |
int |
hashCode()
Get a hashable value for this object.
|
static PixelFormat.Type |
swapEndianness(PixelFormat.Type pix_fmt)
Utility function to swap the endianness of a pixel format.
pix_fmt the pixel format |
delete, getCurrentRefCountpublic PixelFormat copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public static PixelFormat.Type getFormat(String name)
public static String getFormatName(PixelFormat.Type pix_fmt)
public static PixelFormatDescriptor getDescriptor(PixelFormat.Type pix_fmt)
public static int getNumInstalledFormats()
public static PixelFormatDescriptor getInstalledFormatDescriptor(int i)
i - The i'th pixel format descriptor in the list of installed descriptors.public static int getNumPlanes(PixelFormat.Type pix_fmt)
public static PixelFormat.Type swapEndianness(PixelFormat.Type pix_fmt)
public static int getBufferSizeNeeded(int width,
int height,
PixelFormat.Type pix_fmt)
Copyright © 2018 Humble Software. All rights reserved.