mirror of
https://github.com/encounter/rust-ffmpeg.git
synced 2026-07-10 21:18:39 -07:00
codec/subtitle: add Subtitle
This commit is contained in:
@@ -3,6 +3,8 @@ pub use self::id::Id;
|
||||
|
||||
pub mod packet;
|
||||
|
||||
pub mod subtitle;
|
||||
|
||||
use std::ffi::CStr;
|
||||
use std::str::from_utf8_unchecked;
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
use std::mem;
|
||||
|
||||
use ffi::*;
|
||||
|
||||
pub struct Subtitle {
|
||||
pub val: AVSubtitle,
|
||||
}
|
||||
|
||||
impl Subtitle {
|
||||
pub fn new() -> Self {
|
||||
unsafe {
|
||||
Subtitle { val: mem::zeroed() }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -16,3 +16,4 @@ pub use util::frame::{self, Frame};
|
||||
|
||||
pub mod codec;
|
||||
pub use codec::packet::{self, Packet};
|
||||
pub use codec::subtitle::Subtitle;
|
||||
|
||||
Reference in New Issue
Block a user