You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use following helper functions to retrieve enum values from strings, but they return the enum discriminants instead:
pubfnav_color_range_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVColorRangepubfnav_color_primaries_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVColorPrimariespubfnav_color_transfer_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVColorTransferCharacteristicpubfnav_color_space_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVColorSpacepubfnav_chroma_location_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVChromaLocationpubfnav_stereo3d_from_name(name:*const libc::c_char) -> libc::c_int;// should return the AVStereo3DType// maybe more...
Moreover, there is no simple way to retrieve the enum variant from the discriminant in Rust.
Would it be possible to fix these functions?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi!
I'm trying to use following helper functions to retrieve enum values from strings, but they return the enum discriminants instead:
Moreover, there is no simple way to retrieve the enum variant from the discriminant in Rust.
Would it be possible to fix these functions?
Thanks!
The text was updated successfully, but these errors were encountered: