Add more impls

This commit is contained in:
Josh Holmer 2024-05-05 22:17:06 -04:00
parent 5a1246553f
commit d043a323d0
4 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
## Version 2.0.1
- Add Copy, Clone, Eq, Debug to some bitflags types that had lost them
## Version 2.0.0 ## Version 2.0.0
- [Breaking] Replace avutil macros with const fns - [Breaking] Replace avutil macros with const fns

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ffmpeg-the-third" name = "ffmpeg-the-third"
version = "2.0.0+ffmpeg-7.0" version = "2.0.1+ffmpeg-7.0"
edition = "2021" edition = "2021"
authors = ["meh. <meh@schizofreni.co>", "Zhiming Wang <i@zhimingwang.org>"] authors = ["meh. <meh@schizofreni.co>", "Zhiming Wang <i@zhimingwang.org>"]

View File

@ -2,6 +2,7 @@ use crate::ffi::*;
use libc::c_uint; use libc::c_uint;
bitflags! { bitflags! {
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct Capabilities: c_uint { pub struct Capabilities: c_uint {
const DRAW_HORIZ_BAND = AV_CODEC_CAP_DRAW_HORIZ_BAND; const DRAW_HORIZ_BAND = AV_CODEC_CAP_DRAW_HORIZ_BAND;
const DR1 = AV_CODEC_CAP_DR1; const DR1 = AV_CODEC_CAP_DR1;

View File

@ -2,6 +2,7 @@ use crate::ffi::*;
use libc::c_int; use libc::c_int;
bitflags! { bitflags! {
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct Disposition: c_int { pub struct Disposition: c_int {
const DEFAULT = AV_DISPOSITION_DEFAULT; const DEFAULT = AV_DISPOSITION_DEFAULT;
const DUB = AV_DISPOSITION_DUB; const DUB = AV_DISPOSITION_DUB;