format/network: add network helpers
This commit is contained in:
parent
59e067cb4d
commit
67efc8b686
@ -1,6 +1,8 @@
|
|||||||
pub use ::util::sample_format::SampleFormat as Sample;
|
pub use ::util::sample_format::SampleFormat as Sample;
|
||||||
pub use ::util::pixel_format::PixelFormat as Pixel;
|
pub use ::util::pixel_format::PixelFormat as Pixel;
|
||||||
|
|
||||||
|
pub mod network;
|
||||||
|
|
||||||
use std::ffi::CStr;
|
use std::ffi::CStr;
|
||||||
use std::str::from_utf8_unchecked;
|
use std::str::from_utf8_unchecked;
|
||||||
|
|
||||||
|
13
src/format/network.rs
Normal file
13
src/format/network.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
use ffi::*;
|
||||||
|
|
||||||
|
pub fn init() {
|
||||||
|
unsafe {
|
||||||
|
avformat_network_init();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn deinit() {
|
||||||
|
unsafe {
|
||||||
|
avformat_network_deinit();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user