PackBegin to PackEnd.
struct stbtt_pack_context {
void * user_allocator_context;
stbrp_context * pack_info;
int width;
int height;
int stride_in_bytes;
int padding;
int skip_missing;
unsigned int h_oversample;
unsigned int v_oversample;
unsigned char * pixels;
stbrp_node * nodes;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | STBTTPackContext.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | H_OVERSAMPLE
The struct member offsets. |
| public static final int | HEIGHT
The struct member offsets. |
| public static final int | NODES
The struct member offsets. |
| public static final int | PACK_INFO
The struct member offsets. |
| public static final int | PADDING
The struct member offsets. |
| public static final int | PIXELS
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SKIP_MISSING
The struct member offsets. |
| public static final int | STRIDE_IN_BYTES
The struct member offsets. |
| public static final int | USER_ALLOCATOR_CONTEXT
The struct member offsets. |
| public static final int | V_OVERSAMPLE
The struct member offsets. |
| public static final int | WIDTH
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | STBTTPackContext(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static STBTTPackContext | |
| public static STBTTPackContext. | calloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackContext | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackContext. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackContext | |
| public static STBTTPackContext | |
| public static STBTTPackContext. | |
| public static STBTTPackContext. | |
| protected STBTTPackContext | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static STBTTPackContext | |
| public static STBTTPackContext | |
| public static STBTTPackContext. | create(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackContext. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static STBTTPackContext | |
| public static STBTTPackContext. | |
| public int | |
| public int | |
| public static STBTTPackContext | |
| public static STBTTPackContext. | malloc(int
the buffer capacity capacity)Returns a new |
| public static STBTTPackContext | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static STBTTPackContext. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static STBTTPackContext | |
| public static STBTTPackContext | |
| public static STBTTPackContext. | |
| public static STBTTPackContext. | |
| public static int | |
| public static int | |
| public static STBRPNode. | |
| public STBRPNode. | |
| public static STBRPContext | |
| public static int | |
| public static ByteBuffer | |
| public static int | |
| public static int | |
| public static long | |
| public static int | |
| public static int | |
| public STBRPContext | |
| public int | |
| public ByteBuffer | |
| public int | |
| public boolean | |
| public int | |
| public long | |
| public int | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| H_OVERSAMPLE | back to summary |
|---|---|
| public static final int H_OVERSAMPLE The struct member offsets. | |
| HEIGHT | back to summary |
|---|---|
| public static final int HEIGHT The struct member offsets. | |
| NODES | back to summary |
|---|---|
| public static final int NODES The struct member offsets. | |
| PACK_INFO | back to summary |
|---|---|
| public static final int PACK_INFO The struct member offsets. | |
| PADDING | back to summary |
|---|---|
| public static final int PADDING The struct member offsets. | |
| PIXELS | back to summary |
|---|---|
| public static final int PIXELS The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SKIP_MISSING | back to summary |
|---|---|
| public static final int SKIP_MISSING The struct member offsets. | |
| STRIDE_IN_BYTES | back to summary |
|---|---|
| public static final int STRIDE_IN_BYTES The struct member offsets. | |
| USER_ALLOCATOR_CONTEXT | back to summary |
|---|---|
| public static final int USER_ALLOCATOR_CONTEXT The struct member offsets. | |
| V_OVERSAMPLE | back to summary |
|---|---|
| public static final int V_OVERSAMPLE The struct member offsets. | |
| WIDTH | back to summary |
|---|---|
| public static final int WIDTH The struct member offsets. | |
| STBTTPackContext | back to summary |
|---|---|
| protected STBTTPackContext(long address, ByteBuffer container) | |
| STBTTPackContext | back to summary |
|---|---|
| public STBTTPackContext(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static STBTTPackContext calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static STBTTPackContext. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackContext calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static STBTTPackContext. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackContext callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackContext callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static STBTTPackContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected STBTTPackContext create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static STBTTPackContext create() Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackContext create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static STBTTPackContext. Returns a new
| |
| create | back to summary |
|---|---|
| public static STBTTPackContext. Create a
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackContext createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static STBTTPackContext. Like
| |
| h_oversample | back to summary |
|---|---|
public int h_oversample()
| |
| height | back to summary |
|---|---|
public int height()
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackContext malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static STBTTPackContext. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackContext malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static STBTTPackContext. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackContext mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackContext mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static STBTTPackContext. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| nh_oversample | back to summary |
|---|---|
| public static int nh_oversample(long struct) Unsafe version of | |
| nheight | back to summary |
|---|---|
| public static int nheight(long struct) Unsafe version of | |
| nnodes | back to summary |
|---|---|
| public static STBRPNode. Unsafe version of | |
| nodes | back to summary |
|---|---|
public STBRPNode.
| |
| npack_info | back to summary |
|---|---|
| public static STBRPContext npack_info(long struct) Unsafe version of | |
| npadding | back to summary |
|---|---|
| public static int npadding(long struct) Unsafe version of | |
| npixels | back to summary |
|---|---|
| public static ByteBuffer npixels(long struct, int capacity) Unsafe version of | |
| nskip_missing | back to summary |
|---|---|
| public static int nskip_missing(long struct) Unsafe version of | |
| nstride_in_bytes | back to summary |
|---|---|
| public static int nstride_in_bytes(long struct) Unsafe version of | |
| nuser_allocator_context | back to summary |
|---|---|
| public static long nuser_allocator_context(long struct) Unsafe version of | |
| nv_oversample | back to summary |
|---|---|
| public static int nv_oversample(long struct) Unsafe version of | |
| nwidth | back to summary |
|---|---|
| public static int nwidth(long struct) Unsafe version of | |
| pack_info | back to summary |
|---|---|
public STBRPContext pack_info()
| |
| padding | back to summary |
|---|---|
public int padding()
| |
| pixels | back to summary |
|---|---|
public ByteBuffer pixels(int capacity)
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| skip_missing | back to summary |
|---|---|
public boolean skip_missing()
| |
| stride_in_bytes | back to summary |
|---|---|
public int stride_in_bytes()
| |
| user_allocator_context | back to summary |
|---|---|
public long user_allocator_context()
| |
| v_oversample | back to summary |
|---|---|
public int v_oversample()
| |
| width | back to summary |
|---|---|
public int width()
| |
STBTTPackContext structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final STBTTPackContext |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected STBTTPackContext | |
| public int | |
| public int | |
| public STBRPNode. | |
| public STBRPContext | |
| public int | |
| public ByteBuffer | |
| protected STBTTPackContext. | |
| public boolean | |
| public int | |
| public long | |
| public int | |
| public int |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final STBTTPackContext ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected STBTTPackContext getElementFactory() Implements abstract org.
| |
| h_oversample | back to summary |
|---|---|
public int h_oversample()
| |
| height | back to summary |
|---|---|
public int height()
| |
| nodes | back to summary |
|---|---|
public STBRPNode.
| |
| pack_info | back to summary |
|---|---|
public STBRPContext pack_info()
| |
| padding | back to summary |
|---|---|
public int padding()
| |
| pixels | back to summary |
|---|---|
public ByteBuffer pixels(int capacity)
| |
| self | back to summary |
|---|---|
| protected STBTTPackContext. Implements abstract org.
| |
| skip_missing | back to summary |
|---|---|
public boolean skip_missing()
| |
| stride_in_bytes | back to summary |
|---|---|
public int stride_in_bytes()
| |
| user_allocator_context | back to summary |
|---|---|
public long user_allocator_context()
| |
| v_oversample | back to summary |
|---|---|
public int v_oversample()
| |
| width | back to summary |
|---|---|
public int width()
| |