Skip to content

image

Image module.
More...


Data Structures

struct   morapi_ImagePlane
struct   morapi_Image

Macros

#define  MORAPI_IMAGE_PLANE_NUM   (4)

Enumerations

enum   morapi_ImageFormat { ,
  MORAPI_IMAGE_FORMAT_UINT8 = 0x110001B0, MORAPI_IMAGE_FORMAT_INT8 = 0x110001B1, MORAPI_IMAGE_FORMAT_UINT16 = 0x120001B0, MORAPI_IMAGE_FORMAT_INT16 = 0x120001B1,
  MORAPI_IMAGE_FORMAT_UINT32 = 0x140001B0, MORAPI_IMAGE_FORMAT_INT32 = 0x140001B1, MORAPI_IMAGE_FORMAT_UINT64 = 0x180001B0, MORAPI_IMAGE_FORMAT_INT64 = 0x180001B1,
  MORAPI_IMAGE_FORMAT_RGB565 = 0x220001B0, MORAPI_IMAGE_FORMAT_BGR565 = 0x22000930, MORAPI_IMAGE_FORMAT_RGB8 = 0x230001B0, MORAPI_IMAGE_FORMAT_BGR8 = 0x23000930,
  MORAPI_IMAGE_FORMAT_RGB16 = 0x260001B0, MORAPI_IMAGE_FORMAT_BGR16 = 0x26000930, MORAPI_IMAGE_FORMAT_RGBA8 = 0x340001B0, MORAPI_IMAGE_FORMAT_BGRA8 = 0x34000930,
  MORAPI_IMAGE_FORMAT_ARGB8 = 0x34000C60, MORAPI_IMAGE_FORMAT_ABGR8 = 0x34000E40, MORAPI_IMAGE_FORMAT_YUV444_YUV = 0x430001B0, MORAPI_IMAGE_FORMAT_YUV444_YVU = 0x43000270,
  MORAPI_IMAGE_FORMAT_YUV444_UYV = 0x430004B0, MORAPI_IMAGE_FORMAT_YUV444_UVY = 0x43000630, MORAPI_IMAGE_FORMAT_YUV444_VYU = 0x43000870, MORAPI_IMAGE_FORMAT_YUV444_VUY = 0x43000930,
  MORAPI_IMAGE_FORMAT_YUV422_YYUV = 0x420001B0, MORAPI_IMAGE_FORMAT_YUV422_YYVU = 0x420001C0, MORAPI_IMAGE_FORMAT_YUV422_YUYV = 0x42000270, MORAPI_IMAGE_FORMAT_YUV422_YUVY = 0x420002D0,
  MORAPI_IMAGE_FORMAT_YUV422_YVYU = 0x42000360, MORAPI_IMAGE_FORMAT_YUV422_YVUY = 0x42000390, MORAPI_IMAGE_FORMAT_YUV422_UYYV = 0x42000870, MORAPI_IMAGE_FORMAT_YUV422_UYVY = 0x420008D0,
  MORAPI_IMAGE_FORMAT_YUV422_UVYY = 0x42000B10, MORAPI_IMAGE_FORMAT_YUV422_VYYU = 0x42000C60, MORAPI_IMAGE_FORMAT_YUV422_VYUY = 0x42000C90, MORAPI_IMAGE_FORMAT_YUV422_VUYY = 0x42000E10,
  MORAPI_IMAGE_FORMAT_YUV444_SEMIPLANAR_UV = 0x412001B0, MORAPI_IMAGE_FORMAT_YUV444_SEMIPLANAR_VU = 0x41200270, MORAPI_IMAGE_FORMAT_YUV422_SEMIPLANAR_UV = 0x412001B1, MORAPI_IMAGE_FORMAT_YUV422_SEMIPLANAR_VU = 0x41200271,
  MORAPI_IMAGE_FORMAT_YUV420_SEMIPLANAR_UV = 0x412001B2, MORAPI_IMAGE_FORMAT_YUV420_SEMIPLANAR_VU = 0x41200272, MORAPI_IMAGE_FORMAT_YUV444_PLANAR = 0x411101B0, MORAPI_IMAGE_FORMAT_YUV422_PLANAR = 0x411101B1,
  MORAPI_IMAGE_FORMAT_YUV420_PLANAR = 0x411101B2, MORAPI_IMAGE_FORMAT_BAYER8_GRBG = 0x510004D0, MORAPI_IMAGE_FORMAT_BAYER8_GBRG = 0x51000720, MORAPI_IMAGE_FORMAT_BAYER8_RGGB = 0x510001B0,
  MORAPI_IMAGE_FORMAT_BAYER8_BGGR = 0x51000D80, MORAPI_IMAGE_FORMAT_BAYER16_GRBG = 0x520004D0, MORAPI_IMAGE_FORMAT_BAYER16_GBRG = 0x52000720, MORAPI_IMAGE_FORMAT_BAYER16_RGGB = 0x520001B0,
  MORAPI_IMAGE_FORMAT_BAYER16_BGGR = 0x52000D80
}


Detailed Description

Image module.


Macro Definition Documentation


MORAPI_IMAGE_PLANE_NUM

#define MORAPI_IMAGE_PLANE_NUM   (4)

Max of plane count.


Enumeration Type Documentation


morapi_ImageFormat

enum morapi_ImageFormat

Image format.

  • MSB <--------------------------—> LSB
  • 1111 0000 0000 0000 0000 0000 0000 0000 [Color space] 0(None), 1(Gray), 2(RGB), 3(RGBA), 4(YUV), 5(Bayer)
  • 0000 1111 0000 0000 0000 0000 0000 0000 [Pixel size in Plane 0.]
  • 0000 0000 1111 0000 0000 0000 0000 0000 [Pixel size in Plane 1.]
  • 0000 0000 0000 1111 0000 0000 0000 0000 [Pixel size in Plane 2.]
  • 0000 0000 0000 0000 1111 0000 0000 0000 [Pixel size in Plane 3.]
  • 0000 0000 0000 0000 0000 1111 1111 0000 [The order of pixel components.]
  • 0000 0000 0000 0000 0000 0000 0000 1111 [Optional bits]
Enumerator
MORAPI_IMAGE_FORMAT_UINT8 

Undefined.

Unsigned 8 bits grayscale. G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_INT8 

Signed 8 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_UINT16 

Unsigned 16 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_INT16 

Signed 16 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_UINT32 

Unsigned 32 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_INT32 

Singed 32 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_UINT64 

Unsigned 64 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_INT64 

Singed 64 bits grayscale.

G(00) X(01) X(10) X(11).

MORAPI_IMAGE_FORMAT_RGB565 

RGB565.

The order is RGB. R(00) G(01) B(10) X(11).

MORAPI_IMAGE_FORMAT_BGR565 

RGB565.

The order is BGR. B(10) G(01) R(00) X(11).

MORAPI_IMAGE_FORMAT_RGB8 

8 bits RGB.

The order is RGB. R(00) G(01) B(10) X(11).

MORAPI_IMAGE_FORMAT_BGR8 

8 bits RGB.

The order is BGR. B(10) G(01) R(00) X(11).

MORAPI_IMAGE_FORMAT_RGB16 

16 bits RGB.

The order is RGB. R(00) G(01) B(10) X(11).

MORAPI_IMAGE_FORMAT_BGR16 

16 bits RGB.

The order is BGR. B(10) G(01) R(00) X(11).

MORAPI_IMAGE_FORMAT_RGBA8 

8 bits RGBA.

The order is RGBA. R(00) G(01) B(10) A(11).

MORAPI_IMAGE_FORMAT_BGRA8 

8 bits RGBA.

The order is BGRA. B(10) G(01) R(00) A(11).

MORAPI_IMAGE_FORMAT_ARGB8 

8 bits RGBA.

The order is ARGB. A(11) R(00) G(01) B(10).

MORAPI_IMAGE_FORMAT_ABGR8 

8 bits RGBA.

The order is ABGR. A(11) B(10) G(01) R(00).

MORAPI_IMAGE_FORMAT_YUV444_YUV 

8 bits YUV444.

The order is YUV. Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV444_YVU 

8 bits YUV444.

The order is YVU. Y(00) V(10) U(01) X(11).

MORAPI_IMAGE_FORMAT_YUV444_UYV 

8 bits YUV444.

The order is UYV. U(01) Y(00) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV444_UVY 

8 bits YUV444.

The order is UVY. U(01) V(10) Y(00) X(11).

MORAPI_IMAGE_FORMAT_YUV444_VYU 

8 bits YUV444.

The order is VYU. V(10) Y(00) U(01) X(11).

MORAPI_IMAGE_FORMAT_YUV444_VUY 

8 bits YUV444.

The order is YUV. V(10) U(01) Y(00) X(11).

MORAPI_IMAGE_FORMAT_YUV422_YYUV 

8 bits YUV422.

