Update bitflags to 1.2 and fix namespacing
This commit is contained in:
parent
3a8f366f60
commit
6644a91da4
@ -94,7 +94,7 @@ software-scaling = ["ffmpeg-sys/swscale", "codec"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
bitflags = "0.9"
|
bitflags = "1.2"
|
||||||
|
|
||||||
[dependencies.image]
|
[dependencies.image]
|
||||||
version = "0.12"
|
version = "0.12"
|
||||||
|
@ -121,7 +121,7 @@ impl ChannelLayoutIter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn best(self, max: i32) -> ChannelLayout {
|
pub fn best(self, max: i32) -> ChannelLayout {
|
||||||
self.fold(::channel_layout::MONO, |acc, cur| {
|
self.fold(ChannelLayout::MONO, |acc, cur| {
|
||||||
if cur.channels() > acc.channels() && cur.channels() <= max {
|
if cur.channels() > acc.channels() && cur.channels() <= max {
|
||||||
cur
|
cur
|
||||||
} else {
|
} else {
|
||||||
|
@ -2,7 +2,7 @@ use std::marker::PhantomData;
|
|||||||
use std::mem;
|
use std::mem;
|
||||||
use std::slice;
|
use std::slice;
|
||||||
|
|
||||||
use super::{flag, Borrow, Flags, Mut, Ref, SideData};
|
use super::{Borrow, Flags, Mut, Ref, SideData};
|
||||||
use ffi::*;
|
use ffi::*;
|
||||||
use libc::c_int;
|
use libc::c_int;
|
||||||
use {format, Error, Rational};
|
use {format, Error, Rational};
|
||||||
@ -99,12 +99,12 @@ impl Packet {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_key(&self) -> bool {
|
pub fn is_key(&self) -> bool {
|
||||||
self.flags().contains(flag::KEY)
|
self.flags().contains(Flags::KEY)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_corrupt(&self) -> bool {
|
pub fn is_corrupt(&self) -> bool {
|
||||||
self.flags().contains(flag::CORRUPT)
|
self.flags().contains(Flags::CORRUPT)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
@ -28,7 +28,7 @@ pub fn converter(
|
|||||||
output,
|
output,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
scaling::flag::FAST_BILINEAR,
|
scaling::flag::Flags::FAST_BILINEAR,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use super::{flag, Context, Flags};
|
use super::{Context, Flags};
|
||||||
use util::format;
|
use util::format;
|
||||||
use {decoder, frame, Error, Picture};
|
use {decoder, frame, Error, Picture};
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ impl<'a> Picture<'a> {
|
|||||||
format,
|
format,
|
||||||
self.width(),
|
self.width(),
|
||||||
self.height(),
|
self.height(),
|
||||||
flag::FAST_BILINEAR,
|
Flags::FAST_BILINEAR,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ impl frame::Video {
|
|||||||
format,
|
format,
|
||||||
self.width(),
|
self.width(),
|
||||||
self.height(),
|
self.height(),
|
||||||
flag::FAST_BILINEAR,
|
Flags::FAST_BILINEAR,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ impl decoder::Video {
|
|||||||
format,
|
format,
|
||||||
self.width(),
|
self.width(),
|
||||||
self.height(),
|
self.height(),
|
||||||
flag::FAST_BILINEAR,
|
Flags::FAST_BILINEAR,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ impl Frame {
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn is_corrupt(&self) -> bool {
|
pub fn is_corrupt(&self) -> bool {
|
||||||
self.flags().contains(flag::CORRUPT)
|
self.flags().contains(Flags::CORRUPT)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user