ffmpeg_next/codec/
capabilities.rs

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        #[cfg(not(feature = "ffmpeg_8_0"))]
16        const SUBFRAMES           = AV_CODEC_CAP_SUBFRAMES;
17        const EXPERIMENTAL        = AV_CODEC_CAP_EXPERIMENTAL;
18        const CHANNEL_CONF        = AV_CODEC_CAP_CHANNEL_CONF;
19        const FRAME_THREADS       = AV_CODEC_CAP_FRAME_THREADS;
20        const SLICE_THREADS       = AV_CODEC_CAP_SLICE_THREADS;
21        const PARAM_CHANGE        = AV_CODEC_CAP_PARAM_CHANGE;
22        #[cfg(not(feature = "ffmpeg_6_0"))]
23        const AUTO_THREADS        = AV_CODEC_CAP_AUTO_THREADS;
24        #[cfg(feature = "ffmpeg_6_0")]
25        const OTHER_THREADS       = AV_CODEC_CAP_OTHER_THREADS;
26        const VARIABLE_FRAME_SIZE = AV_CODEC_CAP_VARIABLE_FRAME_SIZE;
27        #[cfg(not(feature = "ffmpeg_6_0"))]
28        const INTRA_ONLY          = AV_CODEC_CAP_INTRA_ONLY;
29        #[cfg(not(feature = "ffmpeg_6_0"))]
30        const LOSSLESS            = AV_CODEC_CAP_LOSSLESS;
31    }
32}