Skip to content

CAPTURE: Convert Buffer to Image #32

@x3rud

Description

@x3rud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions