mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-05 09:10:22 +00:00
fe319af598
The trait FormattedValue was only implemented on types which could implement the full range of values for a Format. In order to declare a function which could take both the intrinsic type of any Format (e.g. `ClockTime`) as well the full range of values (e.g. `Option<ClockTime>`), the argument was declared: ```rust impl Into<GenericFormattedValue>, ``` This commit implements `FormattedValue` for any type representing a format. E.g.: both `ClockTime` and `Option<ClockTime>` will now implement `FormattedValue`. The trait `FormattedValueFullRange` is implemented on types which can be built from any raw value. These changes are intended to help for the implementation of a means to enforce format conformity at compilation time for functions with multiple formatted value arguments. The following signatures were found to be incorrect and are fixed: - `message::StepDone`: forced the type for `amount` and `duration` to be of the same type, when `duration` is expected to be of the `Time` format. - `query::Convert::set`: the two arguments were forced to the same type, so potentialy the same format, unless a `GenericFormattedValue` was used. See https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1059 |
||
---|---|---|
.. | ||
auto | ||
subclass | ||
caps_features.rs | ||
color_balance_channel.rs | ||
flag_serde.rs | ||
functions.rs | ||
lib.rs | ||
navigation.rs | ||
utils.rs | ||
video_aggregator.rs | ||
video_aggregator_convert_pad.rs | ||
video_aggregator_pad.rs | ||
video_buffer_pool.rs | ||
video_codec_frame.rs | ||
video_codec_state.rs | ||
video_color_matrix.rs | ||
video_converter.rs | ||
video_decoder.rs | ||
video_encoder.rs | ||
video_event.rs | ||
video_format.rs | ||
video_format_info.rs | ||
video_frame.rs | ||
video_hdr.rs | ||
video_info.rs | ||
video_message.rs | ||
video_meta.rs | ||
video_overlay.rs | ||
video_overlay_composition.rs | ||
video_rectangle.rs | ||
video_time_code.rs | ||
video_time_code_interval.rs |