#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)]
#[allow(unused_imports)]
use crate::averrors::OH_AVErrCode;
impl ::core::ops::BitOr<OH_AVCodecBufferFlags> for OH_AVCodecBufferFlags {
type Output = Self;
#[inline]
fn bitor(self, other: Self) -> Self {
OH_AVCodecBufferFlags(self.0 | other.0)
}
}
impl ::core::ops::BitOrAssign for OH_AVCodecBufferFlags {
#[inline]
fn bitor_assign(&mut self, rhs: OH_AVCodecBufferFlags) {
self.0 |= rhs.0;
}
}
impl ::core::ops::BitAnd<OH_AVCodecBufferFlags> for OH_AVCodecBufferFlags {
type Output = Self;
#[inline]
fn bitand(self, other: Self) -> Self {
OH_AVCodecBufferFlags(self.0 & other.0)
}
}
impl ::core::ops::BitAndAssign for OH_AVCodecBufferFlags {
#[inline]
fn bitand_assign(&mut self, rhs: OH_AVCodecBufferFlags) {
self.0 &= rhs.0;
}
}
impl OH_AVCodecBufferFlags {
pub const NONE: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(0);
pub const EOS: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(1);
pub const SYNC_FRAME: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(2);
pub const INCOMPLETE_FRAME: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(4);
pub const CODEC_DATA: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(8);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub const DISCARD: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(16);
#[cfg(feature = "api-12")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-12")))]
pub const DISPOSABLE: OH_AVCodecBufferFlags = OH_AVCodecBufferFlags(32);
}
#[repr(transparent)]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct OH_AVCodecBufferFlags(pub ::core::ffi::c_uint);
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OH_AVCodecBufferAttr {
pub pts: i64,
pub size: i32,
pub offset: i32,
pub flags: u32,
}