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:
Trueif 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.VideoOrientationMethodenum.New in version 1.20.
- get_hcenter()[source]¶
- Returns:
Truein 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:
Truein case the element supports flipping- flip:
return location for the result
- Return type:
Get the horizontal flipping state (
Truefor flipped) from the given object.
- get_vcenter()[source]¶
- Returns:
Truein 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:
Truein case the element supports flipping- flip:
return location for the result
- Return type:
Get the vertical flipping state (
Truefor flipped) from the given object.
- set_hcenter(center)[source]¶
- Parameters:
center (
int) – centering offset- Returns:
Truein 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:
Truein case the element supports flipping- Return type:
Set the horizontal flipping state (
Truefor flipped) for the given object.
- set_vcenter(center)[source]¶
- Parameters:
center (
int) – centering offset- Returns:
Truein 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:
Truein case the element supports flipping- Return type:
Set the vertical flipping state (
Truefor flipped) for the given object.
- do_get_hcenter() virtual¶
- Returns:
Truein 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:
Truein case the element supports flipping- flip:
return location for the result
- Return type:
Get the horizontal flipping state (
Truefor flipped) from the given object.
- do_get_vcenter() virtual¶
- Returns:
Truein 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:
Truein case the element supports flipping- flip:
return location for the result
- Return type:
Get the vertical flipping state (
Truefor flipped) from the given object.
- do_set_hcenter(center) virtual¶
- Parameters:
center (
int) – centering offset- Returns:
Truein 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:
Truein case the element supports flipping- Return type:
Set the horizontal flipping state (
Truefor flipped) for the given object.