forked from mirrors/gstreamer-rs
video: Rename VideoTransferFunction functions
This commit is contained in:
parent
55efe30258
commit
6ce9a9ce12
1 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ impl ::VideoTransferFunction {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let value = from_glib(gst_video_sys::gst_video_color_transfer_from_iso(iso));
|
let value = from_glib(gst_video_sys::gst_video_transfer_function_from_iso(iso));
|
||||||
match value {
|
match value {
|
||||||
::VideoTransferFunction::__Unknown(_) => Err(glib_bool_error!("Invalid ISO value")),
|
::VideoTransferFunction::__Unknown(_) => Err(glib_bool_error!("Invalid ISO value")),
|
||||||
_ => Ok(value),
|
_ => Ok(value),
|
||||||
|
@ -231,7 +231,7 @@ impl ::VideoTransferFunction {
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
pub fn to_iso(&self) -> u32 {
|
pub fn to_iso(&self) -> u32 {
|
||||||
unsafe { gst_video_sys::gst_video_color_transfer_to_iso(self.to_glib()) }
|
unsafe { gst_video_sys::gst_video_transfer_function_to_iso(self.to_glib()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
||||||
|
@ -242,7 +242,7 @@ impl ::VideoTransferFunction {
|
||||||
to_bpp: u32,
|
to_bpp: u32,
|
||||||
) -> bool {
|
) -> bool {
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib(gst_video_sys::gst_video_color_transfer_is_equivalent(
|
from_glib(gst_video_sys::gst_video_transfer_function_is_equivalent(
|
||||||
self.to_glib(),
|
self.to_glib(),
|
||||||
from_bpp,
|
from_bpp,
|
||||||
to_func.to_glib(),
|
to_func.to_glib(),
|
||||||
|
|
Loading…
Reference in a new issue