1#![deny(unsafe_op_in_unsafe_fn)]
22
23mod raw {
30 #![allow(warnings)]
31 #![allow(unsafe_op_in_unsafe_fn)]
32
33 #[cfg(not(docsrs))]
34 include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
35
36 #[cfg(docsrs)]
37 include!("docsrs_stubs.rs");
38}
39pub use raw::*;
40
41#[cfg(not(docsrs))]
43pub mod avcodec;
44#[cfg(not(docsrs))]
45pub mod avformat;
46#[cfg(not(docsrs))]
47pub mod swresample;
48#[cfg(not(docsrs))]
49pub mod swscale;
50
51#[cfg(not(docsrs))]
53mod buffersink;
54#[cfg(not(docsrs))]
55mod codec;
56#[cfg(not(docsrs))]
57mod codec_context;
58mod constants;
59mod error;
60pub mod error_codes;
61#[cfg(not(docsrs))]
62mod format_context;
63#[cfg(not(docsrs))]
64mod frame;
65#[cfg(not(docsrs))]
66mod hwdevice;
67#[cfg(not(docsrs))]
68mod packet;
69#[cfg(not(docsrs))]
70mod resample_context;
71#[cfg(not(docsrs))]
72mod scale_context;
73mod utils;
74
75#[cfg(not(docsrs))]
77pub use buffersink::{BufferSinkOutcome, buffersink_get_frame};
78#[cfg(not(docsrs))]
79pub use codec::Codec;
80#[cfg(not(docsrs))]
81pub use codec_context::{CodecContext, ReceiveOutcome};
82pub use constants::{AV_NOPTS_VALUE, AVFMT_NOFILE, AVFMT_TS_DISCONT, BUFFERSRC_FLAG_KEEP_REF};
83pub use error::AvError;
84#[cfg(not(docsrs))]
85pub use format_context::{
86 ChapterRef, ChapterSpec, CodecParameters, InputFormatContext, OutputFormatContext, StreamRef,
87};
88#[cfg(not(docsrs))]
89pub use frame::Frame;
90#[cfg(not(docsrs))]
91pub use hwdevice::HwDeviceContext;
92#[cfg(not(docsrs))]
93pub use packet::Packet;
94#[cfg(not(docsrs))]
95pub use resample_context::ResampleContext;
96#[cfg(not(docsrs))]
97pub use scale_context::ScaleContext;
98pub use utils::{av_error_string, ensure_initialized};
99