From e598a0ecd0b7f1e112cd2e44f433e0f499ffc925 Mon Sep 17 00:00:00 2001 From: Suyash Kumar Date: Thu, 8 Aug 2024 23:06:15 -0400 Subject: [PATCH] comment update --- pkg/frame/native.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/frame/native.go b/pkg/frame/native.go index 6a11aab..04acff8 100644 --- a/pkg/frame/native.go +++ b/pkg/frame/native.go @@ -71,6 +71,9 @@ type NativeFrame[I constraints.Integer] struct { InternalBitsPerSample int } +// NewNativeFrame creates a new NativeFrame[I] given the input parameters. It +// initializes the NativeFrame's internal RawData slice based on pixelsPerFrame +// and samplesPerPixel. func NewNativeFrame[I constraints.Integer](bitsPerSample, rows, cols, pixelsPerFrame, samplesPerPixel int) *NativeFrame[I] { return &NativeFrame[I]{ InternalBitsPerSample: bitsPerSample,