![]() |
MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
|
Helper functions for different colour space options, base class. More...
#include <colourspace.h>
Public Member Functions | |
ColourSpace ()=default | |
Construct a new Colour Space object. | |
virtual | ~ColourSpace ()=default |
Destroy the Colour Space object. | |
virtual int | RgbToYuv (uint32_t height, uint32_t width, uint8_t *rgb, uint8_t *yuv) const =0 |
Convert YUV to RGBA. | |
virtual int | RgbToMono8 (uint32_t height, uint32_t width, uint8_t *rgb, uint8_t *mono8) const =0 |
Convert RGB to Monochrome 8 bits ber pixel. | |
virtual int | RgbToMono16 (uint32_t height, uint32_t width, uint8_t *rgb, uint8_t *mono16) const =0 |
Convert RGB to Monochrome 16 bits ber pixel. | |
virtual int | RgbaToYuv (uint32_t width, uint32_t height, uint8_t *rgba, uint8_t *yuv) const =0 |
Convert RGBA to YUV. | |
virtual int | RgbaToRgb (uint32_t width, uint32_t height, uint8_t *rgba, uint8_t *rgb) const =0 |
Convert RGBA to RGB. | |
virtual int | RgbaToBgra (uint32_t width, uint32_t height, uint8_t *rgba, uint8_t *bgra) const =0 |
Convert RGBA to RGB. | |
virtual int | RgbToBgra (uint32_t width, uint32_t height, uint8_t *rgba, uint8_t *rgb) const =0 |
Convert RGB to RGBA. | |
virtual int | YuvToBgra (uint32_t height, uint32_t width, uint8_t *yuv, uint8_t *rgba) const =0 |
Convert YUV to RGBA. | |
virtual int | Mono8ToBgra (uint32_t width, uint32_t height, uint8_t *mono8, uint8_t *bgra) const =0 |
Convert Mono8 to RGBA on the CPU. | |
virtual int | Mono16ToBgra (uint32_t width, uint32_t height, uint8_t *mono16, uint8_t *bgra) const =0 |
Convert Mono16 to RGBA on the CPU. | |
virtual int | RgbToRgba (uint32_t width, uint32_t height, uint8_t *rgb, uint8_t *rgba) const =0 |
Convert RGB to RGBA on the CPU. | |
virtual int | Yuv422ToRgba (uint32_t height, uint32_t width, uint8_t *yuv422, uint8_t *rgba) const =0 |
Convert YUV to RGBA on the CPU. | |
virtual int | Yuv420ToRgba (uint32_t height, uint32_t width, uint8_t *yuv420, uint8_t *rgba) const =0 |
virtual int | Mono8ToRgba (uint32_t width, uint32_t height, uint8_t *mono8, uint8_t *rgba) const =0 |
Convert Mono8 to RGBA on the CPU. | |
virtual int | Mono8ToRgb (uint32_t width, uint32_t height, uint8_t *mono8, uint8_t *rgb) const =0 |
Convert Mono8 to RGB on the CPU. | |
virtual int | Mono16ToRgba (uint32_t width, uint32_t height, uint8_t *mono16, uint8_t *rgba) const =0 |
Convert Mono16 to RGBA on the CPU. | |
virtual int | Mono16ToRgb (uint32_t width, uint32_t height, uint8_t *mono16, uint8_t *rgb) const =0 |
Convert Mono16 to RGBA on the CPU. | |
virtual int | YuvToRgb (uint32_t height, uint32_t width, uint8_t *yuv, uint8_t *rgb) const =0 |
Convert YUV to RGB. | |
virtual int | Yuv420pToRgb (uint32_t height, uint32_t width, uint8_t *yuv, uint8_t *rgb) const =0 |
Convert YUV:420P to RGB. | |
virtual int | ScaleToSizeRgb (uint32_t source_height, uint32_t source_width, uint8_t *source_rgb_buffer, uint32_t target_height, uint32_t target_width, uint8_t *target_rgb_buffer) const =0 |
Scale the image to the target size for RGB. | |
virtual int | ScaleToSizeRgba (uint32_t source_height, uint32_t source_width, uint8_t *source_rgb_buffer, uint32_t target_height, uint32_t target_width, uint8_t *target_rgb_buffer) const =0 |
Scale the image to the target size for RGBA. | |
Helper functions for different colour space options, base class.
|
pure virtual |
Convert Mono16 to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
mono16 | The monochrome 16 bit image |
bgra | The BGRA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert Mono16 to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
mono16 | The monochrome 16 bit image |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert Mono16 to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
mono16 | The monochrome 16 bit image |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert Mono8 to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
mono8 | The monochrome 8 bit image |
bgra | The BGRA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert Mono8 to RGB on the CPU.
width | The height of the image |
height | The width of the image |
mono8 | The monochrome 8 bit image |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert Mono8 to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
mono8 | The monochrome 8 bit image |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert RGBA to RGB.
width | The height of the image |
height | The width of the image |
rgba | The RGBA image buffer |
bgra | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert RGBA to RGB.
width | The height of the image |
height | The width of the image |
rgba | The RGBA image buffer |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Convert RGBA to YUV.
width | The width of the image |
height | The height of the image |
rgba | The RGB image buffer |
yuv | The YUV:422 image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Convert RGB to RGBA.
width | The height of the image |
height | The width of the image |
rgba | The RGBA image buffer |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert RGB to Monochrome 16 bits ber pixel.
height | The height of the image |
width | The width of the image |
rgb | The RGB image buffer |
mono16 | The monochrome 16 image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Convert RGB to Monochrome 8 bits ber pixel.
height | The height of the image |
width | The width of the image |
rgb | The RGB image buffer |
mono8 | The monochrome 8 image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Convert RGB to RGBA on the CPU.
width | The height of the image |
height | The width of the image |
rgb | The RGB image buffer |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert YUV to RGBA.
height | The height of the image |
width | The width of the image |
rgb | The RGB image buffer |
yuv | The YUV:422 image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Scale the image to the target size for RGB.
source_height | The height of the source image |
source_width | The width of the source image |
source_rgb_buffer | The source image buffer |
target_height | The height of the target image |
target_width | The width of the target image |
target_rgb_buffer | The target image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Scale the image to the target size for RGBA.
source_height | The height of the source image |
source_width | The width of the source image |
source_rgb_buffer | The source image buffer |
target_height | The height of the target image |
target_width | The width of the target image |
target_rgb_buffer | The target image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert YUV:420P to RGB.
height | The height of the image |
width | The width of the image |
yuv | The YUV:420p image buffer |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
height | The height of the image |
width | The width of the image |
yuv420 | The YUV:420 image buffer |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert YUV to RGBA on the CPU.
height | The height of the image |
width | The width of the image |
yuv422 | The YUV:422 image buffer |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu.
|
pure virtual |
Convert YUV to RGBA.
height | The height of the image |
width | The width of the image |
yuv | The YUV:422 image buffer |
rgba | The RGBA image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.
|
pure virtual |
Convert YUV to RGB.
height | The height of the image |
width | The width of the image |
yuv | The YUV:422 image buffer |
rgb | The RGB image buffer |
Implemented in mediax::video::ColourSpaceCpu, and mediax::video::ColourSpaceCuda.