Class GstVideo

java.lang.Object
org.freedesktop.gstreamer.video.GstVideo

@Generated("org.javagi.JavaGI") public final class GstVideo extends Object
Constants and functions that are declared in the global GstVideo namespace.
  • Field Details

    • BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META

      public static final String BUFFER_POOL_OPTION_VIDEO_AFFINE_TRANSFORMATION_META
      See Also:
    • BUFFER_POOL_OPTION_VIDEO_ALIGNMENT

      public static final String BUFFER_POOL_OPTION_VIDEO_ALIGNMENT

      A bufferpool option to enable extra padding. When a bufferpool supports this option, gst_buffer_pool_config_set_video_alignment() can be called.

      When this option is enabled on the bufferpool, GST_BUFFER_POOL_OPTION_VIDEO_META should also be enabled.

      See Also:
    • BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META

      public static final String BUFFER_POOL_OPTION_VIDEO_GL_TEXTURE_UPLOAD_META

      An option that can be activated on a bufferpool to request gl texture upload meta on buffers from the pool.

      When this option is enabled on the bufferpool, GSTBUFFERPOOLOPTIONVIDEOMETA should also be enabled.

      Since:
      1.2.2
      See Also:
    • BUFFER_POOL_OPTION_VIDEO_META

      public static final String BUFFER_POOL_OPTION_VIDEO_META
      An option that can be activated on bufferpool to request video metadata on buffers from the pool.
      See Also:
    • CAPS_FEATURE_FORMAT_INTERLACED

      public static final String CAPS_FEATURE_FORMAT_INTERLACED

      Name of the caps feature indicating that the stream is interlaced.

      Currently it is only used for video with 'interlace-mode=alternate' to ensure backwards compatibility for this new mode. In this mode each buffer carries a single field of interlaced video. GSTVIDEOBUFFERFLAGTOPFIELD and GSTVIDEOBUFFERFLAGBOTTOMFIELD indicate whether the buffer carries a top or bottom field. The order of buffers/fields in the stream and the timestamps on the buffers indicate the temporal order of the fields. Top and bottom fields are expected to alternate in this mode. The frame rate in the caps still signals the frame rate, so the notional field rate will be twice the frame rate from the caps (see GSTVIDEOINFOFIELDRATEN).

      Since:
      1.16.
      See Also:
    • CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META

      public static final String CAPS_FEATURE_META_GST_VIDEO_AFFINE_TRANSFORMATION_META
      See Also:
    • CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META

      public static final String CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META
      See Also:
    • CAPS_FEATURE_META_GST_VIDEO_META

      public static final String CAPS_FEATURE_META_GST_VIDEO_META
      See Also:
    • CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION

      public static final String CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION
      See Also:
    • META_TAG_VIDEO_COLORSPACE_STR

      public static final String META_TAG_VIDEO_COLORSPACE_STR
      This metadata stays relevant as long as video colorspace is unchanged.
      Since:
      1.2
      See Also:
    • META_TAG_VIDEO_ORIENTATION_STR

      public static final String META_TAG_VIDEO_ORIENTATION_STR
      This metadata stays relevant as long as video orientation is unchanged.
      Since:
      1.2
      See Also:
    • META_TAG_VIDEO_SIZE_STR

      public static final String META_TAG_VIDEO_SIZE_STR
      This metadata stays relevant as long as video size is unchanged.
      Since:
      1.2
      See Also:
    • META_TAG_VIDEO_STR

      public static final String META_TAG_VIDEO_STR
      This metadata is relevant for video streams.
      Since:
      1.2
      See Also:
    • VIDEO_COLORIMETRY_BT2020

      public static final String VIDEO_COLORIMETRY_BT2020
      See Also:
    • VIDEO_COLORIMETRY_BT2020_10

      public static final String VIDEO_COLORIMETRY_BT2020_10
      See Also:
    • VIDEO_COLORIMETRY_BT2100_HLG

      public static final String VIDEO_COLORIMETRY_BT2100_HLG
      See Also:
    • VIDEO_COLORIMETRY_BT2100_PQ

      public static final String VIDEO_COLORIMETRY_BT2100_PQ
      See Also:
    • VIDEO_COLORIMETRY_BT601

      public static final String VIDEO_COLORIMETRY_BT601
      See Also:
    • VIDEO_COLORIMETRY_BT709

      public static final String VIDEO_COLORIMETRY_BT709
      See Also:
    • VIDEO_COLORIMETRY_SMPTE240M

      public static final String VIDEO_COLORIMETRY_SMPTE240M
      See Also:
    • VIDEO_COLORIMETRY_SRGB

      public static final String VIDEO_COLORIMETRY_SRGB
      See Also:
    • VIDEO_COMP_A

      public static final int VIDEO_COMP_A
      See Also:
    • VIDEO_COMP_B

      public static final int VIDEO_COMP_B
      See Also:
    • VIDEO_COMP_G

      public static final int VIDEO_COMP_G
      See Also:
    • VIDEO_COMP_INDEX

      public static final int VIDEO_COMP_INDEX
      See Also:
    • VIDEO_COMP_PALETTE

      public static final int VIDEO_COMP_PALETTE
      See Also:
    • VIDEO_COMP_R

      public static final int VIDEO_COMP_R
      See Also:
    • VIDEO_COMP_U

      public static final int VIDEO_COMP_U
      See Also:
    • VIDEO_COMP_V

      public static final int VIDEO_COMP_V
      See Also:
    • VIDEO_COMP_Y

      public static final int VIDEO_COMP_Y
      See Also:
    • VIDEO_CONVERTER_OPT_ALPHA_MODE

      public static final String VIDEO_CONVERTER_OPT_ALPHA_MODE
      GstVideoAlphaMode, the alpha mode to use. Default is GST_VIDEO_ALPHA_MODE_COPY.
      See Also:
    • VIDEO_CONVERTER_OPT_ALPHA_VALUE

      public static final String VIDEO_CONVERTER_OPT_ALPHA_VALUE
      G_TYPE_DOUBLE, the alpha color value to use. Default to 1.0
      See Also:
    • VIDEO_CONVERTER_OPT_ASYNC_TASKS

      public static final String VIDEO_CONVERTER_OPT_ASYNC_TASKS
      G_TYPE_BOOLEAN, whether gst_video_converter_frame() will return immediately without waiting for the conversion to complete. A subsequent gst_video_converter_frame_finish() must be performed to ensure completion of the conversion before subsequent use. Default false
      Since:
      1.20
      See Also:
    • VIDEO_CONVERTER_OPT_BORDER_ARGB

      public static final String VIDEO_CONVERTER_OPT_BORDER_ARGB
      G_TYPE_UINT, the border color to use if GST_VIDEO_CONVERTER_OPT_FILL_BORDER is set to true. The color is in ARGB format. Default 0xff000000
      See Also:
    • VIDEO_CONVERTER_OPT_CHROMA_MODE

      public static final String VIDEO_CONVERTER_OPT_CHROMA_MODE
      GstVideoChromaMode, set the chroma resample mode subsampled formats. Default is GST_VIDEO_CHROMA_MODE_FULL.
      See Also:
    • VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD

      public static final String VIDEO_CONVERTER_OPT_CHROMA_RESAMPLER_METHOD
      GstVideoChromaMethod, The resampler method to use for chroma resampling. Other options for the resampler can be used, see the GstVideoResampler. Default is GST_VIDEO_RESAMPLER_METHOD_LINEAR
      See Also:
    • VIDEO_CONVERTER_OPT_DEST_HEIGHT

      public static final String VIDEO_CONVERTER_OPT_DEST_HEIGHT
      G_TYPE_INT, height in the destination frame, default destination height
      See Also:
    • VIDEO_CONVERTER_OPT_DEST_WIDTH

      public static final String VIDEO_CONVERTER_OPT_DEST_WIDTH
      G_TYPE_INT, width in the destination frame, default destination width
      See Also:
    • VIDEO_CONVERTER_OPT_DEST_X

      public static final String VIDEO_CONVERTER_OPT_DEST_X
      G_TYPE_INT, x position in the destination frame, default 0
      See Also:
    • VIDEO_CONVERTER_OPT_DEST_Y

      public static final String VIDEO_CONVERTER_OPT_DEST_Y
      G_TYPE_INT, y position in the destination frame, default 0
      See Also:
    • VIDEO_CONVERTER_OPT_DITHER_METHOD

      public static final String VIDEO_CONVERTER_OPT_DITHER_METHOD
      GstVideoDitherMethod, The dither method to use when changing bit depth. Default is GST_VIDEO_DITHER_BAYER.
      See Also:
    • VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION

      public static final String VIDEO_CONVERTER_OPT_DITHER_QUANTIZATION
      G_TYPE_UINT, The quantization amount to dither to. Components will be quantized to multiples of this value. Default is 1
      See Also:
    • VIDEO_CONVERTER_OPT_FILL_BORDER

      public static final String VIDEO_CONVERTER_OPT_FILL_BORDER
      G_TYPE_BOOLEAN, if the destination rectangle does not fill the complete destination image, render a border with GST_VIDEO_CONVERTER_OPT_BORDER_ARGB. Otherwise the unusded pixels in the destination are untouched. Default true.
      See Also:
    • VIDEO_CONVERTER_OPT_GAMMA_MODE

      public static final String VIDEO_CONVERTER_OPT_GAMMA_MODE
      GstVideoGammaMode, set the gamma mode. Default is GST_VIDEO_GAMMA_MODE_NONE.
      See Also:
    • VIDEO_CONVERTER_OPT_MATRIX_MODE

      public static final String VIDEO_CONVERTER_OPT_MATRIX_MODE
      GstVideoMatrixMode, set the color matrix conversion mode for converting between Y'PbPr and non-linear RGB (R'G'B'). Default is GST_VIDEO_MATRIX_MODE_FULL.
      See Also:
    • VIDEO_CONVERTER_OPT_PRIMARIES_MODE

      public static final String VIDEO_CONVERTER_OPT_PRIMARIES_MODE
      GstVideoPrimariesMode, set the primaries conversion mode. Default is GST_VIDEO_PRIMARIES_MODE_NONE.
      See Also:
    • VIDEO_CONVERTER_OPT_RESAMPLER_METHOD

      public static final String VIDEO_CONVERTER_OPT_RESAMPLER_METHOD
      GstVideoResamplerMethod, The resampler method to use for resampling. Other options for the resampler can be used, see the GstVideoResampler. Default is GST_VIDEO_RESAMPLER_METHOD_CUBIC
      See Also:
    • VIDEO_CONVERTER_OPT_RESAMPLER_TAPS

      public static final String VIDEO_CONVERTER_OPT_RESAMPLER_TAPS
      G_TYPE_UINT, The number of taps for the resampler. Default is 0: let the resampler choose a good value.
      See Also:
    • VIDEO_CONVERTER_OPT_SRC_HEIGHT

      public static final String VIDEO_CONVERTER_OPT_SRC_HEIGHT
      G_TYPE_INT, source height to convert, default source height
      See Also:
    • VIDEO_CONVERTER_OPT_SRC_WIDTH

      public static final String VIDEO_CONVERTER_OPT_SRC_WIDTH
      G_TYPE_INT, source width to convert, default source width
      See Also:
    • VIDEO_CONVERTER_OPT_SRC_X

      public static final String VIDEO_CONVERTER_OPT_SRC_X
      G_TYPE_INT, source x position to start conversion, default 0
      See Also:
    • VIDEO_CONVERTER_OPT_SRC_Y

      public static final String VIDEO_CONVERTER_OPT_SRC_Y
      G_TYPE_INT, source y position to start conversion, default 0
      See Also:
    • VIDEO_CONVERTER_OPT_THREADS

      public static final String VIDEO_CONVERTER_OPT_THREADS
      G_TYPE_UINT, maximum number of threads to use. Default 1, 0 for the number of cores.
      See Also:
    • VIDEO_DECODER_MAX_ERRORS

      public static final int VIDEO_DECODER_MAX_ERRORS
      Default maximum number of errors tolerated before signaling error.
      See Also:
    • VIDEO_DECODER_SINK_NAME

      public static final String VIDEO_DECODER_SINK_NAME
      The name of the templates for the sink pad.
      See Also:
    • VIDEO_DECODER_SRC_NAME

      public static final String VIDEO_DECODER_SRC_NAME
      The name of the templates for the source pad.
      See Also:
    • VIDEO_DMA_DRM_CAPS_MAKE

      public static final String VIDEO_DMA_DRM_CAPS_MAKE
      Generic caps string for video wit DMABuf(GST_CAPS_FEATURE_MEMORY_DMABUF) feature, for use in pad templates. As drm-format is supposed to be defined at run-time it's not predefined here.
      Since:
      1.24
      See Also:
    • VIDEO_ENCODER_SINK_NAME

      public static final String VIDEO_ENCODER_SINK_NAME
      The name of the templates for the sink pad.
      See Also:
    • VIDEO_ENCODER_SRC_NAME

      public static final String VIDEO_ENCODER_SRC_NAME
      The name of the templates for the source pad.
      See Also:
    • VIDEO_FORMATS_ALL

      public static final String VIDEO_FORMATS_ALL

      List of all video formats, for use in template caps strings.

      Formats are sorted by decreasing "quality", using these criteria by priority:

      • number of components
      • depth
      • subsampling factor of the width
      • subsampling factor of the height
      • number of planes
      • native endianness preferred
      • pixel stride
      • poffset
      • prefer non-complex formats
      • prefer YUV formats over RGB ones
      • prefer I420 over YV12
      • format name
      See Also:
    • VIDEO_FORMATS_ALL_STR

      public static final String VIDEO_FORMATS_ALL_STR

      Declare all video formats as a string.

      Formats are sorted by decreasing "quality", using these criteria by priority:

      • number of components
      • depth
      • subsampling factor of the width
      • subsampling factor of the height
      • number of planes
      • native endianness preferred
      • pixel stride
      • poffset
      • prefer non-complex formats
      • prefer YUV formats over RGB ones
      • prefer I420 over YV12
      • format name
      Since:
      1.24
      See Also:
    • VIDEO_FORMATS_ANY

      public static final String VIDEO_FORMATS_ANY
      This is similar to GST_VIDEO_FORMATS_ALL but includes formats like DMA_DRM that do not have a software converter. This should be used for passthrough template caps.
      Since:
      1.24
      See Also:
    • VIDEO_FORMATS_ANY_STR

      public static final String VIDEO_FORMATS_ANY_STR
      This is similar to GST_VIDEO_FORMATS_ALL_STR but includes formats like DMA_DRM for which no software converter exists. This should be used for passthrough template caps.
      Since:
      1.24
      See Also:
    • VIDEO_FORMAT_LAST

      public static final int VIDEO_FORMAT_LAST
      Number of video formats in GstVideoFormat.
      Since:
      1.26
      See Also:
    • VIDEO_FPS_RANGE

      public static final String VIDEO_FPS_RANGE
      See Also:
    • VIDEO_MAX_COMPONENTS

      public static final int VIDEO_MAX_COMPONENTS
      See Also:
    • VIDEO_MAX_PLANES

      public static final int VIDEO_MAX_PLANES
      See Also:
    • VIDEO_RESAMPLER_OPT_CUBIC_B

      public static final String VIDEO_RESAMPLER_OPT_CUBIC_B

      G_TYPE_DOUBLE, B parameter of the cubic filter. The B parameter controls the bluriness. Values between 0.0 and 2.0 are accepted. 1/3 is the default.

      Below are some values of popular filters: B C Hermite 0.0 0.0 Spline 1.0 0.0 Catmull-Rom 0.0 1/2 Mitchell 1/3 1/3 Robidoux 0.3782 0.3109 Robidoux Sharp 0.2620 0.3690 Robidoux Soft 0.6796 0.1602

      See Also:
    • VIDEO_RESAMPLER_OPT_CUBIC_C

      public static final String VIDEO_RESAMPLER_OPT_CUBIC_C

      G_TYPE_DOUBLE, C parameter of the cubic filter. The C parameter controls the Keys alpha value. Values between 0.0 and 2.0 are accepted. 1/3 is the default.

      See GST_VIDEO_RESAMPLER_OPT_CUBIC_B for some more common values

      See Also:
    • VIDEO_RESAMPLER_OPT_ENVELOPE

      public static final String VIDEO_RESAMPLER_OPT_ENVELOPE
      G_TYPE_DOUBLE, specifies the size of filter envelope for GSTVIDEORESAMPLERMETHODLANCZOS. values are clamped between 1.0 and 5.0. 2.0 is the default.
      See Also:
    • VIDEO_RESAMPLER_OPT_MAX_TAPS

      public static final String VIDEO_RESAMPLER_OPT_MAX_TAPS
      G_TYPE_INT, limits the maximum number of taps to use. 16 is the default.
      See Also:
    • VIDEO_RESAMPLER_OPT_SHARPEN

      public static final String VIDEO_RESAMPLER_OPT_SHARPEN
      G_TYPE_DOUBLE, specifies sharpening of the filter for GSTVIDEORESAMPLERMETHODLANCZOS. values are clamped between 0.0 and 1.0. 0.0 is the default.
      See Also:
    • VIDEO_RESAMPLER_OPT_SHARPNESS

      public static final String VIDEO_RESAMPLER_OPT_SHARPNESS
      G_TYPE_DOUBLE, specifies sharpness of the filter for GSTVIDEORESAMPLERMETHODLANCZOS. values are clamped between 0.5 and 1.5. 1.0 is the default.
      See Also:
    • VIDEO_SCALER_OPT_DITHER_METHOD

      public static final String VIDEO_SCALER_OPT_DITHER_METHOD
      GstVideoDitherMethod, The dither method to use for propagating quatization errors.
      See Also:
    • VIDEO_SIZE_RANGE

      public static final String VIDEO_SIZE_RANGE
      See Also:
    • VIDEO_TILE_TYPE_MASK

      public static final int VIDEO_TILE_TYPE_MASK
      See Also:
    • VIDEO_TILE_TYPE_SHIFT

      public static final int VIDEO_TILE_TYPE_SHIFT
      See Also:
    • VIDEO_TILE_X_TILES_MASK

      public static final int VIDEO_TILE_X_TILES_MASK
      See Also:
    • VIDEO_TILE_Y_TILES_SHIFT

      public static final int VIDEO_TILE_Y_TILES_SHIFT
      See Also:
  • Constructor Details

    • GstVideo

      public GstVideo()
  • Method Details

    • javagi$ensureInitialized

      public static void javagi$ensureInitialized()
    • ancillaryMetaApiGetType

      public static Type ancillaryMetaApiGetType()
    • bufferAddAncillaryMeta

      public static AncillaryMeta bufferAddAncillaryMeta(Buffer buffer)
      Adds a new GstAncillaryMeta to the buffer. The caller is responsible for setting the appropriate fields.
      Parameters:
      buffer - A GstBuffer
      Returns:
      A new GstAncillaryMeta, or null if an error happened.
      Since:
      1.24
    • bufferAddVideoAfdMeta

      public static VideoAFDMeta bufferAddVideoAfdMeta(Buffer buffer, byte field, VideoAFDSpec spec, VideoAFDValue afd)
      Attaches GstVideoAFDMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      field - 0 for progressive or field 1 and 1 for field 2
      spec - GstVideoAFDSpec that applies to AFD value
      afd - GstVideoAFDValue AFD enumeration
      Returns:
      the GstVideoAFDMeta on buffer.
      Since:
      1.18
    • bufferAddVideoAffineTransformationMeta

      public static VideoAffineTransformationMeta bufferAddVideoAffineTransformationMeta(Buffer buffer)
      Attaches GstVideoAffineTransformationMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      Returns:
      the GstVideoAffineTransformationMeta on buffer.
      Since:
      1.8
    • bufferAddVideoBarMeta

      public static VideoBarMeta bufferAddVideoBarMeta(Buffer buffer, byte field, boolean isLetterbox, int barData1, int barData2)
      Attaches GstVideoBarMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      field - 0 for progressive or field 1 and 1 for field 2
      isLetterbox - if true then bar data specifies letterbox, otherwise pillarbox
      barData1 - If isLetterbox is true, then the value specifies the last line of a horizontal letterbox bar area at top of reconstructed frame. Otherwise, it specifies the last horizontal luminance sample of a vertical pillarbox bar area at the left side of the reconstructed frame
      barData2 - If isLetterbox is true, then the value specifies the first line of a horizontal letterbox bar area at bottom of reconstructed frame. Otherwise, it specifies the first horizontal luminance sample of a vertical pillarbox bar area at the right side of the reconstructed frame.
      Returns:

      the GstVideoBarMeta on buffer.

      See Table 6.11 Bar Data Syntax

      https://www.atsc.org/wp-content/uploads/2015/03/a_53-Part-4-2009.pdf

      Since:
      1.18
    • bufferAddVideoCaptionMeta

      public static VideoCaptionMeta bufferAddVideoCaptionMeta(Buffer buffer, VideoCaptionType captionType, @Nullable byte @Nullable [] data)
      Attaches GstVideoCaptionMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      captionType - The type of Closed Caption to add
      data - The Closed Caption data
      Returns:
      the GstVideoCaptionMeta on buffer.
      Since:
      1.16
    • bufferAddVideoCodecAlphaMeta

      public static VideoCodecAlphaMeta bufferAddVideoCodecAlphaMeta(Buffer buffer, Buffer alphaBuffer)
      Attaches a GstVideoCodecAlphaMeta metadata to buffer with the given alpha buffer.
      Parameters:
      buffer - a GstBuffer
      alphaBuffer - a GstBuffer
      Returns:
      the GstVideoCodecAlphaMeta on buffer.
      Since:
      1.20
    • bufferAddVideoGlTextureUploadMeta

      public static VideoGLTextureUploadMeta bufferAddVideoGlTextureUploadMeta(Buffer buffer, VideoGLTextureOrientation textureOrientation, int nTextures, MemorySegment textureType, @Nullable VideoGLTextureUpload upload, @Nullable BoxedCopyFunc userDataCopy, @Nullable BoxedFreeFunc userDataFree)
      Attaches GstVideoGLTextureUploadMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      textureOrientation - the GstVideoGLTextureOrientation
      nTextures - the number of textures
      textureType - array of GstVideoGLTextureType
      upload - the function to upload the buffer to a specific texture ID
      userDataCopy - function to copy userData
      userDataFree - function to free userData
      Returns:
      the GstVideoGLTextureUploadMeta on buffer.
    • bufferAddVideoMeta

      public static VideoMeta bufferAddVideoMeta(Buffer buffer, Set<VideoFrameFlags> flags, VideoFormat format, int width, int height)

      Attaches GstVideoMeta metadata to buffer with the given parameters and the default offsets and strides for format and width x height.

      This function calculates the default offsets and strides and then calls gst_buffer_add_video_meta_full() with them.

      Parameters:
      buffer - a GstBuffer
      flags - GstVideoFrameFlags
      format - a GstVideoFormat
      width - the width
      height - the height
      Returns:
      the GstVideoMeta on buffer.
    • bufferAddVideoMeta

      public static VideoMeta bufferAddVideoMeta(Buffer buffer, VideoFrameFlags flags, VideoFormat format, int width, int height)

      Attaches GstVideoMeta metadata to buffer with the given parameters and the default offsets and strides for format and width x height.

      This function calculates the default offsets and strides and then calls gst_buffer_add_video_meta_full() with them.

      Parameters:
      buffer - a GstBuffer
      flags - GstVideoFrameFlags
      format - a GstVideoFormat
      width - the width
      height - the height
      Returns:
      the GstVideoMeta on buffer.
    • bufferAddVideoMetaFull

      public static VideoMeta bufferAddVideoMetaFull(Buffer buffer, Set<VideoFrameFlags> flags, VideoFormat format, int width, int height, int nPlanes, @Nullable long @Nullable [] offset, @Nullable int @Nullable [] stride)
      Attaches GstVideoMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      flags - GstVideoFrameFlags
      format - a GstVideoFormat
      width - the width
      height - the height
      nPlanes - number of planes
      offset - offset of each plane
      stride - stride of each plane
      Returns:
      the GstVideoMeta on buffer.
      Throws:
      IllegalArgumentException - when length of offset is less than 4
      IllegalArgumentException - when length of stride is less than 4
    • bufferAddVideoMetaFull

      public static VideoMeta bufferAddVideoMetaFull(Buffer buffer, VideoFrameFlags flags, VideoFormat format, int width, int height, int nPlanes, @Nullable long @Nullable [] offset, @Nullable int @Nullable [] stride)
      Attaches GstVideoMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      flags - GstVideoFrameFlags
      format - a GstVideoFormat
      width - the width
      height - the height
      nPlanes - number of planes
      offset - offset of each plane
      stride - stride of each plane
      Returns:
      the GstVideoMeta on buffer.
    • bufferAddVideoOverlayCompositionMeta

      public static VideoOverlayCompositionMeta bufferAddVideoOverlayCompositionMeta(Buffer buf, @Nullable VideoOverlayComposition comp)
      Sets an overlay composition on a buffer. The buffer will obtain its own reference to the composition, meaning this function does not take ownership of comp.
      Parameters:
      buf - a GstBuffer
      comp - a GstVideoOverlayComposition
      Returns:
      a GstVideoOverlayCompositionMeta
    • bufferAddVideoRegionOfInterestMeta

      public static VideoRegionOfInterestMeta bufferAddVideoRegionOfInterestMeta(Buffer buffer, String roiType, int x, int y, int w, int h)
      Attaches GstVideoRegionOfInterestMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      roiType - Type of the region of interest (e.g. "face")
      x - X position
      y - Y position
      w - width
      h - height
      Returns:
      the GstVideoRegionOfInterestMeta on buffer.
    • bufferAddVideoRegionOfInterestMetaId

      public static VideoRegionOfInterestMeta bufferAddVideoRegionOfInterestMetaId(Buffer buffer, Quark roiType, int x, int y, int w, int h)
      Attaches GstVideoRegionOfInterestMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      roiType - Type of the region of interest (e.g. "face")
      x - X position
      y - Y position
      w - width
      h - height
      Returns:
      the GstVideoRegionOfInterestMeta on buffer.
    • bufferAddVideoSeiUserDataUnregisteredMeta

      public static VideoSEIUserDataUnregisteredMeta bufferAddVideoSeiUserDataUnregisteredMeta(Buffer buffer, MemorySegment uuid, @Nullable MemorySegment data, long size)
      Attaches GstVideoSEIUserDataUnregisteredMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      uuid - User Data Unregistered UUID
      data - SEI User Data Unregistered buffer
      size - size of the data buffer
      Returns:
      the GstVideoSEIUserDataUnregisteredMeta on buffer.
      Since:
      1.22
    • bufferAddVideoTimeCodeMeta

      public static @Nullable VideoTimeCodeMeta bufferAddVideoTimeCodeMeta(Buffer buffer, VideoTimeCode tc)
      Attaches GstVideoTimeCodeMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      tc - a GstVideoTimeCode
      Returns:
      the GstVideoTimeCodeMeta on buffer, or (since 1.16) null if the timecode was invalid.
      Since:
      1.10
    • bufferAddVideoTimeCodeMetaFull

      public static @Nullable VideoTimeCodeMeta bufferAddVideoTimeCodeMetaFull(Buffer buffer, int fpsN, int fpsD, DateTime latestDailyJam, Set<VideoTimeCodeFlags> flags, int hours, int minutes, int seconds, int frames, int fieldCount)
      Attaches GstVideoTimeCodeMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      fpsN - framerate numerator
      fpsD - framerate denominator
      latestDailyJam - a GDateTime for the latest daily jam
      flags - a GstVideoTimeCodeFlags
      hours - hours since the daily jam
      minutes - minutes since the daily jam
      seconds - seconds since the daily jam
      frames - frames since the daily jam
      fieldCount - fields since the daily jam
      Returns:
      the GstVideoTimeCodeMeta on buffer, or (since 1.16) null if the timecode was invalid.
      Since:
      1.10
    • bufferAddVideoTimeCodeMetaFull

      public static @Nullable VideoTimeCodeMeta bufferAddVideoTimeCodeMetaFull(Buffer buffer, int fpsN, int fpsD, DateTime latestDailyJam, VideoTimeCodeFlags flags, int hours, int minutes, int seconds, int frames, int fieldCount)
      Attaches GstVideoTimeCodeMeta metadata to buffer with the given parameters.
      Parameters:
      buffer - a GstBuffer
      fpsN - framerate numerator
      fpsD - framerate denominator
      latestDailyJam - a GDateTime for the latest daily jam
      flags - a GstVideoTimeCodeFlags
      hours - hours since the daily jam
      minutes - minutes since the daily jam
      seconds - seconds since the daily jam
      frames - frames since the daily jam
      fieldCount - fields since the daily jam
      Returns:
      the GstVideoTimeCodeMeta on buffer, or (since 1.16) null if the timecode was invalid.
      Since:
      1.10
    • bufferGetVideoMeta

      public static @Nullable VideoMeta bufferGetVideoMeta(Buffer buffer)

      Find the GstVideoMeta on buffer with the lowest id.

      Buffers can contain multiple GstVideoMeta metadata items when dealing with multiview buffers.

      Parameters:
      buffer - a GstBuffer
      Returns:
      the GstVideoMeta with lowest id (usually 0) or null when there is no such metadata on buffer.
    • bufferGetVideoMetaId

      public static @Nullable VideoMeta bufferGetVideoMetaId(Buffer buffer, int id)

      Find the GstVideoMeta on buffer with the given id.

      Buffers can contain multiple GstVideoMeta metadata items when dealing with multiview buffers.

      Parameters:
      buffer - a GstBuffer
      id - a metadata id
      Returns:
      the GstVideoMeta with id or null when there is no such metadata on buffer.
    • bufferGetVideoRegionOfInterestMetaId

      public static @Nullable VideoRegionOfInterestMeta bufferGetVideoRegionOfInterestMetaId(Buffer buffer, int id)

      Find the GstVideoRegionOfInterestMeta on buffer with the given id.

      Buffers can contain multiple GstVideoRegionOfInterestMeta metadata items if multiple regions of interests are marked on a frame.

      Parameters:
      buffer - a GstBuffer
      id - a metadata id
      Returns:
      the GstVideoRegionOfInterestMeta with id or null when there is no such metadata on buffer.
    • bufferPoolConfigGetVideoAlignment

      public static boolean bufferPoolConfigGetVideoAlignment(Structure config, VideoAlignment align)
      Get the video alignment from the bufferpool configuration config in in align
      Parameters:
      config - a GstStructure
      align - a GstVideoAlignment
      Returns:
      true if config could be parsed correctly.
    • bufferPoolConfigSetVideoAlignment

      public static void bufferPoolConfigSetVideoAlignment(Structure config, VideoAlignment align)
      Set the video alignment in align to the bufferpool configuration config
      Parameters:
      config - a GstStructure
      align - a GstVideoAlignment
    • isVideoOverlayPrepareWindowHandleMessage

      public static boolean isVideoOverlayPrepareWindowHandleMessage(Message msg)
      Convenience function to check if the given message is a "prepare-window-handle" message from a GstVideoOverlay.
      Parameters:
      msg - a GstMessage
      Returns:
      whether msg is a "prepare-window-handle" message
    • videoAfdMetaApiGetType

      public static Type videoAfdMetaApiGetType()
    • videoAffineTransformationMetaApiGetType

      public static Type videoAffineTransformationMetaApiGetType()
    • videoBarMetaApiGetType

      public static Type videoBarMetaApiGetType()
    • videoBlend

      public static boolean videoBlend(VideoFrame dest, VideoFrame src, int x, int y, float globalAlpha)
      Lets you blend the src image into the dest image
      Parameters:
      dest - The GstVideoFrame where to blend src in
      src - the GstVideoFrame that we want to blend into
      x - The x offset in pixel where the src image should be blended
      y - the y offset in pixel where the src image should be blended
      globalAlpha - the global_alpha each per-pixel alpha value is multiplied with
    • videoBlendScaleLinearRGBA

      public static void videoBlendScaleLinearRGBA(VideoInfo src, Buffer srcBuffer, int destHeight, int destWidth, VideoInfo dest, Out<Buffer> destBuffer)
      Scales a buffer containing RGBA (or AYUV) video. This is an internal helper function which is used to scale subtitle overlays, and may be deprecated in the near future. Use GstVideoScaler to scale video buffers instead.
      Parameters:
      src - the GstVideoInfo describing the video data in srcBuffer
      srcBuffer - the source buffer containing video pixels to scale
      destHeight - the height in pixels to scale the video data in srcBuffer to
      destWidth - the width in pixels to scale the video data in srcBuffer to
      dest - pointer to a GstVideoInfo structure that will be filled in with the details for destBuffer
      destBuffer - a pointer to a GstBuffer variable, which will be set to a newly-allocated buffer containing the scaled pixels.
    • videoCalculateDisplayRatio

      public static boolean videoCalculateDisplayRatio(Out<Integer> darN, Out<Integer> darD, int videoWidth, int videoHeight, int videoParN, int videoParD, int displayParN, int displayParD)
      Given the Pixel Aspect Ratio and size of an input video frame, and the pixel aspect ratio of the intended display device, calculates the actual display ratio the video will be rendered with.
      Parameters:
      darN - Numerator of the calculated display_ratio
      darD - Denominator of the calculated display_ratio
      videoWidth - Width of the video frame in pixels
      videoHeight - Height of the video frame in pixels
      videoParN - Numerator of the pixel aspect ratio of the input video.
      videoParD - Denominator of the pixel aspect ratio of the input video.
      displayParN - Numerator of the pixel aspect ratio of the display device
      displayParD - Denominator of the pixel aspect ratio of the display device
      Returns:
      A boolean indicating success and a calculated Display Ratio in the dar_n and dar_d parameters. The return value is FALSE in the case of integer overflow or other error.
    • videoCaptionMetaApiGetType

      public static Type videoCaptionMetaApiGetType()
    • videoCenterRect

      public static void videoCenterRect(VideoRectangle src, VideoRectangle dst, VideoRectangle result, boolean scaling)
      Takes src rectangle and position it at the center of dst rectangle with or without scaling. It handles clipping if the src rectangle is bigger than the dst one and scaling is set to FALSE.
      Parameters:
      src - a pointer to GstVideoRectangle describing the source area
      dst - a pointer to GstVideoRectangle describing the destination area
      result - a pointer to a GstVideoRectangle which will receive the result area
      scaling - a gboolean indicating if scaling should be applied or not
      Since:
      1.20
    • videoChromaFromString

      @Deprecated public static Set<VideoChromaSite> videoChromaFromString(String s)
      Deprecated.
      Use gst_video_chroma_site_from_string() instead.
      Convert s to a GstVideoChromaSite
      Parameters:
      s - a chromasite string
      Returns:
      a GstVideoChromaSite or VideoChromaSite.UNKNOWN when s does not contain a valid chroma description.
    • videoChromaResample

      public static void videoChromaResample(VideoChromaResample resample, @Nullable MemorySegment lines, int width)
      Perform resampling of width chroma pixels in lines.
      Parameters:
      resample - a GstVideoChromaResample
      lines - pixel lines
      width - the number of pixels on one line
    • videoChromaToString

      @Deprecated public static String videoChromaToString(Set<VideoChromaSite> site)
      Deprecated.
      Use gst_video_chroma_site_to_string() instead.
      Converts site to its string representation.
      Parameters:
      site - a GstVideoChromaSite
      Returns:
      a string describing site.
    • videoChromaToString

      @Deprecated public static String videoChromaToString(VideoChromaSite... site)
      Deprecated.
      Use gst_video_chroma_site_to_string() instead.
      Converts site to its string representation.
      Parameters:
      site - a GstVideoChromaSite
      Returns:
      a string describing site.
    • videoCodecAlphaMetaApiGetType

      public static Type videoCodecAlphaMetaApiGetType()
    • videoColorTransferDecode

      @Deprecated public static double videoColorTransferDecode(VideoTransferFunction func, double val)
      Deprecated.
    • videoColorTransferEncode

      @Deprecated public static double videoColorTransferEncode(VideoTransferFunction func, double val)
      Deprecated.
    • videoConvertSample

      public static @Nullable Sample videoConvertSample(Sample sample, Caps toCaps, ClockTime timeout) throws GErrorException

      Converts a raw video buffer into the specified output caps.

      The output caps can be any raw video formats or any image formats (jpeg, png, ...).

      The width, height and pixel-aspect-ratio can also be specified in the output caps.

      Parameters:
      sample - a GstSample
      toCaps - the GstCaps to convert to
      timeout - the maximum amount of time allowed for the processing.
      Returns:
      The converted GstSample, or null if an error happened (in which case err will point to the GError).
      Throws:
      GErrorException - see GError
    • videoConvertSampleAsync

      public static void videoConvertSampleAsync(Sample sample, Caps toCaps, ClockTime timeout, @Nullable VideoConvertSampleCallback callback)

      Converts a raw video buffer into the specified output caps.

      The output caps can be any raw video formats or any image formats (jpeg, png, ...).

      The width, height and pixel-aspect-ratio can also be specified in the output caps.

      callback will be called after conversion, when an error occurred or if conversion didn't finish after timeout. callback will always be called from the thread default GMainContext, see g_main_context_get_thread_default(). If GLib before 2.22 is used, this will always be the global default main context.

      destroyNotify will be called after the callback was called and userData is not needed anymore.

      Parameters:
      sample - a GstSample
      toCaps - the GstCaps to convert to
      timeout - the maximum amount of time allowed for the processing.
      callback - GstVideoConvertSampleCallback that will be called after conversion.
    • videoCropMetaApiGetType

      public static Type videoCropMetaApiGetType()
    • videoDmaDrmFormatFromGstFormat

      public static int videoDmaDrmFormatFromGstFormat(VideoFormat format, @Nullable MemorySegment modifier)
      Converting the video format into dma drm fourcc/modifier pair. If no matching fourcc found, then DRM_FORMAT_INVALID is returned and modifier will be set to DRM_FORMAT_MOD_INVALID.
      Parameters:
      format - a GstVideoFormat
      modifier - return location for the modifier
      Returns:
      the DRM_FORMAT_* corresponding to format.
      Since:
      1.26
    • videoDmaDrmFormatToGstFormat

      public static VideoFormat videoDmaDrmFormatToGstFormat(int fourcc, long modifier)
      Converting a dma drm fourcc and modifier pair into a GstVideoFormat. If no matching video format is found, then GST_VIDEO_FORMAT_UNKNOWN is returned.
      Parameters:
      fourcc - the dma drm fourcc value.
      modifier - the dma drm modifier.
      Returns:
      the GST_VIDEO_FORMAT_* corresponding to the fourcc and modifier pair.
      Since:
      1.26
    • videoDmaDrmFourccFromFormat

      public static int videoDmaDrmFourccFromFormat(VideoFormat format)
      Converting the video format into dma drm fourcc. If no matching fourcc found, then DRM_FORMAT_INVALID is returned.
      Parameters:
      format - a GstVideoFormat
      Returns:
      the DRM_FORMAT_* corresponding to the format.
      Since:
      1.24
    • videoDmaDrmFourccFromString

      public static int videoDmaDrmFourccFromString(String formatStr, @Nullable Out<Long> modifier)
      Convert the formatStr string into the drm fourcc value. The modifier is also parsed if we want. Please note that the formatStr should follow the fourcc:modifier kind style, such as NV12:0x0100000000000002
      Parameters:
      formatStr - a drm format string
      modifier - Return the modifier in format or null to ignore.
      Returns:
      The drm fourcc value or DRM_FORMAT_INVALID if formatStr is invalid.
      Since:
      1.24
    • videoDmaDrmFourccToFormat

      public static VideoFormat videoDmaDrmFourccToFormat(int fourcc)
      Converting a dma drm fourcc into the video format. If no matching video format found, then GST_VIDEO_FORMAT_UNKNOWN is returned.
      Parameters:
      fourcc - the dma drm value.
      Returns:
      the GST_VIDEO_FORMAT_* corresponding to the fourcc.
      Since:
      1.24
    • videoDmaDrmFourccToString

      public static @Nullable String videoDmaDrmFourccToString(int fourcc, long modifier)
      Returns a string containing drm kind format, such as NV12:0x0100000000000002, or NULL otherwise.
      Parameters:
      fourcc - a drm fourcc value.
      modifier - the associated modifier value.
      Returns:
      the drm kind string composed of to fourcc and modifier.
      Since:
      1.24
    • videoEventIsForceKeyUnit

      public static boolean videoEventIsForceKeyUnit(Event event)
      Checks if an event is a force key unit event. Returns true for both upstream and downstream force key unit events.
      Parameters:
      event - A GstEvent to check
      Returns:
      true if the event is a valid force key unit event
    • videoEventNewDownstreamForceKeyUnit

      public static Event videoEventNewDownstreamForceKeyUnit(ClockTime timestamp, ClockTime streamTime, ClockTime runningTime, boolean allHeaders, int count)

      Creates a new downstream force key unit event. A downstream force key unit event can be sent down the pipeline to request downstream elements to produce a key unit. A downstream force key unit event must also be sent when handling an upstream force key unit event to notify downstream that the latter has been handled.

      To parse an event created by gst_video_event_new_downstream_force_key_unit() use gst_video_event_parse_downstream_force_key_unit().

      Parameters:
      timestamp - the timestamp of the buffer that starts a new key unit
      streamTime - the stream_time of the buffer that starts a new key unit
      runningTime - the running_time of the buffer that starts a new key unit
      allHeaders - true to produce headers when starting a new key unit
      count - integer that can be used to number key units
      Returns:
      The new GstEvent
    • videoEventNewStillFrame

      public static Event videoEventNewStillFrame(boolean inStill)

      Creates a new Still Frame event. If inStill is true, then the event represents the start of a still frame sequence. If it is false, then the event ends a still frame sequence.

      To parse an event created by gst_video_event_new_still_frame() use gst_video_event_parse_still_frame().

      Parameters:
      inStill - boolean value for the still-frame state of the event.
      Returns:
      The new GstEvent
    • videoEventNewUpstreamForceKeyUnit

      public static Event videoEventNewUpstreamForceKeyUnit(ClockTime runningTime, boolean allHeaders, int count)

      Creates a new upstream force key unit event. An upstream force key unit event can be sent to request upstream elements to produce a key unit.

      runningTime can be set to request a new key unit at a specific running_time. If set to GST_CLOCK_TIME_NONE, upstream elements will produce a new key unit as soon as possible.

      To parse an event created by gst_video_event_new_downstream_force_key_unit() use gst_video_event_parse_downstream_force_key_unit().

      Parameters:
      runningTime - the running_time at which a new key unit should be produced
      allHeaders - true to produce headers when starting a new key unit
      count - integer that can be used to number key units
      Returns:
      The new GstEvent
    • videoEventParseDownstreamForceKeyUnit

      public static boolean videoEventParseDownstreamForceKeyUnit(Event event, ClockTime timestamp, ClockTime streamTime, ClockTime runningTime, Out<Boolean> allHeaders, Out<Integer> count)

      Get timestamp, stream-time, running-time, all-headers and count in the force key unit event. See gst_video_event_new_downstream_force_key_unit() for a full description of the downstream force key unit event.

      runningTime will be adjusted for any pad offsets of pads it was passing through.

      Parameters:
      event - A GstEvent to parse
      timestamp - A pointer to the timestamp in the event
      streamTime - A pointer to the stream-time in the event
      runningTime - A pointer to the running-time in the event
      allHeaders - A pointer to the all_headers flag in the event
      count - A pointer to the count field of the event
      Returns:
      true if the event is a valid downstream force key unit event.
    • videoEventParseStillFrame

      public static boolean videoEventParseStillFrame(Event event, Out<Boolean> inStill)

      Parse a GstEvent, identify if it is a Still Frame event, and return the still-frame state from the event if it is. If the event represents the start of a still frame, the in_still variable will be set to TRUE, otherwise FALSE. It is OK to pass NULL for the in_still variable order to just check whether the event is a valid still-frame event.

      Create a still frame event using gst_video_event_new_still_frame()

      Parameters:
      event - A GstEvent to parse
      inStill - A boolean to receive the still-frame status from the event, or NULL
      Returns:
      true if the event is a valid still-frame event. false if not
    • videoEventParseUpstreamForceKeyUnit

      public static boolean videoEventParseUpstreamForceKeyUnit(Event event, ClockTime runningTime, Out<Boolean> allHeaders, Out<Integer> count)

      Get running-time, all-headers and count in the force key unit event. See gst_video_event_new_upstream_force_key_unit() for a full description of the upstream force key unit event.

      Create an upstream force key unit event using gst_video_event_new_upstream_force_key_unit()

      runningTime will be adjusted for any pad offsets of pads it was passing through.

      Parameters:
      event - A GstEvent to parse
      runningTime - A pointer to the running_time in the event
      allHeaders - A pointer to the all_headers flag in the event
      count - A pointer to the count field in the event
      Returns:
      true if the event is a valid upstream force-key-unit event. false if not
    • videoFormatsAny

      public static VideoFormat[] videoFormatsAny()
      Return all the raw video formats supported by GStreamer including special opaque formats such as VideoFormat.DMA_DRM for which no software conversion exists. This should be use for passthrough template cpas.
      Returns:
      an array of GstVideoFormat
      Since:
      1.24
    • videoFormatsRaw

      public static VideoFormat[] videoFormatsRaw()
      Return all the raw video formats supported by GStreamer.
      Returns:
      an array of GstVideoFormat
      Since:
      1.18
    • videoGlTextureUploadMetaApiGetType

      public static Type videoGlTextureUploadMetaApiGetType()
    • videoGuessFramerate

      public static boolean videoGuessFramerate(ClockTime duration, @Nullable Out<Integer> destN, @Nullable Out<Integer> destD)

      Given the nominal duration of one video frame, this function will check some standard framerates for a close match (within 0.1%) and return one if possible,

      It will calculate an arbitrary framerate if no close match was found, and return false.

      It returns false if a duration of 0 is passed.

      Parameters:
      duration - Nominal duration of one frame
      destN - Numerator of the calculated framerate
      destD - Denominator of the calculated framerate
      Returns:
      true if a close "standard" framerate was recognised, and false otherwise.
      Since:
      1.6
    • videoIsCommonAspectRatio

      public static boolean videoIsCommonAspectRatio(int width, int height, int parN, int parD)
      Given a frame's dimensions and pixel aspect ratio, this function will calculate the frame's aspect ratio and compare it against a set of common well-known "standard" aspect ratios.
      Parameters:
      width - Width of the video frame
      height - Height of the video frame
      parN - Pixel aspect ratio numerator
      parD - Pixel aspect ratio denominator
      Returns:
      true if a known "standard" aspect ratio was recognised, and false otherwise.
      Since:
      1.22
    • videoIsDmaDrmCaps

      public static boolean videoIsDmaDrmCaps(Caps caps)
      Check whether the caps is a dma drm kind caps. Please note that the caps should be fixed.
      Parameters:
      caps - a GstCaps
      Returns:
      true if the caps is a dma drm caps.
      Since:
      1.24
    • videoMakeRawCaps

      public static Caps videoMakeRawCaps(@Nullable VideoFormat @Nullable [] formats)
      Return a generic raw video caps for formats defined in formats. If formats is null returns a caps for all the supported raw video formats, see gst_video_formats_raw().
      Parameters:
      formats - an array of raw GstVideoFormat, or null
      Returns:
      a video GstCaps
      Since:
      1.18
    • videoMakeRawCapsWithFeatures

      public static Caps videoMakeRawCapsWithFeatures(@Nullable VideoFormat @Nullable [] formats, @Nullable CapsFeatures features)
      Return a generic raw video caps for formats defined in formats with features features. If formats is null returns a caps for all the supported video formats, see gst_video_formats_raw().
      Parameters:
      formats - an array of raw GstVideoFormat, or null
      features - the GstCapsFeatures to set on the caps
      Returns:
      a video GstCaps
      Since:
      1.18
    • videoMetaApiGetType

      public static Type videoMetaApiGetType()
    • videoMultiviewGetDoubledHeightModes

      public static Value videoMultiviewGetDoubledHeightModes()
    • videoMultiviewGetDoubledSizeModes

      public static Value videoMultiviewGetDoubledSizeModes()
    • videoMultiviewGetDoubledWidthModes

      public static Value videoMultiviewGetDoubledWidthModes()
    • videoMultiviewGetMonoModes

      public static Value videoMultiviewGetMonoModes()
    • videoMultiviewGetUnpackedModes

      public static Value videoMultiviewGetUnpackedModes()
    • videoMultiviewGuessHalfAspect

      public static boolean videoMultiviewGuessHalfAspect(VideoMultiviewMode mvMode, int width, int height, int parN, int parD)
    • videoMultiviewVideoInfoChangeMode

      public static void videoMultiviewVideoInfoChangeMode(VideoInfo info, VideoMultiviewMode outMviewMode, Set<VideoMultiviewFlags> outMviewFlags)
      Utility function that transforms the width/height/PAR and multiview mode and flags of a GstVideoInfo into the requested mode.
      Parameters:
      info - A GstVideoInfo structure to operate on
      outMviewMode - A GstVideoMultiviewMode value
      outMviewFlags - A set of GstVideoMultiviewFlags
      Since:
      1.6
    • videoMultiviewVideoInfoChangeMode

      public static void videoMultiviewVideoInfoChangeMode(VideoInfo info, VideoMultiviewMode outMviewMode, VideoMultiviewFlags... outMviewFlags)
      Utility function that transforms the width/height/PAR and multiview mode and flags of a GstVideoInfo into the requested mode.
      Parameters:
      info - A GstVideoInfo structure to operate on
      outMviewMode - A GstVideoMultiviewMode value
      outMviewFlags - A set of GstVideoMultiviewFlags
      Since:
      1.6
    • videoOverlayCompositionMetaApiGetType

      public static Type videoOverlayCompositionMetaApiGetType()
    • videoRegionOfInterestMetaApiGetType

      public static Type videoRegionOfInterestMetaApiGetType()
    • videoSeiUserDataUnregisteredMetaApiGetType

      public static Type videoSeiUserDataUnregisteredMetaApiGetType()
    • videoSeiUserDataUnregisteredParsePrecisionTimeStamp

      public static boolean videoSeiUserDataUnregisteredParsePrecisionTimeStamp(VideoSEIUserDataUnregisteredMeta userData, Out<Byte> status, Out<Long> precisionTimeStamp)
      Parses and returns the Precision Time Stamp (ST 0604) from the SEI User Data Unregistered buffer
      Parameters:
      userData - a GstVideoSEIUserDataUnregisteredMeta
      status - User Data Unregistered UUID
      precisionTimeStamp - The parsed Precision Time Stamp SEI
      Returns:
      True if data is a Precision Time Stamp and it was parsed correctly
      Since:
      1.22
    • videoTileGetIndex

      public static int videoTileGetIndex(VideoTileMode mode, int x, int y, int xTiles, int yTiles)

      Get the tile index of the tile at coordinates x and y in the tiled image of xTiles by yTiles.

      Use this method when mode is of type VideoTileType.INDEXED.

      Parameters:
      mode - a GstVideoTileMode
      x - x coordinate
      y - y coordinate
      xTiles - number of horizintal tiles
      yTiles - number of vertical tiles
      Returns:
      the index of the tile at x and y in the tiled image of xTiles by yTiles.
      Since:
      1.4
    • videoTimeCodeMetaApiGetType

      public static Type videoTimeCodeMetaApiGetType()