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