GstVideo.VideoOrientation¶
- Implementations:
None
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class GstVideo.VideoOrientation¶
- Bases:
- Structure:
The interface allows unified access to control flipping and autocenter operation of video-sources or operators.
- classmethod from_tag(taglist)[source]¶
- Parameters:
taglist (
Gst.TagList
) – AGst.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()[source]¶
- Returns:
True
in case the element supports centering- center:
return location for the result
- Return type:
Get the horizontal centering offset from the given object.
- get_hflip()[source]¶
- Returns:
True
in case the element supports flipping- flip:
return location for the result
- Return type:
Get the horizontal flipping state (
True
for flipped) from the given object.
- get_vcenter()[source]¶
- Returns:
True
in case the element supports centering- center:
return location for the result
- Return type:
Get the vertical centering offset from the given object.
- get_vflip()[source]¶
- Returns:
True
in case the element supports flipping- flip:
return location for the result
- Return type:
Get the vertical flipping state (
True
for flipped) from the given object.
- set_hcenter(center)[source]¶
- Parameters:
center (
int
) – centering offset- Returns:
True
in case the element supports centering- Return type:
Set the horizontal centering offset for the given object.
- set_hflip(flip)[source]¶
- Parameters:
flip (
bool
) – use flipping- Returns:
True
in case the element supports flipping- Return type:
Set the horizontal flipping state (
True
for flipped) for the given object.
- set_vcenter(center)[source]¶
- Parameters:
center (
int
) – centering offset- Returns:
True
in case the element supports centering- Return type:
Set the vertical centering offset for the given object.
- set_vflip(flip)[source]¶
- Parameters:
flip (
bool
) – use flipping- Returns:
True
in case the element supports flipping- Return type:
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:
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:
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:
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:
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:
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:
Set the horizontal flipping state (
True
for flipped) for the given object.