codec/subtitle/flag: change flags API style

This commit is contained in:
meh 2015-05-28 18:14:41 +02:00
parent c389f7a916
commit f465f62105
2 changed files with 12 additions and 7 deletions

View File

@ -0,0 +1,8 @@
use libc::c_int;
use ffi::*;
bitflags! {
flags Flags: c_int {
const FORCED = AV_SUBTITLE_FLAG_FORCED,
}
}

View File

@ -1,20 +1,17 @@
pub mod flag;
pub use self::flag::Flags;
use std::marker::PhantomData;
use std::mem;
use std::ffi::CStr;
use std::str::from_utf8_unchecked;
use std::ops::Deref;
use libc::{c_int, c_uint, uint32_t, int64_t};
use libc::{c_uint, uint32_t, int64_t};
use ffi::*;
use ::format;
use ::Picture;
bitflags! {
flags Flags: c_int {
const FLAG_FORCED = AV_SUBTITLE_FLAG_FORCED,
}
}
#[derive(Eq, PartialEq, Clone, Copy, Debug)]
pub enum Type {
None,