Package org.lwjgl.opencl
Class CLMotionEstimationDescINTEL
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class CLMotionEstimationDescINTEL
extends Struct<CLMotionEstimationDescINTEL>
implements NativeResource
Describes the configuration of the motion estimation algorithm.
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionCLMotionEstimationDescINTEL
(ByteBuffer container) Creates aCLMotionEstimationDescINTEL
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLMotionEstimationDescINTEL
calloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL
calloc
(MemoryStack stack) Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static CLMotionEstimationDescINTEL
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static CLMotionEstimationDescINTEL
callocStack
(MemoryStack stack) Deprecated.static CLMotionEstimationDescINTEL
create()
Returns a newCLMotionEstimationDescINTEL
instance allocated withBufferUtils
.create
(int capacity) Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withBufferUtils
.static CLMotionEstimationDescINTEL
create
(long address) Returns a newCLMotionEstimationDescINTEL
instance for the specified memory address.create
(long address, int capacity) Create aCLMotionEstimationDescINTEL.Buffer
instance at the specified memory.static CLMotionEstimationDescINTEL
createSafe
(long address) createSafe
(long address, int capacity) static CLMotionEstimationDescINTEL
malloc()
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
.static CLMotionEstimationDescINTEL
malloc
(MemoryStack stack) Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
.static CLMotionEstimationDescINTEL
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static CLMotionEstimationDescINTEL
mallocStack
(MemoryStack stack) Deprecated.int
describes the size of the blocks described by the motion estimatormb_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
specifies distortion measure adjustment used for the motion search SAD comparisonsad_adjust_mode
(int value) Sets the specified value to thesad_adjust_mode()
field.int
specifies the search path and search radius when matching blocks in the neighborhood of each pixel block (optionally offset by the predicted motion vector).search_path_type
(int value) Sets the specified value to thesearch_path_type()
field.set
(int mb_block_type, int subpixel_mode, int sad_adjust_mode, int search_path_type) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
defines the search precision (and hence, the precision of the returned motion vectors)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, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MB_BLOCK_TYPE
public static final int MB_BLOCK_TYPEThe struct member offsets. -
SUBPIXEL_MODE
public static final int SUBPIXEL_MODEThe struct member offsets. -
SAD_ADJUST_MODE
public static final int SAD_ADJUST_MODEThe struct member offsets. -
SEARCH_PATH_TYPE
public static final int SEARCH_PATH_TYPEThe struct member offsets.
-
-
Constructor Details
-
CLMotionEstimationDescINTEL
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<CLMotionEstimationDescINTEL>
-
mb_block_type
public int mb_block_type()describes the size of the blocks described by the motion estimator -
subpixel_mode
public int subpixel_mode()defines the search precision (and hence, the precision of the returned motion vectors) -
sad_adjust_mode
public int sad_adjust_mode()specifies distortion measure adjustment used for the motion search SAD comparison -
search_path_type
public int search_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) -
mb_block_type
Sets the specified value to themb_block_type()
field. -
subpixel_mode
Sets the specified value to thesubpixel_mode()
field. -
sad_adjust_mode
Sets the specified value to thesad_adjust_mode()
field. -
search_path_type
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
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newCLMotionEstimationDescINTEL
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newCLMotionEstimationDescINTEL
instance allocated withBufferUtils
. -
create
Returns a newCLMotionEstimationDescINTEL
instance for the specified memory address. -
createSafe
-
malloc
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aCLMotionEstimationDescINTEL.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static CLMotionEstimationDescINTEL.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static CLMotionEstimationDescINTEL.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newCLMotionEstimationDescINTEL
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newCLMotionEstimationDescINTEL.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
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
.
-