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

CAPTURE: Convert Buffer to Image #32

Open
x3rud opened this issue Apr 6, 2023 · 0 comments
Open

CAPTURE: Convert Buffer to Image #32

x3rud opened this issue Apr 6, 2023 · 0 comments

Comments

@x3rud
Copy link

x3rud commented Apr 6, 2023

How can i convert the buffer into an image for post processing thins?

let capture = await macadam.capture({
   deviceIndex: 0,
   displayMode: macadam.bmdModeHD1080p6000,
   pixelFormat: macadam.bmdFormat8BitYUV,
});

let frame = await capture.frame();

With this code i get the buffer of the frame, I tried to convert it in any kind of format but can't understand how can i process it with jimp or any kind of tools.

@x3rud x3rud changed the title Convert Buffer to Image CAPTURE: Convert Buffer to Image Apr 6, 2023
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