Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crop Area Size Being Doubled #103

Open
marcochessa opened this issue Jul 26, 2024 · 0 comments
Open

Crop Area Size Being Doubled #103

marcochessa opened this issue Jul 26, 2024 · 0 comments

Comments

@marcochessa
Copy link

I am experiencing an issue where the captured area size is doubled compared to the specified area in the Options. Specifically, when I set the capture area to a width of 500 pixels and a height of 500 pixels, the resulting frames have a resolution of 1000x1000 pixels.
Is this doubling of the captured area size expected behavior?

let options = Options {
    fps: 60,
    target: Some(display),
    show_cursor: true,
    show_highlight: true,
    excluded_targets: None,
    output_type: scap::frame::FrameType::BGRAFrame,
    output_resolution: scap::capturer::Resolution::Captured,
    crop_area: Some(Area {
        origin: Point { x: 0.0, y: 0.0 },
        size: Size {
            width: 500.0,
            height: 500.0,
        },
    }),
    ..Default::default()
};

Output:

Received BGRA frame 0 of width 1000 and height 1000 and time 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant