yuv2rgb

Convert YUV image to RGB.

As in rgb2yuv conversion, YUV format is considered to have same amount of luma and chroma.

Slice!(SliceKind.contiguous, [3], V*)
yuv2rgb
pure nothrow
(
V
)
(
Slice!(SliceKind.contiguous, [3], V*) input
,
Slice!(SliceKind.contiguous, [3], V*) prealloc = emptySlice!([3], V)
)
in { assert (input.length!2 == 3, "Invalid channel count."); }

Parameters

input
Type: Slice!(SliceKind.contiguous, [3], V*)

Input YUV image.

prealloc
Type: Slice!(SliceKind.contiguous, [3], V*)

Optional pre-allocated buffer. If given, has to be of same shape as input image, otherwise gets reallocated.

Return Value

Type: Slice!(SliceKind.contiguous, [3], V*)

Resulting RGB image slice.

Note: Input and pre-allocated slices' strides must be identical.

Meta