format: add Flags
(AVFMV_*
)
This commit is contained in:
parent
738030bb92
commit
a76cdd7086
26
src/format/format/flag.rs
Normal file
26
src/format/format/flag.rs
Normal file
@ -0,0 +1,26 @@
|
||||
use libc::c_int;
|
||||
use ffi::*;
|
||||
|
||||
bitflags! {
|
||||
flags Flags: c_int {
|
||||
const NO_FILE = AVFMT_NOFILE,
|
||||
const NEED_NUMBER = AVFMT_NEEDNUMBER,
|
||||
const SHOW_IDS = AVFMT_SHOW_IDS,
|
||||
const RAW_PICTURE = AVFMT_RAWPICTURE,
|
||||
const GLOBAL_HEADER = AVFMT_GLOBALHEADER,
|
||||
const NO_TIMESTAMPS = AVFMT_NOTIMESTAMPS,
|
||||
const GENERIC_INDEX = AVFMT_GENERIC_INDEX,
|
||||
const TS_DISCONT = AVFMT_TS_DISCONT,
|
||||
const VARIABLE_FPS = AVFMT_VARIABLE_FPS,
|
||||
const NO_DIMENSIONS = AVFMT_NODIMENSIONS,
|
||||
const NO_STREAMS = AVFMT_NOSTREAMS,
|
||||
const NO_BINSEARCH = AVFMT_NOBINSEARCH,
|
||||
const NO_GENSEARCH = AVFMT_NOGENSEARCH,
|
||||
const NO_BYTE_SEEK = AVFMT_NO_BYTE_SEEK,
|
||||
const ALLOW_FLUSH = AVFMT_ALLOW_FLUSH,
|
||||
const TS_NONSTRICT = AVFMT_TS_NONSTRICT,
|
||||
const TS_NEGATIVE = AVFMT_TS_NEGATIVE,
|
||||
const SEEK_TO_PTS = AVFMT_SEEK_TO_PTS,
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,6 @@
|
||||
pub mod flag;
|
||||
pub use self::flag::Flags;
|
||||
|
||||
mod input;
|
||||
pub use self::input::Input;
|
||||
|
||||
|
@ -8,6 +8,7 @@ pub use self::context::Context;
|
||||
|
||||
pub mod format;
|
||||
pub use self::format::{Input, Output, list};
|
||||
pub use self::format::{flag, Flags};
|
||||
|
||||
pub mod network;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user