Class VideoBarMeta

java.lang.Object
org.javagi.base.ProxyInstance
org.freedesktop.gstreamer.video.VideoBarMeta
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class VideoBarMeta extends ProxyInstance

Bar data should be included in video user data whenever the rectangular picture area containing useful information does not extend to the full height or width of the coded frame and AFD alone is insufficient to describe the extent of the image.

Note: either vertical or horizontal bars are specified, but not both.

For more details, see:

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

and SMPTE ST2016-1

Since:
1.18
  • Constructor Details

    • VideoBarMeta

      public VideoBarMeta(MemorySegment address)
      Create a VideoBarMeta proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • VideoBarMeta

      public VideoBarMeta(Arena arena)
      Allocate a new VideoBarMeta.
      Parameters:
      arena - to control the memory allocation scope
    • VideoBarMeta

      public VideoBarMeta()
      Allocate a new VideoBarMeta. The memory is allocated with Arena.ofAuto().
    • VideoBarMeta

      public VideoBarMeta(Meta meta, byte field, boolean isLetterbox, int barData1, int barData2, Arena arena)
      Allocate a new VideoBarMeta with the fields set to the provided values.
      Parameters:
      meta - value for the field meta
      field - value for the field field
      isLetterbox - value for the field isLetterbox
      barData1 - value for the field barData1
      barData2 - value for the field barData2
      arena - to control the memory allocation scope
    • VideoBarMeta

      public VideoBarMeta(Meta meta, byte field, boolean isLetterbox, int barData1, int barData2)
      Allocate a new VideoBarMeta with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      meta - value for the field meta
      field - value for the field field
      isLetterbox - value for the field isLetterbox
      barData1 - value for the field barData1
      barData2 - value for the field barData2
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readMeta

      public @Nullable Meta readMeta()
      Read the value of the field meta.
      Returns:
      The value of the field meta
    • writeMeta

      public void writeMeta(@Nullable Meta meta)
      Write a value in the field meta.
      Parameters:
      meta - The new value for the field meta
    • readField

      public byte readField()
      Read the value of the field field.
      Returns:
      The value of the field field
    • writeField

      public void writeField(byte field)
      Write a value in the field field.
      Parameters:
      field - The new value for the field field
    • readIsLetterbox

      public boolean readIsLetterbox()
      Read the value of the field is_letterbox.
      Returns:
      The value of the field is_letterbox
    • writeIsLetterbox

      public void writeIsLetterbox(boolean isLetterbox)
      Write a value in the field is_letterbox.
      Parameters:
      isLetterbox - The new value for the field is_letterbox
    • readBarData1

      public int readBarData1()
      Read the value of the field bar_data1.
      Returns:
      The value of the field bar_data1
    • writeBarData1

      public void writeBarData1(int barData1)
      Write a value in the field bar_data1.
      Parameters:
      barData1 - The new value for the field bar_data1
    • readBarData2

      public int readBarData2()
      Read the value of the field bar_data2.
      Returns:
      The value of the field bar_data2
    • writeBarData2

      public void writeBarData2(int barData2)
      Write a value in the field bar_data2.
      Parameters:
      barData2 - The new value for the field bar_data2
    • getInfo

      public static MetaInfo getInfo()