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.NativeResourceDescribes 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 classCLMotionEstimationDescINTEL.BufferAn array ofCLMotionEstimationDescINTELstructs.
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor and Description CLMotionEstimationDescINTEL(java.nio.ByteBuffer container)Creates aCLMotionEstimationDescINTELinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static CLMotionEstimationDescINTELcalloc()Returns a newCLMotionEstimationDescINTELinstance allocated withmemCalloc.static CLMotionEstimationDescINTEL.Buffercalloc(int capacity)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withmemCalloc.static CLMotionEstimationDescINTELcallocStack()Returns a newCLMotionEstimationDescINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLMotionEstimationDescINTEL.BuffercallocStack(int capacity)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static CLMotionEstimationDescINTEL.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLMotionEstimationDescINTELcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCLMotionEstimationDescINTELinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CLMotionEstimationDescINTELcreate()Returns a newCLMotionEstimationDescINTELinstance allocated withBufferUtils.static CLMotionEstimationDescINTEL.Buffercreate(int capacity)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withBufferUtils.static CLMotionEstimationDescINTELcreate(long address)Returns a newCLMotionEstimationDescINTELinstance for the specified memory address.static CLMotionEstimationDescINTEL.Buffercreate(long address, int capacity)Create aCLMotionEstimationDescINTEL.Bufferinstance at the specified memory.static CLMotionEstimationDescINTELcreateSafe(long address)static CLMotionEstimationDescINTEL.BuffercreateSafe(long address, int capacity)static CLMotionEstimationDescINTELmalloc()Returns a newCLMotionEstimationDescINTELinstance allocated withmemAlloc.static CLMotionEstimationDescINTEL.Buffermalloc(int capacity)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withmemAlloc.static CLMotionEstimationDescINTELmallocStack()Returns a newCLMotionEstimationDescINTELinstance allocated on the thread-localMemoryStack.static CLMotionEstimationDescINTEL.BuffermallocStack(int capacity)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated on the thread-localMemoryStack.static CLMotionEstimationDescINTEL.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated on the specifiedMemoryStack.static CLMotionEstimationDescINTELmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newCLMotionEstimationDescINTELinstance allocated on the specifiedMemoryStack.intmb_block_type()Returns the value of themb_block_typefield.CLMotionEstimationDescINTELmb_block_type(int value)Sets the specified value to themb_block_typefield.intsad_adjust_mode()Returns the value of thesad_adjust_modefield.CLMotionEstimationDescINTELsad_adjust_mode(int value)Sets the specified value to thesad_adjust_modefield.intsearch_path_type()Returns the value of thesearch_path_typefield.CLMotionEstimationDescINTELsearch_path_type(int value)Sets the specified value to thesearch_path_typefield.CLMotionEstimationDescINTELset(CLMotionEstimationDescINTEL src)Copies the specified struct data to this struct.CLMotionEstimationDescINTELset(int mb_block_type, int subpixel_mode, int sad_adjust_mode, int search_path_type)Initializes this struct with the specified values.intsizeof()intsubpixel_mode()Returns the value of thesubpixel_modefield.CLMotionEstimationDescINTELsubpixel_mode(int value)Sets the specified value to thesubpixel_modefield.
-
-
-
Constructor Detail
-
CLMotionEstimationDescINTEL
public CLMotionEstimationDescINTEL(java.nio.ByteBuffer container)
Creates aCLMotionEstimationDescINTELinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
mb_block_type
public int mb_block_type()
Returns the value of themb_block_typefield.
-
subpixel_mode
public int subpixel_mode()
Returns the value of thesubpixel_modefield.
-
sad_adjust_mode
public int sad_adjust_mode()
Returns the value of thesad_adjust_modefield.
-
search_path_type
public int search_path_type()
Returns the value of thesearch_path_typefield.
-
mb_block_type
public CLMotionEstimationDescINTEL mb_block_type(int value)
Sets the specified value to themb_block_typefield.
-
subpixel_mode
public CLMotionEstimationDescINTEL subpixel_mode(int value)
Sets the specified value to thesubpixel_modefield.
-
sad_adjust_mode
public CLMotionEstimationDescINTEL sad_adjust_mode(int value)
Sets the specified value to thesad_adjust_modefield.
-
search_path_type
public CLMotionEstimationDescINTEL search_path_type(int value)
Sets the specified value to thesearch_path_typefield.
-
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 newCLMotionEstimationDescINTELinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CLMotionEstimationDescINTEL calloc()
Returns a newCLMotionEstimationDescINTELinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CLMotionEstimationDescINTEL create()
Returns a newCLMotionEstimationDescINTELinstance allocated withBufferUtils.
-
create
public static CLMotionEstimationDescINTEL create(long address)
Returns a newCLMotionEstimationDescINTELinstance for the specified memory address.
-
createSafe
@Nullable public static CLMotionEstimationDescINTEL createSafe(long address)
-
malloc
public static CLMotionEstimationDescINTEL.Buffer malloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CLMotionEstimationDescINTEL.Buffer calloc(int capacity)
Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CLMotionEstimationDescINTEL.Buffer create(int capacity)
Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CLMotionEstimationDescINTEL.Buffer create(long address, int capacity)
Create aCLMotionEstimationDescINTEL.Bufferinstance 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 newCLMotionEstimationDescINTELinstance allocated on the thread-localMemoryStack.
-
callocStack
public static CLMotionEstimationDescINTEL callocStack()
Returns a newCLMotionEstimationDescINTELinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static CLMotionEstimationDescINTEL mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTELinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static CLMotionEstimationDescINTEL callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newCLMotionEstimationDescINTELinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static CLMotionEstimationDescINTEL.Buffer callocStack(int capacity)
Returns a newCLMotionEstimationDescINTEL.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-