codec/debug: change flags API style

This commit is contained in:
meh 2015-05-28 18:11:11 +02:00
parent 823f4a7ef4
commit bff628b2a2
2 changed files with 19 additions and 19 deletions

View File

@ -3,23 +3,23 @@ use ffi::*;
bitflags! { bitflags! {
flags Debug: c_int { flags Debug: c_int {
const DEBUG_PICT_INFO = FF_DEBUG_PICT_INFO, const PICT_INFO = FF_DEBUG_PICT_INFO,
const DEBUG_RC = FF_DEBUG_RC, const RC = FF_DEBUG_RC,
const DEBUG_BITSTREAM = FF_DEBUG_BITSTREAM, const BITSTREAM = FF_DEBUG_BITSTREAM,
const DEBUG_MB_TYPE = FF_DEBUG_MB_TYPE, const MB_TYPE = FF_DEBUG_MB_TYPE,
const DEBUG_QP = FF_DEBUG_QP, const QP = FF_DEBUG_QP,
const DEBUG_MV = FF_DEBUG_MV, const MV = FF_DEBUG_MV,
const DEBUG_DCT_COEFF = FF_DEBUG_DCT_COEFF, const DCT_COEFF = FF_DEBUG_DCT_COEFF,
const DEBUG_SKIP = FF_DEBUG_SKIP, const SKIP = FF_DEBUG_SKIP,
const DEBUG_STARTCODE = FF_DEBUG_STARTCODE, const STARTCODE = FF_DEBUG_STARTCODE,
const DEBUG_PTS = FF_DEBUG_PTS, const PTS = FF_DEBUG_PTS,
const DEBUG_ER = FF_DEBUG_ER, const ER = FF_DEBUG_ER,
const DEBUG_MMCO = FF_DEBUG_MMCO, const MMCO = FF_DEBUG_MMCO,
const DEBUG_BUGS = FF_DEBUG_BUGS, const BUGS = FF_DEBUG_BUGS,
const DEBUG_VIS_QP = FF_DEBUG_VIS_QP, const VIS_QP = FF_DEBUG_VIS_QP,
const DEBUG_VIS_MB_TYPE = FF_DEBUG_VIS_MB_TYPE, const VIS_MB_TYPE = FF_DEBUG_VIS_MB_TYPE,
const DEBUG_BUFFERS = FF_DEBUG_BUFFERS, const BUFFERS = FF_DEBUG_BUFFERS,
const DEBUG_THREADS = FF_DEBUG_THREADS, const THREADS = FF_DEBUG_THREADS,
const DEBUG_NOMC = FF_DEBUG_NOMC, const NOMC = FF_DEBUG_NOMC,
} }
} }

View File

@ -21,7 +21,7 @@ pub mod compliance;
pub use self::compliance::Compliance; pub use self::compliance::Compliance;
pub mod debug; pub mod debug;
pub use self::debug::*; pub use self::debug::Debug;
pub mod profile; pub mod profile;
pub use self::profile::Profile; pub use self::profile::Profile;