rename all stride_align to stride

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-03-03 10:58:48 +08:00
parent 0c3ccb3f60
commit c419819c0f
10 changed files with 46 additions and 46 deletions

View File

@@ -50,8 +50,8 @@ impl MediaCodecDecoder {
MediaCodecDecoders { h264, h265 }
}
// to-do: apply stride_align to raw output data
pub fn decode(&mut self, data: &[u8], stride_align: usize, fmt: ImageFormat, raw: &mut Vec<u8>) -> ResultType<bool> {
// to-do: apply stride to raw output data
pub fn decode(&mut self, data: &[u8], stride: usize, fmt: ImageFormat, raw: &mut Vec<u8>) -> ResultType<bool> {
match self.dequeue_input_buffer(Duration::from_millis(10))? {
Some(mut input_buffer) => {
let mut buf = input_buffer.buffer_mut();