diff options
Diffstat (limited to 'test2/src/decode.rs')
-rw-r--r-- | test2/src/decode.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test2/src/decode.rs b/test2/src/decode.rs new file mode 100644 index 0000000..974c6d9 --- /dev/null +++ b/test2/src/decode.rs @@ -0,0 +1,20 @@ +use framework::BitstreamFilter; +use glam::{I16Vec2, i16vec2}; + +pub struct Dec { + res: I16Vec2, +} +impl BitstreamFilter for Dec { + const INPUT_CODEC_ID: &str = "V_VCETEST2"; + const OUTPUT_CODEC_ID: &str = "V_UNCOMPRESSED"; + + fn new(width: u32, height: u32) -> Self { + Self { + res: i16vec2(width as i16, height as i16), + } + } + + fn process_block(&mut self, a: Vec<u8>) -> Vec<u8> { + a + } +} |