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, NativeResource, Pointer
public class CLMotionEstimationDescINTEL extends Struct
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 and Description static class
CLMotionEstimationDescINTEL.Buffer
An array ofCLMotionEstimationDescINTEL
structs.-
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SIZEOF
The struct size in bytes.-
Fields inherited from interface org.lwjgl.system.Pointer
POINTER_SHIFT, POINTER_SIZE
-
-
Constructor Summary
Constructors Constructor and 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 and 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, MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL
callocStack(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 ornull
if the address isNULL
.static CLMotionEstimationDescINTEL.Buffer
create(long address, int capacity)
Create aCLMotionEstimationDescINTEL.Buffer
instance at the specified memory.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, MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
.static CLMotionEstimationDescINTEL
mallocStack(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.CLMotionEstimationDescINTEL
nset(long struct)
Unsafe version ofset
.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(CLMotionEstimationDescINTEL src)
Copies the specified struct data to this struct.CLMotionEstimationDescINTEL
set(int mb_block_type, int subpixel_mode, int sad_adjust_mode, int search_path_type)
Initializes this struct with the specified values.int
sizeof()
Returns thesizeof(struct)
.int
subpixel_mode()
Returns the value of thesubpixel_mode
field.CLMotionEstimationDescINTEL
subpixel_mode(int value)
Sets the specified value to thesubpixel_mode
field.-
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Methods inherited from interface org.lwjgl.system.NativeResource
close
-
-
-
-
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()
Description copied from class:Struct
Returns thesizeof(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.
-
nset
public CLMotionEstimationDescINTEL nset(long struct)
Unsafe version ofset
.
-
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 ornull
if the address isNULL
.
-
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
-
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(MemoryStack stack)
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static CLMotionEstimationDescINTEL callocStack(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, 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, 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
-
-