diff options
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/tsv_video_buffer.rs | 1 | ||||
| -rw-r--r-- | src/bin/tsv_video_stream.rs | 7 | ||||
| -rw-r--r-- | src/bin/tsv_view.rs | 4 |
3 files changed, 4 insertions, 8 deletions
diff --git a/src/bin/tsv_video_buffer.rs b/src/bin/tsv_video_buffer.rs index 3a244a8..1152193 100644 --- a/src/bin/tsv_video_buffer.rs +++ b/src/bin/tsv_video_buffer.rs @@ -50,6 +50,7 @@ fn main() { } let mut info = ffmpeg::probe_video(ff_args, max_frames); + log::info!("probe results: {:?}", info); let num_frames = match (info.num_frames, max_frames) { (Some(a), Some(b)) => u32::min(a, b), (Some(a), None) => a, diff --git a/src/bin/tsv_video_stream.rs b/src/bin/tsv_video_stream.rs index c2db35c..2345c99 100644 --- a/src/bin/tsv_video_stream.rs +++ b/src/bin/tsv_video_stream.rs @@ -34,12 +34,7 @@ fn main() { } let info = ffmpeg::probe_video(ff_args, None); - log::info!( - "{}x{} @ {:.2}fps, tsv image: {name}", - info.width, - info.height, - info.fps - ); + log::info!("probe results: {:?}", info); let instance = gpu::create_instance(); let adapter = gpu::create_adapter(&instance, None); diff --git a/src/bin/tsv_view.rs b/src/bin/tsv_view.rs index 885a8c4..13cb06d 100644 --- a/src/bin/tsv_view.rs +++ b/src/bin/tsv_view.rs @@ -72,7 +72,7 @@ impl ApplicationHandler for App { let surface_format = surface_caps .formats .iter() - .find(|f| f.is_srgb()) + .find(|f| !f.is_srgb()) .copied() .unwrap_or(surface_caps.formats[0]); @@ -91,7 +91,7 @@ impl ApplicationHandler for App { mip_level_count: 1, sample_count: 1, dimension: wgpu::TextureDimension::D2, - format: wgpu::TextureFormat::Rgba8UnormSrgb, + format: wgpu::TextureFormat::Rgba8Unorm, usage: wgpu::TextureUsages::TEXTURE_BINDING | wgpu::TextureUsages::COPY_DST, view_formats: &[], }); |
