mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
chore(codec): feature-gate removed flags
This commit is contained in:
@@ -8,6 +8,7 @@ bitflags! {
|
||||
pub struct Capabilities: c_uint {
|
||||
const DRAW_HORIZ_BAND = AV_CODEC_CAP_DRAW_HORIZ_BAND;
|
||||
const DR1 = AV_CODEC_CAP_DR1;
|
||||
#[cfg(not(feature = "ffmpeg_6_0"))]
|
||||
const TRUNCATED = AV_CODEC_CAP_TRUNCATED;
|
||||
const DELAY = AV_CODEC_CAP_DELAY;
|
||||
const SMALL_LAST_FRAME = AV_CODEC_CAP_SMALL_LAST_FRAME;
|
||||
@@ -17,10 +18,15 @@ bitflags! {
|
||||
const FRAME_THREADS = AV_CODEC_CAP_FRAME_THREADS;
|
||||
const SLICE_THREADS = AV_CODEC_CAP_SLICE_THREADS;
|
||||
const PARAM_CHANGE = AV_CODEC_CAP_PARAM_CHANGE;
|
||||
#[cfg(not(feature = "ffmpeg_4_4"))]
|
||||
const AUTO_THREADS = AV_CODEC_CAP_AUTO_THREADS;
|
||||
#[cfg(feature = "ffmpeg_4_4")]
|
||||
const OTHER_THREADS = AV_CODEC_CAP_OTHER_THREADS;
|
||||
const VARIABLE_FRAME_SIZE = AV_CODEC_CAP_VARIABLE_FRAME_SIZE;
|
||||
#[cfg(not(feature = "ffmpeg_6_0"))]
|
||||
#[cfg_attr(feature = "ffmpeg_4_3", deprecated)]
|
||||
const INTRA_ONLY = AV_CODEC_CAP_INTRA_ONLY;
|
||||
#[cfg(not(feature = "ffmpeg_6_0"))]
|
||||
#[cfg_attr(feature = "ffmpeg_4_3", deprecated)]
|
||||
const LOSSLESS = AV_CODEC_CAP_LOSSLESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user