hls::LineBuffer<int ROWS, int COLS, typename T>

The template class to represent line buffer in HLS Video Library.
Note: the origin of 2 dimensional line buffer is at bottom-left point.

Template Parameters


  • ROWS - Number of rows in the line buffer.
  • COLS - Number of columns in the line buffer.
  • T - Element(pixel) type.

Class members


val[ROWS][COLS]

2-d array of data in window buffer.

void shift_up(int col)

Line buffer shift up at col, new data will be inserted at location (ROWS-1, col) of the line buffer.

void shift_down(int col)

Line buffer shift down at col, new data will be inserted at location (0, col) of the line buffer.

void insert_up(T value int col)

Insert a new element value at location (ROWS-1, col) of the line buffer.

void insert_up(T value int col)

Insert a new element value at location (0, col) of the line buffer.

T& getval(int row, int col)

Return the data value at location (row, col) of the line buffer.

T& operator ()(int row, int col)

Return the data value at location (row, col) of the line buffer.