(&mut self, quality: Quality)
| 163 | } |
| 164 | |
| 165 | fn set_quality(&mut self, quality: Quality) -> ResultType<()> { |
| 166 | let b = Self::convert_quality(quality, &self.ctx.f); |
| 167 | let bitrate = base_bitrate(self.ctx.d.width as _, self.ctx.d.height as _) * b / 100; |
| 168 | if bitrate > 0 { |
| 169 | if self.encoder.set_bitrate((bitrate) as _).is_ok() { |
| 170 | self.bitrate = bitrate; |
| 171 | } |
| 172 | } |
| 173 | Ok(()) |
| 174 | } |
| 175 | |
| 176 | fn bitrate(&self) -> u32 { |
| 177 | self.bitrate |
nothing calls this directly
no test coverage detected