public class PixelFormatDescriptor extends RefCounted
| Modifier and Type | Class and Description |
|---|---|
static class |
PixelFormatDescriptor.Flag |
| Modifier and Type | Method and Description |
|---|---|
PixelFormatDescriptor |
copyReference()
Create a new PixelFormatDescriptor 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.
|
int |
getBitsPerPixel()
Return the number of bits per pixel used by the pixel format
described by pixdesc. |
PixelComponentDescriptor |
getComponentDescriptor(int component)
Parameters that describe how pixels are packed.
If the format has 2 or 4 components, then alpha is last. If the format has 1 or 2 components, then luma is 0. If the format has 3 or 4 components, if the RGB flag is set then 0 is red, 1 is green and 2 is blue; otherwise 0 is luma, 1 is chroma-U and 2 is chroma-V. |
boolean |
getFlag(PixelFormatDescriptor.Flag flag)
Is the given flag set on this format?
|
short |
getFlags()
Get the flags for this Pixel Format.
|
PixelFormat.Type |
getFormat() |
short |
getLog2ChromaHeight()
Amount to shift the luma height right to find the chroma height.
For YV12 this is 1 for example. chroma_height= -((-luma_height) >> log2_chroma_h) The note above is needed to ensure rounding up. This value only refers to the chroma components. |
short |
getLog2ChromaWidth()
Amount to shift the luma width right to find the chroma width.
For YV12 this is 1 for example. chroma_width = -((-luma_width) >> log2_chroma_w) The note above is needed to ensure rounding up. This value only refers to the chroma components. |
String |
getName()
Get the name of this pixel descriptor
|
short |
getNumComponents()
The number of components each pixel has, (1-4)
|
int |
getPaddedBitsPerPixel()
Return the number of bits per pixel for the pixel format
described by pixdesc, including any padding or unused bits. |
int |
hashCode()
Get a hashable value for this object.
|
delete, getCurrentRefCountpublic PixelFormatDescriptor copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public String getName()
public short getNumComponents()
public short getLog2ChromaWidth()
public short getLog2ChromaHeight()
public short getFlags()
public boolean getFlag(PixelFormatDescriptor.Flag flag)
public int getBitsPerPixel()
public int getPaddedBitsPerPixel()
public PixelComponentDescriptor getComponentDescriptor(int component)
public PixelFormat.Type getFormat()
Copyright © 2018 Humble Software. All rights reserved.