1use ffi::*;
2use libc::c_uint;
3
4bitflags! {
5 pub struct Capabilities: c_uint {
6 const DRAW_HORIZ_BAND = AV_CODEC_CAP_DRAW_HORIZ_BAND;
7 const DR1 = AV_CODEC_CAP_DR1;
8 #[cfg(not(feature = "ffmpeg_6_0"))]
9 const TRUNCATED = AV_CODEC_CAP_TRUNCATED;
10 const DELAY = AV_CODEC_CAP_DELAY;
11 const SMALL_LAST_FRAME = AV_CODEC_CAP_SMALL_LAST_FRAME;
12 #[cfg(not(feature = "ffmpeg_4_0"))]
13 const HWACCEL_VDPAU = AV_CODEC_CAP_HWACCEL_VDPAU;
14 const SUBFRAMES = AV_CODEC_CAP_SUBFRAMES;
15 const EXPERIMENTAL = AV_CODEC_CAP_EXPERIMENTAL;
16 const CHANNEL_CONF = AV_CODEC_CAP_CHANNEL_CONF;
17 const FRAME_THREADS = AV_CODEC_CAP_FRAME_THREADS;
18 const SLICE_THREADS = AV_CODEC_CAP_SLICE_THREADS;
19 const PARAM_CHANGE = AV_CODEC_CAP_PARAM_CHANGE;
20 #[cfg(not(feature = "ffmpeg_6_0"))]
21 const AUTO_THREADS = AV_CODEC_CAP_AUTO_THREADS;
22 #[cfg(feature = "ffmpeg_6_0")]
23 const OTHER_THREADS = AV_CODEC_CAP_OTHER_THREADS;
24 const VARIABLE_FRAME_SIZE = AV_CODEC_CAP_VARIABLE_FRAME_SIZE;
25 #[cfg(not(feature = "ffmpeg_6_0"))]
26 const INTRA_ONLY = AV_CODEC_CAP_INTRA_ONLY;
27 #[cfg(not(feature = "ffmpeg_6_0"))]
28 const LOSSLESS = AV_CODEC_CAP_LOSSLESS;
29 }
30}
31