hls::Scalar<int N, typename T>

The template class to represent a pixel in HLS Video Library.

Template Parameters


  • N - Number of channels in a pixel.
  • T - Data type of each channel.

Class members


val[N]

Array of data in each channel.

Scalar()

Default Constructor.

Scalar(T v0)

Constructor for number of channels no less than 1. Assign v0 to val[0].

Scalar(T v0, T v1)

Constructor for number of channels no less than 2. Assign v0~v1 to val[0]~val[1].

Scalar(T v0, T v1, T v2)

Constructor for number of channels no less than 3. Assign v0~v2 to val[0]~val[2].

Scalar(T v0, T v1, T v2, T v3)

Constructor for number of channels no less than 4. Assign v0~v3 to val[0]~val[3].