codec/encoder: add set_max_bit_rate()
This commit is contained in:
parent
2366506e63
commit
de8585b24d
@ -64,6 +64,12 @@ impl Encoder {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_max_bit_rate(&mut self, value: usize) {
|
||||
unsafe {
|
||||
(*self.as_mut_ptr()).rc_max_rate = value as c_int;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_tolerance(&mut self, value: usize) {
|
||||
unsafe {
|
||||
(*self.as_mut_ptr()).bit_rate_tolerance = value as c_int;
|
||||
|
Loading…
x
Reference in New Issue
Block a user