cutcutcodec.core.io.framecaster.to_rgb

cutcutcodec.core.io.framecaster.to_rgb()

Convert a frame from the RGB float32 space to uint8 frame in rgb24.

Parameters

framenp.ndarray[np.float32, np.float32, np.float32]

The float32 video frame of shape (height, width, channels).

to_tvbool, default=False

If True, convert the frame in limited range, default is full range.

threadsint, default=0

Number of threads used.

Returns

outnp.ndarray[np.uint8]

The YUV frame in limited range.

Notes

  • It is optimized for C contiguous array.

  • This function makes a safe copy of the input frame, no modification inplace.