Function

GstVideo-1.0GstVideobuffer_add_video_bar_metaSince 1.18

  • Attaches GstVideo.VideoBarMeta metadata to buffer with the given parameters.

    Parameters

    • buffer: Gst.Buffer
    • field: number

      0 for progressive or field 1 and 1 for field 2

    • is_letterbox: boolean

      if true then bar data specifies letterbox, otherwise pillarbox

    • bar_data1: number

      If is_letterbox 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

    • bar_data2: number

      If is_letterbox 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 VideoBarMeta

    the GstVideo.VideoBarMeta on buffer. See Table 6.11 Bar Data Syntax https://www.atsc.org/wp-content/uploads/2015/03/a_53-Part-4-2009.pdf

    1.18