Package org.lwjgl.opencl
Class CLMotionEstimationDescINTEL
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.opencl.CLMotionEstimationDescINTEL
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class CLMotionEstimationDescINTEL extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Describes the configuration of the motion estimation algorithm.Member documentation
mb_block_type
– describes the size of the blocks described by the motion estimatorsubpixel_mode
– defines the search precision (and hence, the precision of the returned motion vectors)sad_adjust_mode
– specifies distortion measure adjustment used for the motion search SAD comparisonsearch_path_type
– specifies the search path and search radius when matching blocks in the neighborhood of each pixel block (optionally offset by the predicted motion vector). Currently, all search algorithms match the source block with pixel blocks in the reference area exhaustively within a[Rx, Ry]
radius from the current source pixel block location (optionally offset by the predicted motion vector)
Layout
struct cl_motion_estimation_desc_intel { cl_uint mb_block_type; cl_uint subpixel_mode; cl_uint sad_adjust_mode; cl_uint search_path_type; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CLMotionEstimationDescINTEL.Buffer
An array ofCLMotionEstimationDescINTEL
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
MB_BLOCK_TYPE
SAD_ADJUST_MODE
SEARCH_PATH_TYPEThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
SUBPIXEL_MODE
The struct member offsets.
-
Constructor Summary
Constructors Constructor Description CLMotionEstimationDescINTEL(java.nio.ByteBuffer container)
Creates aCLMotionEstimationDescINTEL
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLMotionEstimationDescINTEL
calloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemCalloc
.static CLMotionEstimationDescINTEL.Buffer
calloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemCalloc
.static CLMotionEstimationDescINTEL
callocStack()
Returns a newCLMotionEstimationDescINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL.Buffer
callocStack(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL
create()
Returns a newCLMotionEstimationDescINTEL
instance allocated withBufferUtils
.static CLMotionEstimationDescINTEL.Buffer
create(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withBufferUtils
.static CLMotionEstimationDescINTEL
create(long address)
Returns a newCLMotionEstimationDescINTEL
instance for the specified memory address.static CLMotionEstimationDescINTEL.Buffer
create(long address, int capacity)
Create aCLMotionEstimationDescINTEL.Buffer
instance at the specified memory.static CLMotionEstimationDescINTEL
createSafe(long address)
static CLMotionEstimationDescINTEL.Buffer
createSafe(long address, int capacity)
static CLMotionEstimationDescINTEL
malloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemAlloc
.static CLMotionEstimationDescINTEL.Buffer
malloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemAlloc
.static CLMotionEstimationDescINTEL
mallocStack()
Returns a newCLMotionEstimationDescINTEL
instance allocated on the thread-localMemoryStack
.static CLMotionEstimationDescINTEL.Buffer
mallocStack(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the thread-localMemoryStack
.static CLMotionEstimationDescINTEL.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
.static CLMotionEstimationDescINTEL
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
.int
mb_block_type()
Returns the value of themb_block_type
field.CLMotionEstimationDescINTEL
mb_block_type(int value)
Sets the specified value to themb_block_type
field.static int
nmb_block_type(long struct)
Unsafe version ofmb_block_type()
.static void
nmb_block_type(long struct, int value)
Unsafe version ofmb_block_type
.static int
nsad_adjust_mode(long struct)
Unsafe version ofsad_adjust_mode()
.static void
nsad_adjust_mode(long struct, int value)
Unsafe version ofsad_adjust_mode
.static int
nsearch_path_type(long struct)
Unsafe version ofsearch_path_type()
.static void
nsearch_path_type(long struct, int value)
Unsafe version ofsearch_path_type
.static int
nsubpixel_mode(long struct)
Unsafe version ofsubpixel_mode()
.static void
nsubpixel_mode(long struct, int value)
Unsafe version ofsubpixel_mode
.int
sad_adjust_mode()
Returns the value of thesad_adjust_mode
field.CLMotionEstimationDescINTEL
sad_adjust_mode(int value)
Sets the specified value to thesad_adjust_mode
field.int
search_path_type()
Returns the value of thesearch_path_type
field.CLMotionEstimationDescINTEL
search_path_type(int value)
Sets the specified value to thesearch_path_type
field.CLMotionEstimationDescINTEL
set(int mb_block_type, int subpixel_mode, int sad_adjust_mode, int search_path_type)
Initializes this struct with the specified values.CLMotionEstimationDescINTEL
set(CLMotionEstimationDescINTEL src)
Copies the specified struct data to this struct.int
sizeof()
int
subpixel_mode()
Returns the value of thesubpixel_mode
field.CLMotionEstimationDescINTEL
subpixel_mode(int value)
Sets the specified value to thesubpixel_mode
field.
-
-
-
Constructor Detail
-
CLMotionEstimationDescINTEL
public CLMotionEstimationDescINTEL(java.nio.ByteBuffer container)
Creates aCLMotionEstimationDescINTEL
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mb_block_type
public int mb_block_type()
Returns the value of themb_block_type
field.
-
subpixel_mode
public int subpixel_mode()
Returns the value of thesubpixel_mode
field.
-
sad_adjust_mode
public int sad_adjust_mode()
Returns the value of thesad_adjust_mode
field.
-
search_path_type
public int search_path_type()
Returns the value of thesearch_path_type
field.
-
mb_block_type
public CLMotionEstimationDescINTEL mb_block_type(int value)
Sets the specified value to themb_block_type
field.
-
subpixel_mode
public CLMotionEstimationDescINTEL subpixel_mode(int value)
Sets the specified value to thesubpixel_mode
field.
-
sad_adjust_mode
public CLMotionEstimationDescINTEL sad_adjust_mode(int value)
Sets the specified value to thesad_adjust_mode
field.
-
search_path_type
public CLMotionEstimationDescINTEL search_path_type(int value)
Sets the specified value to thesearch_path_type
field.
-
set
public CLMotionEstimationDescINTEL set(int mb_block_type, int subpixel_mode, int sad_adjust_mode, int search_path_type)
Initializes this struct with the specified values.
-
set
public CLMotionEstimationDescINTEL set(CLMotionEstimationDescINTEL src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static CLMotionEstimationDescINTEL malloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static CLMotionEstimationDescINTEL calloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static CLMotionEstimationDescINTEL create()
Returns a newCLMotionEstimationDescINTEL
instance allocated withBufferUtils
.
-
create
public static CLMotionEstimationDescINTEL create(long address)
Returns a newCLMotionEstimationDescINTEL
instance for the specified memory address.
-
createSafe
@Nullable public static CLMotionEstimationDescINTEL createSafe(long address)
-
malloc
public static CLMotionEstimationDescINTEL.Buffer malloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static CLMotionEstimationDescINTEL.Buffer calloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static CLMotionEstimationDescINTEL.Buffer create(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static CLMotionEstimationDescINTEL.Buffer create(long address, int capacity)
Create aCLMotionEstimationDescINTEL.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static CLMotionEstimationDescINTEL.Buffer createSafe(long address, int capacity)
-
mallocStack
public static CLMotionEstimationDescINTEL mallocStack()
Returns a newCLMotionEstimationDescINTEL
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static CLMotionEstimationDescINTEL callocStack()
Returns a newCLMotionEstimationDescINTEL
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static CLMotionEstimationDescINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLMotionEstimationDescINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static CLMotionEstimationDescINTEL.Buffer mallocStack(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static CLMotionEstimationDescINTEL.Buffer callocStack(int capacity)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static CLMotionEstimationDescINTEL.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static CLMotionEstimationDescINTEL.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmb_block_type
public static int nmb_block_type(long struct)
Unsafe version ofmb_block_type()
.
-
nsubpixel_mode
public static int nsubpixel_mode(long struct)
Unsafe version ofsubpixel_mode()
.
-
nsad_adjust_mode
public static int nsad_adjust_mode(long struct)
Unsafe version ofsad_adjust_mode()
.
-
nsearch_path_type
public static int nsearch_path_type(long struct)
Unsafe version ofsearch_path_type()
.
-
nmb_block_type
public static void nmb_block_type(long struct, int value)
Unsafe version ofmb_block_type
.
-
nsubpixel_mode
public static void nsubpixel_mode(long struct, int value)
Unsafe version ofsubpixel_mode
.
-
nsad_adjust_mode
public static void nsad_adjust_mode(long struct, int value)
Unsafe version ofsad_adjust_mode
.
-
nsearch_path_type
public static void nsearch_path_type(long struct, int value)
Unsafe version ofsearch_path_type
.
-
-