The order is YYUV. Y0(00) Y1(01) UU(10) VV(11).

MORAPI_IMAGE_FORMAT_YUV422_YYVU 

8 bits YUV422.

The order is YYVU. Y0(00) Y1(01) VV(11) UU(10).

MORAPI_IMAGE_FORMAT_YUV422_YUYV 

8 bits YUV422.

The order is YUYV. Y0(00) UU(10) Y1(01) VV(11).

MORAPI_IMAGE_FORMAT_YUV422_YUVY 

8 bits YUV422.

The order is YUVY. Y0(00) UU(10) VV(11) Y1(01).

MORAPI_IMAGE_FORMAT_YUV422_YVYU 

8 bits YUV422.

The order is YVYU. Y0(00) VV(11) Y1(01) UU(10).

MORAPI_IMAGE_FORMAT_YUV422_YVUY 

8 bits YUV422.

The order is YVUY. Y0(00) VV(11) UU(10) Y1(01).

MORAPI_IMAGE_FORMAT_YUV422_UYYV 

8 bits YUV422.

The order is UYYV. UU(10) Y0(00) Y1(01) VV(11).

MORAPI_IMAGE_FORMAT_YUV422_UYVY 

8 bits YUV422.

The order is UYVY. UU(10) Y0(00) VV(11) Y1(01).

MORAPI_IMAGE_FORMAT_YUV422_UVYY 

8 bits YUV422.

The order is UVYY. UU(10) VV(11) Y0(00) Y1(01).

MORAPI_IMAGE_FORMAT_YUV422_VYYU 

8 bits YUV422.

The order is VYYU. VV(11) Y0(00) Y1(01) UU(10).

MORAPI_IMAGE_FORMAT_YUV422_VYUY 

8 bits YUV422.

The order is VYUY. VV(11) Y0(00) UU(10) Y1(01).

MORAPI_IMAGE_FORMAT_YUV422_VUYY 

8 bits YUV422.

The order is VUYY. VV(11) UU(10) Y0(00) Y1(01).

MORAPI_IMAGE_FORMAT_YUV444_SEMIPLANAR_UV 

8 bits YUV444 semiplanar.

The order is UV. Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV444_SEMIPLANAR_VU 

8 bits YUV444 semiplanar.

The order is VU. Y(00) V(10) U(01) X(11).

MORAPI_IMAGE_FORMAT_YUV422_SEMIPLANAR_UV 

8 bits YUV422 semiplanar.

The order is UV. Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV422_SEMIPLANAR_VU 

8 bits YUV422 semiplanar.

The order is VU. Y(00) V(10) U(01) X(11).

MORAPI_IMAGE_FORMAT_YUV420_SEMIPLANAR_UV 

8 bits YUV420 semiplanar.

The order is UV. Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV420_SEMIPLANAR_VU 

8 bits YUV420 semiplanar.

The order is VU. Y(00) V(10) U(01) X(11).

MORAPI_IMAGE_FORMAT_YUV444_PLANAR 

8 bits YUV444 planar.

Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV422_PLANAR 

8 bits YUV422 planar.

Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_YUV420_PLANAR 

8 bits YUV420 planar.

Y(00) U(01) V(10) X(11).

MORAPI_IMAGE_FORMAT_BAYER8_GRBG 

8 bits Bayer.

The order is GRBG. G(01) R(00) B(11) G(10).

MORAPI_IMAGE_FORMAT_BAYER8_GBRG 

8 bits Bayer.

The order is GBRG. G(01) B(11) R(00) G(10).

MORAPI_IMAGE_FORMAT_BAYER8_RGGB 

8 bits Bayer.

The order is RGGB. R(00) G(01) G(10) B(11).

MORAPI_IMAGE_FORMAT_BAYER8_BGGR 

8 bits Bayer.

The order is BGGR. B(11) G(01) G(10) R(00).

MORAPI_IMAGE_FORMAT_BAYER16_GRBG 

16 bits Bayer.

The order is GRBG. G(01) R(00) B(11) G(10).

MORAPI_IMAGE_FORMAT_BAYER16_GBRG 

16 bits Bayer.

The order is GBRG. G(01) B(11) R(00) G(10).

MORAPI_IMAGE_FORMAT_BAYER16_RGGB 

16 bits Bayer.

The order is RGGB. R(00) G(01) G(10) B(11).

MORAPI_IMAGE_FORMAT_BAYER16_BGGR 

16 bits Bayer.

The order is BGGR. B(11) G(01) G(10) R(00).