decoder/{audio,video}: add max_bit_rate()
This commit is contained in:
parent
de8585b24d
commit
cc054229cf
@ -82,7 +82,7 @@ impl Audio {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn max_rate(&self) -> usize {
|
pub fn max_bit_rate(&self) -> usize {
|
||||||
unsafe {
|
unsafe {
|
||||||
(*self.as_ptr()).rc_max_rate as usize
|
(*self.as_ptr()).rc_max_rate as usize
|
||||||
}
|
}
|
||||||
|
@ -128,6 +128,12 @@ impl Video {
|
|||||||
(*self.as_ptr()).intra_dc_precision as u8
|
(*self.as_ptr()).intra_dc_precision as u8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn max_bit_rate(&self) -> usize {
|
||||||
|
unsafe {
|
||||||
|
(*self.as_ptr()).rc_max_rate as usize
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Deref for Video {
|
impl Deref for Video {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user