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:
Marijn Suijten 2020-12-06 11:45:48 +01:00
parent d7bc916dfa
commit 1b1a99b320
2 changed files with 10 additions and 0 deletions

View file

@ -154,6 +154,11 @@ status = "generate"
# as AudioFormatInfo::from_format() # as AudioFormatInfo::from_format()
ignore = true ignore = true
[[object.function]]
name = "build_integer"
# Use custom AudioEndianness enum
manual = true
[[object]] [[object]]
name = "GstAudio.AudioStreamAlign" name = "GstAudio.AudioStreamAlign"
status = "generate" status = "generate"

View file

@ -400,6 +400,11 @@ status = "generate"
# as VideoFormatInfo::from_format() # as VideoFormatInfo::from_format()
ignore = true ignore = true
[[object.function]]
name = "from_masks"
# Use custom VideoEndianness enum
manual = true
[[object]] [[object]]
name = "GstVideo.VideoSink" name = "GstVideo.VideoSink"
status = "generate" status = "generate"