GstVideo.VideoOrientation

g GObject.GInterface GObject.GInterface GstVideo.VideoOrientation GstVideo.VideoOrientation GObject.GInterface->GstVideo.VideoOrientation

Implementations:

None

Methods

class

from_tag (taglist)

get_hcenter ()

get_hflip ()

get_vcenter ()

get_vflip ()

set_hcenter (center)

set_hflip (flip)

set_vcenter (center)

set_vflip (flip)

Virtual Methods

do_get_hcenter ()

do_get_hflip ()

do_get_vcenter ()

do_get_vflip ()

do_set_hcenter (center)

do_set_hflip (flip)

do_set_vcenter (center)

do_set_vflip (flip)

Properties

None

Signals

None

Fields

None

Class Details

class GstVideo.VideoOrientation
Bases:

GObject.GInterface

Structure:

GstVideo.VideoOrientationInterface

The interface allows unified access to control flipping and autocenter operation of video-sources or operators.

classmethod from_tag(taglist)
Parameters:

taglist (Gst.TagList) – A Gst.TagList

Returns:

True if there was a valid “image-orientation” tag in the taglist.

method:

The location where to return the orientation.

Return type:

(bool, method: GstVideo.VideoOrientationMethod)

Parses the “image-orientation” tag and transforms it into the GstVideo.VideoOrientationMethod enum.

New in version 1.20.

get_hcenter()
Returns:

True in case the element supports centering

center:

return location for the result

Return type:

(bool, center: int)

Get the horizontal centering offset from the given object.

get_hflip()
Returns:

True in case the element supports flipping

flip:

return location for the result

Return type:

(bool, flip: bool)

Get the horizontal flipping state (True for flipped) from the given object.

get_vcenter()
Returns:

True in case the element supports centering

center:

return location for the result

Return type:

(bool, center: int)

Get the vertical centering offset from the given object.

get_vflip()
Returns:

True in case the element supports flipping

flip:

return location for the result

Return type:

(bool, flip: bool)

Get the vertical flipping state (True for flipped) from the given object.

set_hcenter(center)
Parameters:

center (int) – centering offset

Returns:

True in case the element supports centering

Return type:

bool

Set the horizontal centering offset for the given object.

set_hflip(flip)
Parameters:

flip (bool) – use flipping

Returns:

True in case the element supports flipping

Return type:

bool

Set the horizontal flipping state (True for flipped) for the given object.

set_vcenter(center)
Parameters:

center (int) – centering offset

Returns:

True in case the element supports centering

Return type:

bool

Set the vertical centering offset for the given object.

set_vflip(flip)
Parameters:

flip (bool) – use flipping

Returns:

True in case the element supports flipping

Return type:

bool

Set the vertical flipping state (True for flipped) for the given object.

do_get_hcenter() virtual
Returns:

True in case the element supports centering

center:

return location for the result

Return type:

(bool, center: int)

Get the horizontal centering offset from the given object.

do_get_hflip() virtual
Returns:

True in case the element supports flipping

flip:

return location for the result

Return type:

(bool, flip: bool)

Get the horizontal flipping state (True for flipped) from the given object.

do_get_vcenter() virtual
Returns:

True in case the element supports centering

center:

return location for the result

Return type:

(bool, center: int)

Get the vertical centering offset from the given object.

do_get_vflip() virtual
Returns:

True in case the element supports flipping

flip:

return location for the result

Return type:

(bool, flip: bool)

Get the vertical flipping state (True for flipped) from the given object.

do_set_hcenter(center) virtual
Parameters:

center (int) – centering offset

Returns:

True in case the element supports centering

Return type:

bool

Set the horizontal centering offset for the given object.

do_set_hflip(flip) virtual
Parameters:

flip (bool) – use flipping

Returns:

True in case the element supports flipping

Return type:

bool

Set the horizontal flipping state (True for flipped) for the given object.

do_set_vcenter(center) virtual
Parameters:

center (int) – centering offset

Returns:

True in case the element supports centering

Return type:

bool

Set the vertical centering offset for the given object.

do_set_vflip(flip) virtual
Parameters:

flip (bool) – use flipping

Returns:

True in case the element supports flipping

Return type:

bool

Set the vertical flipping state (True for flipped) for the given object.