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.
How can i convert the buffer into an image for post processing thins?
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.