ISVP-SDK  3.12.0
Ingenic Smart Video Platform SDK
Data Structures | Macros | Enumerations
imp_common.h File Reference

SDK-T15 Public data structure header file. More...

#include <stdint.h>
#include <pthread.h>
#include <linux/videodev2.h>
#include <stdio.h>
Include dependency graph for imp_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  IMPCell
 IMPCell enumeration definition. More...
 
struct  IMPFrameInfo
 IMP frame image information definition. More...
 
struct  IMPFrameTimestamp
 IMP Frame time parameter. More...
 
struct  IMPPoint
 IMP point coordinate information. More...
 
struct  IMPRect
 IMP Rectangle area information. More...
 

Macros

#define BPP(FMT, A, B)   case FMT: bpp1 = A;bpp2 = B;break
 

Enumerations

enum  IMPDeviceID {
  DEV_ID_FS, DEV_ID_ENC, DEV_ID_DEC, DEV_ID_IVS,
  DEV_ID_OSD, DEV_ID_FG1DIRECT, DEV_ID_RESERVED_START, DEV_ID_RESERVED_END = 23,
  NR_MAX_DEVICES
}
 IMP Device ID enumeration definition. More...
 
enum  IMPPayloadType { PT_JPEG, PT_H264 }
 Encoding and decoding protocol type. More...
 
enum  IMPPixelFormat {
  PIX_FMT_YUV420P, PIX_FMT_YUYV422, PIX_FMT_UYVY422, PIX_FMT_YUV422P,
  PIX_FMT_YUV444P, PIX_FMT_YUV410P, PIX_FMT_YUV411P, PIX_FMT_GRAY8,
  PIX_FMT_MONOWHITE, PIX_FMT_MONOBLACK, PIX_FMT_NV12, PIX_FMT_NV21,
  PIX_FMT_RGB24, PIX_FMT_BGR24, PIX_FMT_ARGB, PIX_FMT_RGBA,
  PIX_FMT_ABGR, PIX_FMT_BGRA, PIX_FMT_RGB565BE, PIX_FMT_RGB565LE,
  PIX_FMT_RGB555BE, PIX_FMT_RGB555LE, PIX_FMT_BGR565BE, PIX_FMT_BGR565LE,
  PIX_FMT_BGR555BE, PIX_FMT_BGR555LE, PIX_FMT_0RGB, PIX_FMT_RGB0,
  PIX_FMT_0BGR, PIX_FMT_BGR0, PIX_FMT_BAYER_BGGR8, PIX_FMT_BAYER_RGGB8,
  PIX_FMT_BAYER_GBRG8, PIX_FMT_BAYER_GRBG8, PIX_FMT_RAW, PIX_FMT_NB
}
 IMP image format definition. More...
 

Detailed Description

SDK-T15 Public data structure header file.

Enumeration Type Documentation

IMP Device ID enumeration definition.

Enumerator
DEV_ID_FS 

Video Source.

DEV_ID_ENC 

Encoder.

DEV_ID_DEC 

Decoder.

DEV_ID_IVS 

Algorithm.

DEV_ID_OSD 

Image Overlay.

DEV_ID_FG1DIRECT 

FB FG1Direct.

Encoding and decoding protocol type.

Enumerator
PT_JPEG 

JPEG image protocol type.

PT_H264 

H264 video protocol type.

IMP image format definition.

Enumerator
PIX_FMT_YUV420P 

planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)

PIX_FMT_YUYV422 

packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr

PIX_FMT_UYVY422 

packed YUV 4:2:2, 16bpp, Cb Y0 Cr Y1

PIX_FMT_YUV422P 

planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)

PIX_FMT_YUV444P 

planar YUV 4:4:4, 24bpp, (1 Cr & Cb sample per 1x1 Y samples)

PIX_FMT_YUV410P 

planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)

PIX_FMT_YUV411P 

planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)

PIX_FMT_GRAY8 

Y , 8bpp.

PIX_FMT_MONOWHITE 

Y , 1bpp, 0 is white, 1 is black, in each byte pixels are ordered from the msb to the lsb.

PIX_FMT_MONOBLACK 

Y , 1bpp, 0 is black, 1 is white, in each byte pixels are ordered from the msb to the lsb.

PIX_FMT_NV12 

planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (first byte U and the following byte V)

PIX_FMT_NV21 

as above, but U and V bytes are swapped

PIX_FMT_RGB24 

packed RGB 8:8:8, 24bpp, RGBRGB...

PIX_FMT_BGR24 

packed RGB 8:8:8, 24bpp, BGRBGR...

PIX_FMT_ARGB 

packed ARGB 8:8:8:8, 32bpp, ARGBARGB...

PIX_FMT_RGBA 

packed RGBA 8:8:8:8, 32bpp, RGBARGBA...

PIX_FMT_ABGR 

packed ABGR 8:8:8:8, 32bpp, ABGRABGR...

PIX_FMT_BGRA 

packed BGRA 8:8:8:8, 32bpp, BGRABGRA...

PIX_FMT_RGB565BE 

packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian

PIX_FMT_RGB565LE 

packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian

PIX_FMT_RGB555BE 

packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), big-endian, most significant bit to 0

PIX_FMT_RGB555LE 

packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G 5B(lsb), little-endian, most significant bit to 0

PIX_FMT_BGR565BE 

packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian

PIX_FMT_BGR565LE 

packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian

PIX_FMT_BGR555BE 

packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), big-endian, most significant bit to 1

PIX_FMT_BGR555LE 

packed BGR 5:5:5, 16bpp, (msb)1A 5B 5G 5R(lsb), little-endian, most significant bit to 1

PIX_FMT_0RGB 

packed RGB 8:8:8, 32bpp, 0RGB0RGB...

PIX_FMT_RGB0 

packed RGB 8:8:8, 32bpp, RGB0RGB0...

PIX_FMT_0BGR 

packed BGR 8:8:8, 32bpp, 0BGR0BGR...

PIX_FMT_BGR0 

packed BGR 8:8:8, 32bpp, BGR0BGR0...

PIX_FMT_BAYER_BGGR8 

bayer, BGBG..(odd line), GRGR..(even line), 8-bit samples

PIX_FMT_BAYER_RGGB8 

bayer, RGRG..(odd line), GBGB..(even line), 8-bit samples

PIX_FMT_BAYER_GBRG8 

bayer, GBGB..(odd line), RGRG..(even line), 8-bit samples

PIX_FMT_BAYER_GRBG8 

bayer, GRGR..(odd line), BGBG..(even line), 8-bit samples

PIX_FMT_NB 

number of pixel formats.