ISVP-SDK  T30-1.0.1
Ingenic Smart Video Platform SDK
imp_framesource.h
Go to the documentation of this file.
1 /*
2  * IMP FrameSource header file.
3  *
4  * Copyright (C) 2015 Ingenic Semiconductor Co.,Ltd
5  */
6 
7 #ifndef __IMP_FRAMESOURCE_H__
8 #define __IMP_FRAMESOURCE_H__
9 
10 #include "imp_common.h"
11 
12 #ifdef __cplusplus
13 #if __cplusplus
14 extern "C"
15 {
16 #endif
17 #endif /* __cplusplus */
18 
92 typedef struct {
93  int enable;
94  int left;
95  int top;
96  int width;
97  int height;
98 } IMPFSChnCrop;
99 
103 typedef struct {
104  int enable;
105  int outwidth;
106  int outheight;
108 
109 typedef enum {
112 } IMPFSChnType;
113 
117 typedef enum {
121 
125 typedef struct {
126  int maxdepth;
129 
133 typedef struct {
134  int picWidth;
135  int picHeight;
141  int nrVBs;
143 } IMPFSChnAttr;
144 
162 int IMP_FrameSource_CreateChn(int chnNum, IMPFSChnAttr *chn_attr);
163 
178 int IMP_FrameSource_DestroyChn(int chnNum);
179 
194 int IMP_FrameSource_EnableChn(int chnNum);
195 
210 int IMP_FrameSource_DisableChn(int chnNum);
211 
228 int IMP_FrameSource_GetChnAttr(int chnNum, IMPFSChnAttr *chnAttr);
229 
246 int IMP_FrameSource_SetChnAttr(int chnNum, const IMPFSChnAttr *chnAttr);
247 
275 int IMP_FrameSource_SetFrameDepth(int chnNum, int depth);
276 
292 int IMP_FrameSource_GetFrameDepth(int chnNum, int *depth);
293 
317 int IMP_FrameSource_GetFrame(int chnNum, IMPFrameInfo **frame);
318 
343 int IMP_FrameSource_GetTimedFrame(int chnNum, IMPFrameTimestamp *framets, int block, void *framedata, IMPFrameInfo *frame);
344 
360 int IMP_FrameSource_ReleaseFrame(int chnNum, IMPFrameInfo *frame);
361 
388 int IMP_FrameSource_SnapFrame(int chnNum, IMPPixelFormat fmt, int width, int height, void *framedata, IMPFrameInfo *frame);
389 
405 int IMP_FrameSource_SetMaxDelay(int chnNum, int maxcnt);
406 
422 int IMP_FrameSource_GetMaxDelay(int chnNum, int *maxcnt);
423 
439 int IMP_FrameSource_SetDelay(int chnNum, int cnt);
440 
456 int IMP_FrameSource_GetDelay(int chnNum, int *cnt);
457 
473 int IMP_FrameSource_SetChnFifoAttr(int chnNum, IMPFSChnFifoAttr *attr);
474 
490 int IMP_FrameSource_GetChnFifoAttr(int chnNum, IMPFSChnFifoAttr *attr);
491 
492 #ifdef __cplusplus
493 #if __cplusplus
494 }
495 #endif
496 #endif /* __cplusplus */
497 
502 #endif /* __IMP_FRAMESOURCE_H__ */
The structure of FIFO Channel's attributes.
Definition: imp_framesource.h:125
int enable
Set the parameter to enable/disable cropping.
Definition: imp_framesource.h:93
IMPPixelFormat pixFmt
output image format
Definition: imp_framesource.h:136
int nrVBs
the number of Video buffers
Definition: imp_framesource.h:141
int enable
Set to the parameter to enable/disable scaling.
Definition: imp_framesource.h:104
int IMP_FrameSource_ReleaseFrame(int chnNum, IMPFrameInfo *frame)
Release the frame.
int outFrmRateNum
the molecular of output fps
Definition: imp_framesource.h:139
int IMP_FrameSource_EnableChn(int chnNum)
Enable the selected frame channel.
int picHeight
output image height
Definition: imp_framesource.h:135
int IMP_FrameSource_GetMaxDelay(int chnNum, int *maxcnt)
Get max frame delay.
int IMP_FrameSource_DestroyChn(int chnNum)
Destroy the selected frame channel.
int IMP_FrameSource_CreateChn(int chnNum, IMPFSChnAttr *chn_attr)
Create a frame channel.
int left
the X offset of starting pixel
Definition: imp_framesource.h:94
int maxdepth
FIFO maximum depth.
Definition: imp_framesource.h:126
virtual frame channel
Definition: imp_framesource.h:111
int height
the cropped vertical window size (height)
Definition: imp_framesource.h:97
FIFO caches first,then output data.
Definition: imp_framesource.h:118
int IMP_FrameSource_SetMaxDelay(int chnNum, int maxcnt)
Set max frame delay.
int width
the cropped horizontal window size (width)
Definition: imp_framesource.h:96
IMP frame image information definition.
Definition: imp_common.h:54
FIFO output data first, then caches.
Definition: imp_framesource.h:119
int outFrmRateDen
the denominator of output fps
Definition: imp_framesource.h:140
IMPFSChnType type
the type of the frame channel
Definition: imp_framesource.h:142
IMPFSChnFifoType type
Channel FIFO Type.
Definition: imp_framesource.h:127
The structure of scaling operation.
Definition: imp_framesource.h:103
int IMP_FrameSource_GetTimedFrame(int chnNum, IMPFrameTimestamp *framets, int block, void *framedata, IMPFrameInfo *frame)
Obtained image with specified time.
The structure of cropping operation.
Definition: imp_framesource.h:92
int IMP_FrameSource_GetChnFifoAttr(int chnNum, IMPFSChnFifoAttr *attr)
Get channel maximum caches FIFO attribute.
physics frame channel
Definition: imp_framesource.h:110
int IMP_FrameSource_DisableChn(int chnNum)
Disable the selected frame channel.
IMPFSChnFifoType
Channel FIFO Type.
Definition: imp_framesource.h:117
int IMP_FrameSource_SetFrameDepth(int chnNum, int depth)
Sets the maximum space(depth) for the images.
IMP Frame time parameter.
Definition: imp_common.h:73
IMPPixelFormat
IMP image format definition.
Definition: imp_common.h:91
The structure of frame channel's attributes.
Definition: imp_framesource.h:133
int IMP_FrameSource_GetFrame(int chnNum, IMPFrameInfo **frame)
Obtained image.
int picWidth
output image width
Definition: imp_framesource.h:134
IMPFSChnType
Definition: imp_framesource.h:109
int IMP_FrameSource_SnapFrame(int chnNum, IMPPixelFormat fmt, int width, int height, void *framedata, IMPFrameInfo *frame)
Get frames.
SDK-T15 Public data structure header file.
int IMP_FrameSource_GetFrameDepth(int chnNum, int *depth)
Obtains the depth of Frame FIFO.
int outwidth
the horizontal window size after scaling
Definition: imp_framesource.h:105
int top
the Y offset of starting pixel
Definition: imp_framesource.h:95
int IMP_FrameSource_GetDelay(int chnNum, int *cnt)
Get frame delay.
int IMP_FrameSource_SetChnFifoAttr(int chnNum, IMPFSChnFifoAttr *attr)
set channel's largest cache FIFO attribute
int IMP_FrameSource_GetChnAttr(int chnNum, IMPFSChnAttr *chnAttr)
Obtains the frame channel attribute.
IMPFSChnScaler scaler
the attribute of image scaling
Definition: imp_framesource.h:138
int IMP_FrameSource_SetChnAttr(int chnNum, const IMPFSChnAttr *chnAttr)
Sets the frame channel attribute.
IMPFSChnCrop crop
the attribute of image cropping
Definition: imp_framesource.h:137
int IMP_FrameSource_SetDelay(int chnNum, int cnt)
Set frame delay.
int outheight
the vertical window size after scaling
Definition: imp_framesource.h:106