blob: f85e4c0505cc4af9fe2eaa298f570549eef1e4d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
use framework::{BitstreamFilter, bitstream_filter_main};
use glam::{I16Vec2, i16vec2};
use std::io::Result;
fn main() -> Result<()> {
bitstream_filter_main::<Enc>()
}
struct Enc {
res: I16Vec2,
}
impl BitstreamFilter for Enc {
const INPUT_CODEC_ID: &str = "V_UNCOMPRESSED";
const OUTPUT_CODEC_ID: &str = "V_VCEMTREE";
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
}
}
|