remove spacers in image processing
This commit is contained in:
parent
b1c3ac8538
commit
0521e103ec
4 changed files with 61 additions and 17 deletions
|
|
@ -1,5 +1,7 @@
|
|||
use crate::cli::{ImageProcessingOptions, StreamScreenOptions};
|
||||
use crate::image_processing::ImageProcessingPipeline;
|
||||
use crate::{
|
||||
cli::{ImageProcessingOptions, StreamScreenOptions},
|
||||
image_processing::ImageProcessingPipeline,
|
||||
};
|
||||
use image::{DynamicImage, ImageBuffer, Rgb, Rgba};
|
||||
use log::{error, info, warn};
|
||||
use scap::{
|
||||
|
|
@ -7,15 +9,9 @@ use scap::{
|
|||
frame::convert_bgra_to_rgb,
|
||||
frame::Frame,
|
||||
};
|
||||
use servicepoint::{
|
||||
Command, CompressionCode, Connection, Origin, FRAME_PACING, PIXEL_HEIGHT, TILE_HEIGHT,
|
||||
TILE_SIZE,
|
||||
};
|
||||
use servicepoint::{Command, CompressionCode, Connection, Origin, FRAME_PACING};
|
||||
use std::time::Duration;
|
||||
|
||||
const SPACER_HEIGHT: usize = TILE_SIZE / 2;
|
||||
const PIXEL_HEIGHT_INCLUDING_SPACERS: usize = SPACER_HEIGHT * (TILE_HEIGHT - 1) + PIXEL_HEIGHT;
|
||||
|
||||
pub fn stream_window(
|
||||
connection: &Connection,
|
||||
options: StreamScreenOptions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue