7 #ifndef __IMP_ENCODER_H__
8 #define __IMP_ENCODER_H__
451 IMP_RC_SUPERFRM_BUTT = 3,
461 IMP_RC_PRIORITY_BUTT = 3,
504 uint8_t qmem_table[128];
int dnIQp
I slice quantization parameter.
Definition: imp_encoder.h:187
int iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:89
bool gopRelation
whether GOP has relationship
Definition: imp_encoder.h:93
int IMP_Encoder_GetFd(int encChn)
Get encode channel's device file descriptor handler.
access unit delimiter
Definition: imp_encoder.h:321
super frame threshold first
Definition: imp_encoder.h:460
video parameter set
Definition: imp_encoder.h:318
IMPEncoderAttrH265VBR attrH265Vbr
the H.265 protocol VBR ratecontrol attribute
Definition: imp_encoder.h:264
uint32_t changePos
adjust qp position avriation when bitrate exceeds changepos*maxBitRate, range:[50, 100]
Definition: imp_encoder.h:121
int IMP_Encoder_SetChnROI(int encChn, const IMPEncoderROICfg *pstVencRoiCfg)
Set encoder channel ROI attribute.
int IMP_Encoder_SetChnColor2Grey(int encChn, const IMPEncoderColor2GreyCfg *pstColor2Grey)
set color to grey attribute
Coded slice data partition B.
Definition: imp_encoder.h:288
IMPEncoderH264NaluType
H264 stream NAL unit type codes.
Definition: imp_encoder.h:284
int IMP_Encoder_GetGOPSize(int encChn, IMPEncoderGOPSizeCfg *pstGOPSizeCfg)
Get encoder channel GOP attribute.
int s32Qp
the absolute or relative qp in roi region
Definition: imp_encoder.h:440
int IMP_Encoder_GetChnROI(int encChn, IMPEncoderROICfg *pstVencRoiCfg)
Get encoder channel roi attribute.
int64_t timestamp
timestamp,unit:us
Definition: imp_encoder.h:345
int IMP_Encoder_GetChnEncType(int encChn, IMPPayloadType *payLoadType)
Get encode channel protocol type.
int IMP_Encoder_ReleaseStream(int encChn, IMPEncoderStream *stream)
release the bitstream buffer
bool gopRelation
gop relationship whether or not
Definition: imp_encoder.h:109
IMPEncoderAttr encAttr
encoder attribute
Definition: imp_encoder.h:396
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:160
int n
base frame interval
Definition: imp_encoder.h:238
Define the h264 and h265 encoder channel ratecontroller attribute.
Definition: imp_encoder.h:272
IMPEncoderCropCfg crop
crop attributel
Definition: imp_encoder.h:388
uint32_t maxQp
max Frame level Qp parameter,range:[0-51]
Definition: imp_encoder.h:139
IMPEncoderH265NaluType
H265 stream NAL unit type codes.
Definition: imp_encoder.h:301
bool gopRelation
whether GOP has relationship
Definition: imp_encoder.h:125
int IMP_Encoder_SetH265TransCfg(int encChn, const IMPEncoderH265TransCfg *pstH265TransCfg)
Set H.265 encode channel chroma quantization attribute.
Frame loss mode.
Definition: imp_encoder.h:197
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:144
int32_t iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:120
Coded slice segment of a non-TSA, non-STSA trailing picture, none reference.
Definition: imp_encoder.h:302
uint32_t maxQp
max encoder Quantization parameter,range:[0-51]
Definition: imp_encoder.h:169
uint32_t superPFrmBitsThr
super P frame threadhold, default:super I frame threshold divide by 1.4
Definition: imp_encoder.h:470
int IMP_Encoder_SetChnHSkipBlackEnhance(int encChn, const int bBlackEnhance)
Set encode channel'bBlackEnhance in high skip reference attribute.
int32_t iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:104
IMPSkipType maxHSkipType
must used max skip type, effect rmem size, N1X to N2X need 2 rd frame space, N4X to H1M_TRUE need 3 r...
Definition: imp_encoder.h:249
uint32_t outBitRate
output bitstream rate, unit:kbps
Definition: imp_encoder.h:142
uint32_t bufSize
Configure buffer size,shouldn't be less than width*height*3/2.
Definition: imp_encoder.h:384
bool enable
variable to enable color to grey, 0: no, 1: yes
Definition: imp_encoder.h:416
uint32_t qualityLvl
Video quality lowest level, range:[0-7];the lower the value, the higher the quality and the biger th...
Definition: imp_encoder.h:159
IMPEncoderPack * pack
bitstream packet
Definition: imp_encoder.h:354
IMPRefType
Define the encode ref type of h264 and h265 channel.
Definition: imp_encoder.h:225
Define the bitstream structure of one frame.
Definition: imp_encoder.h:353
uint32_t superBFrmBitsThr
super B frame threadhold, default:super P frame threshold divide by 1.3
Definition: imp_encoder.h:471
Coded slice segment of a broken link access picture, with leading picture.
Definition: imp_encoder.h:312
IMPEncoderAttrH264FixQP attrH264FixQp
the H.264 protocol FixQp ratecontrol attribute
Definition: imp_encoder.h:258
EncFrmUsedMode frmUsedMode
input frame usage mode variable
Definition: imp_encoder.h:205
uint32_t maxQp
max encoder Quantization parameter,range:[0-51]
Definition: imp_encoder.h:116
Define the VBR ratecontrol attribute of h264 channel.
Definition: imp_encoder.h:99
Coded slice segment of a temporal sub-layer access picture, with reference.
Definition: imp_encoder.h:305
Access unit delimiter.
Definition: imp_encoder.h:294
int IMP_Encoder_GetH264TransCfg(int encChn, IMPEncoderH264TransCfg *pstH264TransCfg)
Get H.264 encode channel chroma quantization attribute.
end of sequence
Definition: imp_encoder.h:322
high skip frame reference mode:1M open skip frame
Definition: imp_encoder.h:218
uint32_t curPacks
Number of packets in current frame.
Definition: imp_encoder.h:408
uint32_t maxQp
max encoder Quantization parameter,range:[0-51]
Definition: imp_encoder.h:153
Coded slice of an IDR picture.
Definition: imp_encoder.h:290
int IMP_Encoder_GetSuperFrameCfg(int encChn, IMPEncoderSuperFrmCfg *pstSuperFrmParam)
Get video coded supper frame configuration.
uint32_t leftStreamFrames
Number of Stream buffer remaining frames.
Definition: imp_encoder.h:407
IMPEncoderAttrH265FixQP attrH265FixQp
the H.265 protocol FixQp ratecontrol attribute
Definition: imp_encoder.h:262
int dnType
denoise type,0:NONE-no denoise, 1:IP-loss info most, 2:II-loss info less
Definition: imp_encoder.h:186
bool enable
whether denoise function is enabled/disabled , 0:disable, 1:enable
Definition: imp_encoder.h:185
uint32_t minQp
min encoder Quantization parameter,range:[0-maxQp]
Definition: imp_encoder.h:117
bool enable
whether enable/disable crop, false:disable, true: enable
Definition: imp_encoder.h:364
uint32_t virAddr
bitstream packet virtual address
Definition: imp_encoder.h:343
int IMP_Encoder_UnRegisterChn(int encChn)
unregister encode channel from group
int iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:143
Define the input frame usage mode attribute of h264 and h265 channel.
Definition: imp_encoder.h:203
Coded slice segment of a random access skipped leading picture, none reference.
Definition: imp_encoder.h:310
Coded slice segment of a step-wise temporal sub-layer access picture, none reference.
Definition: imp_encoder.h:306
int IMP_Encoder_GetChangeRef(int encChn, int *bEnable)
get whether allow change base skip frame's reference or not
IMPEncoderH265NaluType h265Type
H265 stream NAL unit type code.
Definition: imp_encoder.h:335
IMPEncoderRcAttr rcAttr
ratecontrol attribute, only for h264 and h265
Definition: imp_encoder.h:397
IMPEncoderUserDataCfg userData
insert userdata attribute, only for h264 and h265
Definition: imp_encoder.h:389
IMPPayloadType enType
encode protocal type
Definition: imp_encoder.h:383
IMPEncoderRcPriority rcPriority
priority of ratecontrol, default: RDO
Definition: imp_encoder.h:472
Define the h264 and h265 channel enalbe IDR parameter.
Definition: imp_encoder.h:422
uint32_t leftStreamBytes
Number of Stream buffer remaining byte.
Definition: imp_encoder.h:406
IMPPayloadType
Encoding and decoding protocol type.
Definition: imp_common.h:82
Coded slice of a non-IDR picture.
Definition: imp_encoder.h:286
Smart method.
Definition: imp_encoder.h:61
int gopsize
IDR parameters.
Definition: imp_encoder.h:430
Coded slice segment of an instantaneous decoding refresh picture, with RADL.
Definition: imp_encoder.h:315
Define the Smart ratecontrol attribute of h264 channel.
Definition: imp_encoder.h:115
bool adaptiveMode
adaptive mode
Definition: imp_encoder.h:92
int IMP_Encoder_StopRecvPic(int encChn)
stop encode channel to receive frames
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:107
open SAS mode
Definition: imp_encoder.h:491
reencoder super frame (supported), default
Definition: imp_encoder.h:450
Coded slice segment of a temporal sub-layer access picture, none reference.
Definition: imp_encoder.h:304
IMPEncoderRcMode
Define channel ratecontrol method.
Definition: imp_encoder.h:57
int IMP_Encoder_SetChangeRef(int encChn, int bEnable)
set whether allow change base skip frame's reference or not
int IMP_Encoder_GetJpegeQl(int encChn, IMPEncoderJpegeQl *pstJpegeQl)
Get JPEG encode channel quantization table set param.
IMPEncoderRcPriority
Define h264 and h265 channel priority type of ratecontrol.
Definition: imp_encoder.h:457
int IMP_Encoder_SetChnHSkip(int encChn, const IMPEncoderAttrHSkip *phSkipAttr)
Set encode channel high skip reference attribute.
int IMP_Encoder_GetChnAttrRcMode(int encChn, IMPEncoderAttrRcMode *pstRcModeCfg)
Get encode channel rate controller mode attribute(s)
open CRP mode and QP_TAB
Definition: imp_encoder.h:494
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:90
VBR method.
Definition: imp_encoder.h:60
int IMP_Encoder_DestroyGroup(int encGroup)
destroy the encoding Group
int IMP_Encoder_GetQpgMode(int encChn, IMPEncoderQpgMode *pstQpgMode)
Get macroblock encode mode.
Define H.264 encoder channel chroma quantization struct.
Definition: imp_encoder.h:478
uint32_t phyAddr
bitstream packet physical address
Definition: imp_encoder.h:342
IMPEncoderRcMode rcMode
ratecontrol mode
Definition: imp_encoder.h:256
IMPEncoderAttrHSkip hSkipAttr
high skip frame type attr
Definition: imp_encoder.h:248
Coded slice data partition C.
Definition: imp_encoder.h:289
Coded slice segment of a random access decodable leading picture, with reference. ...
Definition: imp_encoder.h:309
bool bEnable
whether enable/disable ROI func to the region
Definition: imp_encoder.h:438
uint32_t changePos
adjust qp position avriation when bitrate exceeds changepos*maxBitRate, range:[50, 100]
Definition: imp_encoder.h:105
uint32_t flucLvl
max bitrate fluctuation grade relative to average bitrate, range [0-4]
Definition: imp_encoder.h:178
IMPEncoderSuperFrmMode
Define h264 and h265 channel process strategy of ratecontrol super frame.
Definition: imp_encoder.h:447
uint32_t minQp
min Frame level Qp parameter,range:[0-maxQp]
Definition: imp_encoder.h:140
uint32_t length
bitstram packet length
Definition: imp_encoder.h:344
IMPSkipType skipType
skip type
Definition: imp_encoder.h:236
Define the Smart ratecontrol attribute of h265 channel.
Definition: imp_encoder.h:168
uint32_t w
the width of crop region
Definition: imp_encoder.h:367
uint32_t profile
encode profile, 0: baseline; 1:MP; 2:HP
Definition: imp_encoder.h:385
Define encode channel state attribute structure.
Definition: imp_encoder.h:403
Define color to grey parameter.
Definition: imp_encoder.h:415
prifix supplemental enhancement information
Definition: imp_encoder.h:325
IMPEncoderAttrInitHSkip attrHSkip
high skip frame type attribute
Definition: imp_encoder.h:278
uint32_t maxBitRate
max bitrate in one second, unit:kbps
Definition: imp_encoder.h:156
uint32_t x
the left-top x-coordinate of crop region
Definition: imp_encoder.h:365
int IMP_Encoder_GetH265TransCfg(int encChn, IMPEncoderH265TransCfg *pstH265TransCfg)
Get H.265 encode channel chroma quantization attribute.
IMPEncoderSuperFrmMode superFrmMode
super frame process strategy, default: SUPERFRM_REENCODE
Definition: imp_encoder.h:468
int IMP_Encoder_GetMbRC(int encChn, int *bEnable)
get the status whether open mb ratecontrol or not
open SAS mode and mult-thresh mode
Definition: imp_encoder.h:492
invalidate method
Definition: imp_encoder.h:62
int IMP_Encoder_SetChnFrmRate(int encChn, const IMPEncoderFrmRate *pstFps)
Set encode channel framerate controlled attribute.
repeat use of a frame mode
Definition: imp_encoder.h:196
int maxSameSceneCnt
one scene over gop num, only effect to H1M skip type, when set more than 1, m no effect ...
Definition: imp_encoder.h:239
uint32_t maxUserDataSize
User's Maximum size of insert data cache, range:16-1024.
Definition: imp_encoder.h:376
uint32_t maxBitRate
max bitrate in one second, unit:kbps
Definition: imp_encoder.h:172
uint32_t changePos
adjust qp position avriation when bitrate exceeds changepos*maxBitRate, range:[50, 100]
Definition: imp_encoder.h:174
IMPEncoderAttrH265Smart attrH265Smart
the H.265 protocol Smart ratecontrol attribute
Definition: imp_encoder.h:265
Supplemental enhancement information(SEI)
Definition: imp_encoder.h:291
Sequential full use mode - default mode.
Definition: imp_encoder.h:195
uint32_t qualityLvl
Video quality level, range:[0-6];the higher the value, the higher the quality and the biger the bits...
Definition: imp_encoder.h:122
high skip frame reference mode:N1 open skip frame
Definition: imp_encoder.h:216
end of bitstream
Definition: imp_encoder.h:323
uint32_t picWidth
frame width, must be 16 aligned,shouldn't less than 256
Definition: imp_encoder.h:386
uint32_t minQp
min encoder Quantization parameter,range:[0-maxQp]
Definition: imp_encoder.h:154
int m
enhance frame interval
Definition: imp_encoder.h:237
uint32_t frmRateDen
the tick num in one frame, the denominator of framerate
Definition: imp_encoder.h:72
IMPEncoderAttrH265CBR attrH265Cbr
the H.265 protocol CBR ratecontrol attribute
Definition: imp_encoder.h:263
Define the CBR ratecontrol attribute of h264 channel.
Definition: imp_encoder.h:85
int IMP_Encoder_RequestIDR(int encChn)
Requst IDR frame.
int IMP_Encoder_GetFisheyeEnableStatus(int encChn, int *enable)
get enabled status of ingenic fisheye correction algorithm
uint32_t frmUsedTimes
the frame interval (repeat or skip mode)
Definition: imp_encoder.h:206
Define high skip frame type init structure of h264 and h265 channel.
Definition: imp_encoder.h:247
bool enable
Configuration of EnableIDR, 0:disable, 1:enable.
Definition: imp_encoder.h:423
Coded slice segment of a non-TSA, non-STSA trailing picture, with reference.
Definition: imp_encoder.h:303
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:108
uint32_t superIFrmBitsThr
super I frame threshold, default: w*h*3/2*8/ratio, ratio: mainres-6, subres-3
Definition: imp_encoder.h:469
the long base(p) frame in high skip frame reference mode
Definition: imp_encoder.h:227
int IMP_Encoder_SetChnFrmUsedMode(int encChn, const IMPEncoderAttrFrmUsed *pfrmUsedAttr)
Set encoder channel input frame usage mode attribute.
uint32_t y
the left-top y-coordinate of crop region
Definition: imp_encoder.h:366
Define the VBR ratecontrol attribute of h265 channel.
Definition: imp_encoder.h:152
Coded slice segment of a broken link access picture, none leading picture.
Definition: imp_encoder.h:314
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:91
int IMP_Encoder_FlushStream(int encChn)
flush old bitstream of encoder and start with idr frame to encode
Define the FixQp ratecontrol attribute of h264 channel.
Definition: imp_encoder.h:78
Define the FixQp ratecontrol attribute of h265 channel.
Definition: imp_encoder.h:131
Define encoder channel attribute structure.
Definition: imp_encoder.h:395
Filler data.
Definition: imp_encoder.h:295
Coded slice segment of a random access skipped leading picture, with reference.
Definition: imp_encoder.h:311
int IMP_Encoder_GetChnFrmUsedMode(int encChn, IMPEncoderAttrFrmUsed *pfrmUsedAttr)
Get encoder channel input frame usage mode attribute.
IMPEncoderAttrH264CBR attrH264Cbr
the H.264 protocol CBR ratecontrol attribute
Definition: imp_encoder.h:259
IMPRefType refType
h264 and h265 reference type of encode frame
Definition: imp_encoder.h:357
uint32_t seq
bitstream sequence number
Definition: imp_encoder.h:356
Coded slice segment of a broken link access picture, with leading RADL.
Definition: imp_encoder.h:313
uint32_t maxBitRate
max bitrate in one second, unit:kbps
Definition: imp_encoder.h:119
high skip frame reference mode:N1 close skip frame
Definition: imp_encoder.h:217
int bBlackEnhance
be made to use black coded bitstream to enhance frame?
Definition: imp_encoder.h:241
uint32_t qualityLvl
Video quality level, range:[0-6];the higher the value, the higher the quality and the biger the bits...
Definition: imp_encoder.h:175
uint32_t leftPics
Number of images to be encoded.
Definition: imp_encoder.h:405
IMPEncoderAttrH264VBR attrH264Vbr
the H.264 protocol VBR ratecontrol attribute
Definition: imp_encoder.h:260
IMPEncoderFrmRate outFrmRate
output framerate, (frame output shouldn't be bigger than input framerate)
Definition: imp_encoder.h:273
Fixqp method.
Definition: imp_encoder.h:58
Coded slice segment of an instantaneous decoding refresh picture, none leading picture.
Definition: imp_encoder.h:316
open SAS mode, mult-thresh mode and QP_TAB
Definition: imp_encoder.h:496
int IMP_Encoder_SetGOPSize(int encChn, const IMPEncoderGOPSizeCfg *pstGOPSizeCfg)
Set encoder channel gop attribute.
Define JPEG encoder channel quantization table set param struct.
Definition: imp_encoder.h:502
uint32_t maxGop
gop value,suggested to be an integer multiple of the framerate
Definition: imp_encoder.h:274
Define h264 and h265 channel ROI parameters.
Definition: imp_encoder.h:436
uint32_t frmRateNum
the tick num in one second, the numerator of framerate
Definition: imp_encoder.h:71
Define the encoder crop attribute(crop first, scaler second)
Definition: imp_encoder.h:363
IMPEncoderAttrRcMode attrRcMode
ratecontrol mode attribute
Definition: imp_encoder.h:275
Sequence parameter set.
Definition: imp_encoder.h:292
rdo priority
Definition: imp_encoder.h:458
Define video encode channel framerate structure frmRateNum and frmRateDen is LCM must be 1 and GCD mu...
Definition: imp_encoder.h:70
uint32_t staticTime
bitstream statistic time, unit:second
Definition: imp_encoder.h:102
IMPRect rect
region coordinate attribute(s)
Definition: imp_encoder.h:441
the enhance(p) frame in high skip frame reference mode
Definition: imp_encoder.h:229
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:176
IMPEncoderAttrDenoise attrDenoise
denoise attribute
Definition: imp_encoder.h:277
int IMP_Encoder_SetQpgMode(int encChn, const IMPEncoderQpgMode *pstQpgMode)
Set macroblock encode mode.
2 times (skip frame reference)
Definition: imp_encoder.h:214
int IMP_Encoder_SetJpegeQl(int encChn, const IMPEncoderJpegeQl *pstJpegeQl)
Set JPEG encode channel quantization table set param.
no strategy (supported)
Definition: imp_encoder.h:448
IMPEncoderAttrH264Smart attrH264Smart
the H.264 protocol Smart ratecontrol attribute
Definition: imp_encoder.h:261
int IMP_Encoder_DestroyChn(int encChn)
destroy encode Channel
int32_t iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:173
Define encoder attribute structure.
Definition: imp_encoder.h:382
int IMP_Encoder_SetChnDenoise(int encChn, const IMPEncoderAttrDenoise *pdenoiseAttr)
Set encode channel denoise attribute.
int IMP_Encoder_CreateGroup(int encGroup)
Create encode Group.
dop super frame (unsupported), users should decide whether drop or not
Definition: imp_encoder.h:449
int32_t iBiasLvl
I proportional frame support (-3~3), 7 levels.
Definition: imp_encoder.h:157
bool bRelatedQp
0:absolute ROI,1:relative ROI
Definition: imp_encoder.h:439
uint32_t outBitRate
output bitstream rate, unit:kbps
Definition: imp_encoder.h:88
uint32_t qualityLvl
Video quality lowest level, range:[0-7];the lower the value, the higher the quality and the biger th...
Definition: imp_encoder.h:106
Define h264 and h265 channel Paramete of super frame process strategy.
Definition: imp_encoder.h:467
int IMP_Encoder_PollingStream(int encChn, uint32_t timeoutMsec)
Polling bitstream buffer.
uint32_t work_done
work done state,0:running,1,not running
Definition: imp_encoder.h:409
open SAS mode and QP_TAB
Definition: imp_encoder.h:495
Coded slice segment of a step-wise temporal sub-layer access picture, with reference.
Definition: imp_encoder.h:307
int IMP_Encoder_GetStream(int encChn, IMPEncoderStream *stream, bool blockFlag)
Get encode bitstream.
picture parameter set
Definition: imp_encoder.h:320
uint32_t flucLvl
max bitrate fluctuation grade relative to average bitrate, range [0-4]
Definition: imp_encoder.h:146
uint32_t changePos
adjust qp position avriation when bitrate exceeds changepos*maxBitRate, range:[50, 100]
Definition: imp_encoder.h:158
uint32_t flucLvl
max bitrate fluctuation grade relative to average bitrate, range [0-4]
Definition: imp_encoder.h:162
open CRP mode (default)
Definition: imp_encoder.h:490
int IMP_Encoder_GetMaxStreamCnt(int encChn, int *nrMaxStream)
Get bitstream buffer number.
uint32_t minQp
min Frame level Qp parameter,range:[0-maxQp]
Definition: imp_encoder.h:87
Define the h264 and h265 channel gopsize parameter.
Definition: imp_encoder.h:429
int IMP_Encoder_InsertUserData(int encChn, void *userData, uint32_t userDataLen)
insert userdata
Define the h264 and h265 bitstream nal type.
Definition: imp_encoder.h:333
Coded slice segment of a clean random access picture, with leading picture.
Definition: imp_encoder.h:317
int IMP_Encoder_GetChnColor2Grey(int encChn, IMPEncoderColor2GreyCfg *pstColor2Grey)
get color to grey attribute
Define the denoise attribute of h264 and h265 channel, the enable member can't be changed after creat...
Definition: imp_encoder.h:184
Unspecified.
Definition: imp_encoder.h:285
int IMP_Encoder_CreateChn(int encChn, const IMPEncoderCHNAttr *attr)
create encoding channel
uint32_t maxBitRate
max bitrate in one second, unit:kbps
Definition: imp_encoder.h:103
open macroblock level ratecontrol
Definition: imp_encoder.h:493
uint32_t qp
Frame level Qp parameter.
Definition: imp_encoder.h:79
int dnPQp
P slice quantization parameter.
Definition: imp_encoder.h:188
int IMP_Encoder_Query(int encChn, IMPEncoderCHNStat *stat)
query encode channel state
Coded slice data partition A.
Definition: imp_encoder.h:287
uint32_t minQp
min encoder Quantization parameter,range:[0-maxQp]
Definition: imp_encoder.h:170
the idr frame in high skip frame reference mode
Definition: imp_encoder.h:226
int chroma_qp_index_offset
refer to H.264 prococol, system default value is 0; range:[-12, 12]
Definition: imp_encoder.h:479
uint32_t staticTime
bitstream statistic time, unit:second
Definition: imp_encoder.h:171
IMPEncoderQpgMode
Define macroblock ratecontrol mode struct.
Definition: imp_encoder.h:488
CBR method.
Definition: imp_encoder.h:59
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:124
int IMP_Encoder_GetChnDenoise(int encChn, IMPEncoderAttrDenoise *pdenoiseAttr)
Get encode channel denoise attribute.
Define high skip frame type structure of h264 and h265 channel.
Definition: imp_encoder.h:235
1 time (skip frame reference)
Definition: imp_encoder.h:213
uint32_t packCount
packet count related to one frame
Definition: imp_encoder.h:355
int IMP_Encoder_GetChnFrmRate(int encChn, IMPEncoderFrmRate *pstFps)
Get encode channel framerate controlled attribute.
Define the CBR ratecontrol attribute of h265 channel.
Definition: imp_encoder.h:138
int IMP_Encoder_GetChnHSkip(int encChn, IMPEncoderAttrHSkip *phSkipAttr)
Get encode channel high skip reference attribute.
int IMP_Encoder_SetH264TransCfg(int encChn, const IMPEncoderH264TransCfg *pstH264TransCfg)
Set H.264 encode channel chroma quantization attribute.
bool frameEnd
frame end mark
Definition: imp_encoder.h:346
Coded slice segment of a random access decodable leading picture, none reference. ...
Definition: imp_encoder.h:308
EncFrmUsedMode
Define the input frame usage mode of h264 and h265 channel.
Definition: imp_encoder.h:194
sequence parameter set
Definition: imp_encoder.h:319
invalid nal unit type
Definition: imp_encoder.h:327
IMPEncoderDataType dataType
h264 and h265 bitstream nal unit type
Definition: imp_encoder.h:347
IMPEncoderH264NaluType h264Type
H264 stream NAL unit type code.
Definition: imp_encoder.h:334
uint32_t picHeight
frame height, shouldn't less than 16
Definition: imp_encoder.h:387
IMPEncoderAttrFrmUsed attrFrmUsed
input frame usage mode attribute
Definition: imp_encoder.h:276
int IMP_Encoder_SetChnAttrRcMode(int encChn, const IMPEncoderAttrRcMode *pstRcModeCfg)
Set encoding channel rate controller mode attribute(s)
uint32_t staticTime
bitstream statistic time, unit:second
Definition: imp_encoder.h:118
uint32_t maxQp
max Frame level Qp parameter,range:[0-51]
Definition: imp_encoder.h:86
uint32_t minQp
min encoder Quantization parameter,range:[0-maxQp]
Definition: imp_encoder.h:101
uint32_t staticTime
bitstream statistic time, unit:second
Definition: imp_encoder.h:155
uint32_t h
the height of crop region
Definition: imp_encoder.h:368
int IMP_Encoder_GetChnAttr(int encChn, IMPEncoderCHNAttr *const attr)
get encode channel attribute
uint32_t frmQPStep
Inter frames QP variation.
Definition: imp_encoder.h:123
the short base(p) frame in high skip frame reference mode
Definition: imp_encoder.h:228
int bEnableScenecut
is enable scenecut? 0: not, 1: yes, only effect to H1M Skip type
Definition: imp_encoder.h:240
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:161
filler data
Definition: imp_encoder.h:324
Define frame bitstream packet structure.
Definition: imp_encoder.h:341
int IMP_Encoder_RegisterChn(int encGroup, int encChn)
register encode channel to Group
uint32_t staticTime
bitstream statistic time, unit:second
Definition: imp_encoder.h:141
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:145
int IMP_Encoder_PollingModuleStream(uint32_t *encChnBitmap, uint32_t timeoutMsec)
Polling the channel's bitstream of the whole video encode module.
suffix supplemental enhancement information
Definition: imp_encoder.h:326
bool registered
registered to group variable, 0:no,1:yes
Definition: imp_encoder.h:404
bool user_ql_en
0:use default quantization table; 1:use user's quantization table
Definition: imp_encoder.h:503
uint32_t maxQp
max encoder Quantization parameter,range:[0-51]
Definition: imp_encoder.h:100
IMPSkipType
Define the encode skip type of h264 and h265 channel.
Definition: imp_encoder.h:212
uint32_t gopQPStep
QP variation among GOPs.
Definition: imp_encoder.h:177
Picture parameter set.
Definition: imp_encoder.h:293
Define the h264 and h265 encoder channel ratecontroller mode attribute.
Definition: imp_encoder.h:255
uint32_t u32Index
ROI region index value,range:[0-7].
Definition: imp_encoder.h:437
bool enable
whether enale/disable input frame usage mode
Definition: imp_encoder.h:204
target frame rate first
Definition: imp_encoder.h:459
Define insert user data attribute of h264 and h265 channel.
Definition: imp_encoder.h:374
high skip frame reference mode:1M close skip frame
Definition: imp_encoder.h:219
int IMP_Encoder_SetMaxStreamCnt(int encChn, int nrMaxStream)
Set bitstream buffer number.
int IMP_Encoder_StartRecvPic(int encChn)
start encode channel to receive frames
close macroblock level ratecontrol
Definition: imp_encoder.h:489
4 times (skip frame reference)
Definition: imp_encoder.h:215
int IMP_Encoder_SetMbRC(int encChn, int bEnable)
set whether open mb ratecontrol or not
IMP Rectangle area information.
Definition: imp_common.h:163
int IMP_Encoder_SetSuperFrameCfg(int encChn, const IMPEncoderSuperFrmCfg *pstSuperFrmParam)
Set video coded supper frame configuration.
uint32_t qp
Frame level Qp parameter.
Definition: imp_encoder.h:132
int IMP_Encoder_SetFisheyeEnableStatus(int encChn, int enable)
set enabled status of ingenic fisheye correction algorithm
uint32_t maxUserDataCnt
User's Maximum number of insert data cache, range:0-2.
Definition: imp_encoder.h:375