diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-02-20 10:00:54 +0100 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2020-02-20 10:00:54 +0100 |
commit | a5ba48ace542e2adfd0826614d4342d81359d624 (patch) | |
tree | 4777234df60caa8f32dc018925746faf94b0dbfc /nihav-core | |
parent | bf5077995d80b16471e3374a0f182fb1ece917ec (diff) | |
download | nihav-a5ba48ace542e2adfd0826614d4342d81359d624.tar.gz |
core/frame: remove options field from NAFrame until later
Diffstat (limited to 'nihav-core')
-rw-r--r-- | nihav-core/src/frame.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nihav-core/src/frame.rs b/nihav-core/src/frame.rs index 39c6ce6..0a07db7 100644 --- a/nihav-core/src/frame.rs +++ b/nihav-core/src/frame.rs @@ -1,6 +1,6 @@ //! Packets and decoded frames functionality. use std::cmp::max; -use std::collections::HashMap; +//use std::collections::HashMap; use std::fmt; use std::sync::Arc; pub use crate::formats::*; @@ -926,7 +926,7 @@ pub struct NAFrame { pub frame_type: FrameType, /// Keyframe flag. pub key: bool, - options: HashMap<String, NAValue>, +// options: HashMap<String, NAValue>, } /// A specialised type for reference-counted `NAFrame`. @@ -947,9 +947,9 @@ impl NAFrame { ftype: FrameType, keyframe: bool, info: NACodecInfoRef, - options: HashMap<String, NAValue>, + /*options: HashMap<String, NAValue>,*/ buffer: NABufferType) -> Self { - NAFrame { ts, id: 0, buffer, info, frame_type: ftype, key: keyframe, options } + NAFrame { ts, id: 0, buffer, info, frame_type: ftype, key: keyframe/*, options*/ } } /// Returns frame format information. pub fn get_info(&self) -> NACodecInfoRef { self.info.clone() } @@ -1155,7 +1155,7 @@ pub trait FrameFromPacket { impl FrameFromPacket for NAFrame { fn new_from_pkt(pkt: &NAPacket, info: NACodecInfoRef, buf: NABufferType) -> NAFrame { - NAFrame::new(pkt.ts, FrameType::Other, pkt.keyframe, info, HashMap::new(), buf) + NAFrame::new(pkt.ts, FrameType::Other, pkt.keyframe, info, /*HashMap::new(),*/ buf) } fn fill_timestamps(&mut self, pkt: &NAPacket) { self.ts = pkt.get_time_information(); |