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))]
47mod io_context;
48#[cfg(not(docsrs))]
49pub mod swresample;
50#[cfg(not(docsrs))]
51pub mod swscale;
52
53#[cfg(not(docsrs))]
55mod bsf;
56#[cfg(not(docsrs))]
57mod buffersink;
58#[cfg(not(docsrs))]
59mod codec;
60#[cfg(not(docsrs))]
61mod codec_context;
62mod constants;
63mod error;
64pub mod error_codes;
65#[cfg(not(docsrs))]
68mod format_context;
69#[cfg(not(docsrs))]
70mod frame;
71#[cfg(not(docsrs))]
72mod hwdevice;
73mod io_traits;
74mod log_bridge;
75#[cfg(not(docsrs))]
76mod packet;
77#[cfg(not(docsrs))]
78mod resample_context;
79#[cfg(not(docsrs))]
80mod scale_context;
81mod utils;
82
83#[cfg(not(docsrs))]
85pub use bsf::BsfContext;
86#[cfg(not(docsrs))]
87pub use buffersink::{BufferSinkOutcome, buffersink_get_frame};
88#[cfg(not(docsrs))]
89pub use codec::Codec;
90#[cfg(not(docsrs))]
91pub use codec_context::{CodecContext, ReceiveOutcome};
92pub use constants::{
93 AV_NOPTS_VALUE, AVFMT_FLAG_CUSTOM_IO, AVFMT_NOFILE, AVFMT_TS_DISCONT, BUFFERSRC_FLAG_KEEP_REF,
94};
95pub use error::AvError;
96#[cfg(not(docsrs))]
97pub use format_context::{
98 ChapterRef, ChapterSpec, CodecParameters, InputFormatContext, OutputFormatContext, StreamRef,
99};
100#[cfg(not(docsrs))]
101pub use frame::Frame;
102#[cfg(not(docsrs))]
103pub use hwdevice::HwDeviceContext;
104pub use io_traits::{IoSink, IoSource};
105pub use log_bridge::{install_log_bridge, log_level, set_log_level};
106#[cfg(not(docsrs))]
107pub use packet::Packet;
108#[cfg(not(docsrs))]
109pub use resample_context::ResampleContext;
110#[cfg(not(docsrs))]
111pub use scale_context::ScaleContext;
112pub use utils::{av_error_string, ensure_initialized};
113