buffer_add_video_bar_meta


Description:

[ CCode ( cname = "gst_buffer_add_video_bar_meta" ) ]
[ Version ( since = "1.18" ) ]
public unowned BarMeta? buffer_add_video_bar_meta (Buffer buffer, uint8 field, bool is_letterbox, uint bar_data1, uint bar_data2)

Attaches BarMeta metadata to buffer with the given parameters.

Parameters:

buffer

a Buffer

field

0 for progressive or field 1 and 1 for field 2

is_letterbox

if true then bar data specifies letterbox, otherwise pillarbox

bar_data1

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

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:

the BarMeta on buffer.

See Table 6.11 Bar Data Syntax

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


Namespace: Gst.Video