gstreamer-rs/gstreamer-audio/src
François Laignel dcf6d16496 gst/format: new panicking constructors and some Percent fixes
Previous proposition for constructing specific formatted values was
to use an operation such as `42 * Default::ONE` which, in retrospect,
doesn't seem idiomatic.

This commit adds `from_u64` and `from_usize` constructors for most
formatted values. Having `from_usize` is convenient when dealing with
quantities related to containers indices or length.

This also fixes the `Percent` from float constructors from which was
derived the `ONE` constant as well as previous display implementation.

Also removed the `pub` specifier for `Undefined` inner value. It wasn't
removed in a previous commit as `Undefined` can use the full range of
the inner type. But now, it seems preferable not to expose the inner
value for proper encapsulation and so as to reduce the differences with
other formatted values (kind of least astonishment principle).
2022-10-11 13:25:53 +02:00
..
auto Regenerate with latest gir 2022-10-07 20:30:24 +03:00
subclass Change *Impl trait methods to only take &self and not Self::Type in addition 2022-10-10 15:01:07 +03:00
audio_aggregator.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
audio_aggregator_convert_pad.rs audio: Add audioaggregator bindings 2022-04-01 11:04:08 +03:00
audio_aggregator_pad.rs audio: Add audioaggregator bindings 2022-04-01 11:04:08 +03:00
audio_buffer.rs audiobuffer: Remove unnecessary ref/deref 2022-08-09 21:08:22 +00:00
audio_channel_position.rs audio: Use new 1.63 std::array::from_fn instead of the external array-init crate 2022-09-05 18:10:17 +03:00
audio_converter.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
audio_decoder.rs Use IntoGlibPtr trait instead of implementing into_ptr 2022-05-07 13:38:11 +02:00
audio_encoder.rs Use IntoGlibPtr trait instead of implementing into_ptr 2022-05-07 13:38:11 +02:00
audio_format.rs Implement more iterator functions / traits in custom iterators for efficiency reasons 2022-05-22 12:42:42 +03:00
audio_format_info.rs audio,video: Remove dox feature from function bodies 2021-06-04 11:51:01 +02:00
audio_info.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
audio_meta.rs gst/format: new panicking constructors and some Percent fixes 2022-10-11 13:25:53 +02:00
audio_ring_buffer_spec.rs manual code: fix-getters-def doc aliases 2021-05-03 20:46:57 +02:00
audio_stream_align.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
caps.rs audio: Add new_interleaved() to AudioCapsBuilder 2022-08-10 09:50:01 +00:00
flag_serde.rs Add De/Serialization for most bitflag types 2022-05-06 09:05:52 +00:00
functions.rs Use IntoGlibPtr trait instead of implementing into_ptr 2022-05-07 13:38:11 +02:00
lib.rs Rename feature 'ser_de' as 'serde' 2022-09-12 19:36:30 +02:00
utils.rs audio: Add audioaggregator bindings 2022-04-01 11:04:08 +03:00