Skip to content

@bvdmitri/web360 / Reframer

Interface: Reframer ​

Defined in: web360/src/reframer.ts:23

Turns equirectangular video frames into flat views of them, one frame at a time.

Remarks ​

reframe draws the view of frame and returns it as a new VideoFrame of the reframer's size with the same timestamp and duration, ready for an encoder; the caller closes both frames. Calls are taken one at a time: await each before the next. destroy releases the GPU device.

Methods ​

destroy() ​

destroy(): void

Defined in: web360/src/reframer.ts:25

Returns ​

void


reframe() ​

reframe(frame, view): Promise<VideoFrame>

Defined in: web360/src/reframer.ts:24

Parameters ​

frame ​

VideoFrame

view ​

View

Returns ​

Promise<VideoFrame>

Released under the MIT License.