mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-22 08:07:07 +00:00
audio,video: Use manual implementations for fns using *Endianness
{Audio,Video}Endianness is an enumeration to represent the two possible values in Rust but this enumeration does not exist as such in C, where it is merely an integer with some constants defining possible values.
This commit is contained in:
parent
d7bc916dfa
commit
1b1a99b320
2 changed files with 10 additions and 0 deletions
|
@ -154,6 +154,11 @@ status = "generate"
|
|||
# as AudioFormatInfo::from_format()
|
||||
ignore = true
|
||||
|
||||
[[object.function]]
|
||||
name = "build_integer"
|
||||
# Use custom AudioEndianness enum
|
||||
manual = true
|
||||
|
||||
[[object]]
|
||||
name = "GstAudio.AudioStreamAlign"
|
||||
status = "generate"
|
||||
|
|
|
@ -400,6 +400,11 @@ status = "generate"
|
|||
# as VideoFormatInfo::from_format()
|
||||
ignore = true
|
||||
|
||||
[[object.function]]
|
||||
name = "from_masks"
|
||||
# Use custom VideoEndianness enum
|
||||
manual = true
|
||||
|
||||
[[object]]
|
||||
name = "GstVideo.VideoSink"
|
||||
status = "generate"
|
||||
|
|
Loading…
Reference in a new issue