Class 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 estimator
    • subpixel_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 comparison
    • 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)

    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;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • MB_BLOCK_TYPE, SUBPIXEL_MODE, SAD_ADJUST_MODE, SEARCH_PATH_TYPE

        The struct member offsets.
    • Constructor Detail

      • CLMotionEstimationDescINTEL

        public CLMotionEstimationDescINTEL​(java.nio.ByteBuffer container)
        Creates a CLMotionEstimationDescINTEL instance at the current position of the specified ByteBuffer 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 class org.lwjgl.system.Struct
      • mb_block_type

        public int mb_block_type()
        Returns the value of the mb_block_type field.
      • subpixel_mode

        public int subpixel_mode()
        Returns the value of the subpixel_mode field.
      • sad_adjust_mode

        public int sad_adjust_mode()
        Returns the value of the sad_adjust_mode field.
      • search_path_type

        public int search_path_type()
        Returns the value of the search_path_type field.
      • sad_adjust_mode

        public CLMotionEstimationDescINTEL sad_adjust_mode​(int value)
        Sets the specified value to the sad_adjust_mode field.
      • search_path_type

        public CLMotionEstimationDescINTEL search_path_type​(int value)
        Sets the specified value to the search_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.
      • malloc

        public static CLMotionEstimationDescINTEL malloc()
        Returns a new CLMotionEstimationDescINTEL instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CLMotionEstimationDescINTEL calloc()
        Returns a new CLMotionEstimationDescINTEL instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CLMotionEstimationDescINTEL create()
        Returns a new CLMotionEstimationDescINTEL instance allocated with BufferUtils.
      • create

        public static CLMotionEstimationDescINTEL create​(long address)
        Returns a new CLMotionEstimationDescINTEL instance for the specified memory address.
      • mallocStack

        public static CLMotionEstimationDescINTEL mallocStack()
        Returns a new CLMotionEstimationDescINTEL instance allocated on the thread-local MemoryStack.
      • callocStack

        public static CLMotionEstimationDescINTEL callocStack()
        Returns a new CLMotionEstimationDescINTEL instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static CLMotionEstimationDescINTEL mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CLMotionEstimationDescINTEL instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CLMotionEstimationDescINTEL callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new CLMotionEstimationDescINTEL instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static CLMotionEstimationDescINTEL.Buffer callocStack​(int capacity,
                                                                     org.lwjgl.system.MemoryStack stack)
        Returns a new CLMotionEstimationDescINTEL.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nmb_block_type

        public static int nmb_block_type​(long struct)
        Unsafe version of mb_block_type().
      • nsubpixel_mode

        public static int nsubpixel_mode​(long struct)
        Unsafe version of subpixel_mode().
      • nsad_adjust_mode

        public static int nsad_adjust_mode​(long struct)
        Unsafe version of sad_adjust_mode().
      • nsearch_path_type

        public static int nsearch_path_type​(long struct)
        Unsafe version of search_path_type().
      • nmb_block_type

        public static void nmb_block_type​(long struct,
                                          int value)
        Unsafe version of mb_block_type.
      • nsubpixel_mode

        public static void nsubpixel_mode​(long struct,
                                          int value)
        Unsafe version of subpixel_mode.
      • nsad_adjust_mode

        public static void nsad_adjust_mode​(long struct,
                                            int value)
        Unsafe version of sad_adjust_mode.
      • nsearch_path_type

        public static void nsearch_path_type​(long struct,
                                             int value)
        Unsafe version of search_path_type.