Ocean
|
This class implements a frame inverter inverting the internal frame data. More...
Static Public Member Functions | |
static bool | invert (const Frame &source, Frame &target, Worker *worker=nullptr) |
Inverts the pixel values of a given frame. More... | |
static bool | invert (Frame &frame, Worker *worker=nullptr) |
Inverts the pixel values of a given frame. More... | |
template<unsigned int tChannel, unsigned int tChannels> | |
static void | invert8BitChannel (uint8_t *frame, const unsigned int width, const unsigned int height, Worker *worker=nullptr) |
Inverts one channel of an 8 bit per channel frame. More... | |
template<unsigned int tChannel, unsigned int tChannels> | |
static void | invert8BitChannel (const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, Worker *worker=nullptr) |
Inverts one channel of an 8 bit per channel frame. More... | |
template<unsigned int tChannelFirst, unsigned int tChannelLast, unsigned int tChannels> | |
static void | invert8BitChannels (uint8_t *frame, const unsigned int width, const unsigned int height, Worker *worker=nullptr) |
Inverts several channels of an 8 bit per channel frame. More... | |
template<unsigned int tChannelFirst, unsigned int tChannelLast, unsigned int tChannels> | |
static void | invert8BitChannels (const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, Worker *worker=nullptr) |
Inverts several channels of an 8 bit per channel frame. More... | |
static void | invert8BitPerChannel (const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, Worker *worker=nullptr) |
Inverts an 8 bit per channel frame. More... | |
Static Protected Member Functions | |
template<unsigned int tChannel, unsigned int tChannels> | |
static void | invert8BitChannelSubset (uint8_t *frame, const unsigned int width, const unsigned int height, const unsigned int firstRow, const unsigned int numberRows) |
Inverts one channel of a subset of an 8 bit per channel frame. More... | |
template<unsigned int tChannel, unsigned int tChannels> | |
static void | invert8BitChannelSubset (const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const unsigned int firstRow, const unsigned int numberRows) |
Inverts one channel of a subset of an 8 bit per channel frame. More... | |
template<unsigned int tChannelFirst, unsigned int tChannelLast, unsigned int tChannels> | |
static void | invert8BitChannelsSubset (uint8_t *frame, const unsigned int width, const unsigned int height, const unsigned int firstRow, const unsigned int numberRows) |
Inverts several channels of a subset of an 8 bit per channel frame. More... | |
template<unsigned int tChannelFirst, unsigned int tChannelLast, unsigned int tChannels> | |
static void | invert8BitChannelsSubset (const uint8_t *source, uint8_t *target, const unsigned int width, const unsigned int height, const unsigned int firstRow, const unsigned int numberRows) |
Inverts several channels of a subset of an 8 bit per channel frame. More... | |
static void | invert8BitPerChannelSubset (const uint8_t *source, uint8_t *target, const unsigned int horizontalElements, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, const unsigned int firstRow, const unsigned int numberRows) |
Inverts the pixel values of a subset of a given frame. More... | |
static void | invert8BitPerChannelSubsetNEON (const uint8_t *source, uint8_t *target, const unsigned int horizontalElements, const unsigned int sourcePaddingElements, const unsigned int targetPaddingElements, const unsigned int firstRow, const unsigned int numberRows) |
Inverts the pixel values of a subset of a given frame. More... | |
This class implements a frame inverter inverting the internal frame data.
|
static |
Inverts the pixel values of a given frame.
source | The source frame to be inverted |
target | The target frame receiving the inverted pixel values |
worker | Optional worker object to distribute the computation |
Inverts the pixel values of a given frame.
frame | The frame to be inverted |
worker | Optional worker object to distribute the computation |
|
inlinestatic |
Inverts one channel of an 8 bit per channel frame.
source | The source frame data to be inverted |
target | The target frame data receiving the inverted data |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
worker | Optional worker object to distribute the computation |
tChannel | Index of the channel that will be inverted, with range [0, tChannels) |
tChannels | Number of data channels of the frames |
|
inlinestatic |
Inverts one channel of an 8 bit per channel frame.
frame | The frame in that one channel will be inverted |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
worker | Optional worker object to distribute the computation |
tChannel | Index of the channel that will be inverted, with range [0, tChannels) |
tChannels | Number of data channels of the frames |
|
inlinestatic |
Inverts several channels of an 8 bit per channel frame.
source | The source frame data to be inverted |
target | The target frame data receiving the inverted data |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
worker | Optional worker object to distribute the computation |
tChannelFirst | Index of the first channel that will be inverted, with range [0, tChannels) |
tChannelLast | Index of the last (including) channel that will be inverted, with range [tChannelFirst, tChannels) |
tChannels | Number of data channels of the frames |
|
inlinestatic |
Inverts several channels of an 8 bit per channel frame.
frame | The frame in that one channel will be inverted |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
worker | Optional worker object to distribute the computation |
tChannelFirst | Index of the first channel that will be inverted, with range [0, tChannels) |
tChannelLast | Index of the last (including) channel that will be inverted, with range [tChannelFirst, tChannels) |
tChannels | Number of data channels of the frames |
|
staticprotected |
Inverts several channels of a subset of an 8 bit per channel frame.
source | The source frame data to be inverted |
target | The target frame data receiving the inverted data |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
firstRow | First row to be handled |
numberRows | Number of rows to be handled |
tChannelFirst | Index of the first channel that will be inverted, with range [0, tChannels) |
tChannelLast | Index of the last (including) channel that will be inverted, with range [tChannelFirst, tChannels) |
tChannels | Number of data channels of the frames |
|
staticprotected |
Inverts several channels of a subset of an 8 bit per channel frame.
frame | The frame in that one channel will be inverted |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
firstRow | First row to be handled |
numberRows | Number of rows to be handled |
tChannelFirst | Index of the first channel that will be inverted, with range [0, tChannels) |
tChannelLast | Index of the last (including) channel that will be inverted, with range [tChannelFirst, tChannels) |
tChannels | Number of data channels of the frames |
|
staticprotected |
Inverts one channel of a subset of an 8 bit per channel frame.
source | The source frame data to be inverted |
target | The target frame data receiving the inverted data |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
firstRow | First row to be handled |
numberRows | Number of rows to be handled |
tChannel | Index of the channel that will be inverted, with range [0, tChannels) |
tChannels | Number of data channels of the frames |
|
staticprotected |
Inverts one channel of a subset of an 8 bit per channel frame.
frame | The frame in that one channel will be inverted |
width | The width of the frame in pixel |
height | The height of the frame in pixel |
firstRow | First row to be handled |
numberRows | Number of rows to be handled |
tChannel | Index of the channel that will be inverted, with range [0, tChannels) |
tChannels | Number of data channels of the frames |
|
inlinestatic |
Inverts an 8 bit per channel frame.
source | The source frame data to be inverted, must be valid |
target | The target frame data receiving the inverted data, must be valid |
width | The width of the frame in pixel, with range [1, infinity) |
height | The height of the frame in pixel, with range [1, infinity) |
channels | Number of data channels of both frames, with range [1, infinity) |
sourcePaddingElements | Optional number of padding elements at the end of each source row, in elements, with range [0, infinity) |
targetPaddingElements | Optional number of padding elements at the end of each target row, in elements, with range [0, infinity) |
worker | Optional worker object to distribute the computation |
|
staticprotected |
Inverts the pixel values of a subset of a given frame.
source | The source frame to be inverted, must be valid |
target | The target frame receiving the inverted pixel values, must be valid |
horizontalElements | The number of horizontal elements to be inverted (which is width * channels), with range [1, infinity) |
sourcePaddingElements | Optional number of padding elements at the end of each source row, in elements, with range [0, infinity) |
targetPaddingElements | Optional number of padding elements at the end of each target row, in elements, with range [0, infinity) |
firstRow | The first row to be handled, with range [0, height - 1] |
numberRows | The number of rows to be handled, with range [1, height - firstRow] |
|
staticprotected |
Inverts the pixel values of a subset of a given frame.
source | The source frame to be inverted, must be valid |
target | The target frame receiving the inverted pixel values, must be valid |
horizontalElements | The number of horizontal elements to be inverted (which is width * channels), with range [16, infinity) |
sourcePaddingElements | Optional number of padding elements at the end of each source row, in elements, with range [0, infinity) |
targetPaddingElements | Optional number of padding elements at the end of each target row, in elements, with range [0, infinity) |
firstRow | The first row to be handled, with range [0, height - 1] |
numberRows | The number of rows to be handled, with range [1, height - firstRow] |