ISVP-SDK
3.12.0
Ingenic Smart Video Platform SDK
|
video encoding (H264, JPEG)modules,including video encoding channel management and it's parameter setting and so on More...
Data Structures | |
struct | IMPEncoderFrmRate |
Define video encode channel framerate structure frmRateNum and frmRateDen is LCM must be 1 and GCD must be not greater than 64 The least common multiple of the greatest common divisor divisibility between frmRateNum and frmRateDen can not be more than 64, it is better to get the greatest common divisor number before the settings. More... | |
struct | IMPEncoderAttrH264FixQP |
Define the FixQp ratecontrol attribute of h264 channel. More... | |
struct | IMPEncoderAttrH264CBR |
Define the CBR ratecontrol attribute of h264 channel. More... | |
struct | IMPEncoderAttrH264VBR |
Define the VBR ratecontrol attribute of h264 channel. More... | |
struct | IMPEncoderAttrH264Smart |
Define the Smart ratecontrol attribute of h264 channel. More... | |
struct | IMPEncoderAttrDemask |
Define the demask attribute of h264 channel, it is suggested not to use it. More... | |
struct | IMPEncoderAttrDenoise |
Define the denoise attribute of h264 channel. More... | |
struct | IMPEncoderAttrFrmUsed |
Define the input frame usage mode attribute of h264 channel. More... | |
struct | IMPEncoderAttrHSkip |
Define high skip frame type structure of h264 channel. More... | |
struct | IMPEncoderAttrInitHSkip |
Define high skip frame type init structure of h264 channel. More... | |
struct | IMPEncoderAttrRcMode |
Define the channel ratecontroller mode attribute. More... | |
struct | IMPEncoderRcAttr |
Define the channel ratecontroller attribute. More... | |
union | IMPEncoderDataType |
Define the H264E bitstream type. More... | |
struct | IMPEncoderPack |
Define frame bitstream packet structure. More... | |
struct | IMPEncoderStream |
Define the bitstream structure of one frame. More... | |
struct | IMPEncoderCropCfg |
Define the encoder crop attribute(crop first, scaler second) More... | |
struct | IMPEncoderUserDataCfg |
Define insert user data attribute of h264 channel. More... | |
struct | IMPEncoderAttr |
Define encoder attribute structure. More... | |
struct | IMPEncoderCHNAttr |
Define encoder channel attribute structure. More... | |
struct | IMPEncoderCHNStat |
Define encode channel state attribute structure. More... | |
struct | IMPEncoderColor2GreyCfg |
Define color to grey parameter. More... | |
struct | IMPEncoderEnIDRCfg |
Define the Enalbe IDR parameter. More... | |
struct | IMPEncoderGOPSizeCfg |
Define the gopsize parameter. More... | |
struct | IMPEncoderROICfg |
Define ROI parameters. More... | |
struct | IMPEncoderSuperFrmCfg |
Paramete of super frame process strategy. More... | |
struct | IMPEncoderH264TransCfg |
Define H.264 encoder channel transform quantization struct. More... | |
struct | IMPEncoderJpegeQl |
Define JPEG encoder channel quantization table set param struct. More... | |
Functions | |
int | IMP_Encoder_CreateGroup (int encGroup) |
Create encode Group. More... | |
int | IMP_Encoder_DestroyGroup (int encGroup) |
destroy the encoding Group More... | |
int | IMP_Encoder_CreateChn (int encChn, const IMPEncoderCHNAttr *attr) |
create encoding channel More... | |
int | IMP_Encoder_DestroyChn (int encChn) |
destroy encode Channel More... | |
int | IMP_Encoder_GetChnAttr (int encChn, IMPEncoderCHNAttr *const attr) |
get encode channel attribute More... | |
int | IMP_Encoder_RegisterChn (int encGroup, int encChn) |
register encode channel to Group More... | |
int | IMP_Encoder_UnRegisterChn (int encChn) |
unregister encode channel from group More... | |
int | IMP_Encoder_StartRecvPic (int encChn) |
start encode channel to receive frames More... | |
int | IMP_Encoder_StopRecvPic (int encChn) |
stop encode channel to receive frames More... | |
int | IMP_Encoder_Query (int encChn, IMPEncoderCHNStat *stat) |
query encode channel state More... | |
int | IMP_Encoder_GetStream (int encChn, IMPEncoderStream *stream, bool blockFlag) |
Get encode bitstream. More... | |
int | IMP_Encoder_ReleaseStream (int encChn, IMPEncoderStream *stream) |
release the bitstream buffer More... | |
int | IMP_Encoder_PollingStream (int encChn, uint32_t timeoutMsec) |
Polling bitstream buffer. More... | |
int | IMP_Encoder_SetMaxStreamCnt (int encChn, int nrMaxStream) |
Set bitstream buffer number. More... | |
int | IMP_Encoder_GetMaxStreamCnt (int encChn, int *nrMaxStream) |
Get bitstream buffer number. More... | |
int | IMP_Encoder_RequestIDR (int encChn) |
Requst IDR frame. More... | |
int | IMP_Encoder_FlushStream (int encChn) |
flush old bitstream of encoder and start with idr frame to encode More... | |
int | IMP_Encoder_SetChnColor2Grey (int encChn, const IMPEncoderColor2GreyCfg *pstColor2Grey) |
set color to grey attribute More... | |
int | IMP_Encoder_GetChnColor2Grey (int encChn, IMPEncoderColor2GreyCfg *pstColor2Grey) |
get color to grey attribute More... | |
int | IMP_Encoder_SetChnAttrRcMode (int encChn, const IMPEncoderAttrRcMode *pstRcModeCfg) |
Set encoding channel rate controller mode attribute(s) More... | |
int | IMP_Encoder_GetChnAttrRcMode (int encChn, IMPEncoderAttrRcMode *pstRcModeCfg) |
Get encode channel rate controller mode attribute(s) More... | |
int | IMP_Encoder_SetChnFrmRate (int encChn, const IMPEncoderFrmRate *pstFps) |
Set encode channel framerate controlled attribute. More... | |
int | IMP_Encoder_GetChnFrmRate (int encChn, IMPEncoderFrmRate *pstFps) |
Get encode channel framerate controlled attribute. More... | |
int | IMP_Encoder_SetChnROI (int encChn, const IMPEncoderROICfg *pstVencRoiCfg) |
Set encoder channel ROI attribute. More... | |
int | IMP_Encoder_GetChnROI (int encChn, IMPEncoderROICfg *pstVencRoiCfg) |
Get encoder channel roi attribute. More... | |
int | IMP_Encoder_GetGOPSize (int encChn, IMPEncoderGOPSizeCfg *pstGOPSizeCfg) |
Get encoder channel GOP attribute. More... | |
int | IMP_Encoder_SetGOPSize (int encChn, const IMPEncoderGOPSizeCfg *pstGOPSizeCfg) |
Set encoder channel gop attribute. More... | |
int | IMP_Encoder_SetChnDemask (int encChn, const IMPEncoderAttrDemask *pdemaskAttr) |
Set encoder channel demask attribute. More... | |
int | IMP_Encoder_GetChnDemask (int encChn, IMPEncoderAttrDemask *pdemaskAttr) |
Get encoder channel demask attribute. More... | |
int | IMP_Encoder_SetChnFrmUsedMode (int encChn, const IMPEncoderAttrFrmUsed *pfrmUsedAttr) |
Set encoder channel input frame usage mode attribute. More... | |
int | IMP_Encoder_GetChnFrmUsedMode (int encChn, IMPEncoderAttrFrmUsed *pfrmUsedAttr) |
Get encoder channel input frame usage mode attribute. More... | |
int | IMP_Encoder_SetChnDenoise (int encChn, const IMPEncoderAttrDenoise *pdenoiseAttr) |
Set encode channel denoise attribute. More... | |
int | IMP_Encoder_GetChnDenoise (int encChn, IMPEncoderAttrDenoise *pdenoiseAttr) |
Get encode channel denoise attribute. More... | |
int | IMP_Encoder_SetChnHSkip (int encChn, const IMPEncoderAttrHSkip *phSkipAttr) |
Set encode channel high skip reference attribute. More... | |
int | IMP_Encoder_GetChnHSkip (int encChn, IMPEncoderAttrHSkip *phSkipAttr) |
Get encode channel high skip reference attribute. More... | |
int | IMP_Encoder_SetChnHSkipBlackEnhance (int encChn, const int bBlackEnhance) |
Set encode channel'bBlackEnhance in high skip reference attribute. More... | |
int | IMP_Encoder_InsertUserData (int encChn, void *userData, uint32_t userDataLen) |
insert userdata More... | |
int | IMP_Encoder_SetFisheyeEnableStatus (int encChn, int enable) |
set enabled status of ingenic fisheye correction algorithm More... | |
int | IMP_Encoder_GetFisheyeEnableStatus (int encChn, int *enable) |
get enabled status of ingenic fisheye correction algorithm More... | |
int | IMP_Encoder_SetChangeRef (int encChn, int bEnable) |
set whether allow change base skip frame's reference or not More... | |
int | IMP_Encoder_GetChangeRef (int encChn, int *bEnable) |
get whether allow change base skip frame's reference or not More... | |
int | IMP_Encoder_SetMbRC (int encChn, int bEnable) |
set whether open mb ratecontrol or not More... | |
int | IMP_Encoder_GetMbRC (int encChn, int *bEnable) |
get the status whether open mb ratecontrol or not More... | |
int | IMP_Encoder_SetSuperFrameCfg (int encChn, const IMPEncoderSuperFrmCfg *pstSuperFrmParam) |
Set video coded supper frame configuration. More... | |
int | IMP_Encoder_GetSuperFrameCfg (int encChn, IMPEncoderSuperFrmCfg *pstSuperFrmParam) |
Get video coded supper frame configuration. More... | |
int | IMP_Encoder_SetH264TransCfg (int encChn, const IMPEncoderH264TransCfg *pstH264TransCfg) |
Set H.264 encode channel transform and quantization attribute. More... | |
int | IMP_Encoder_GetH264TransCfg (int encChn, IMPEncoderH264TransCfg *pstH264TransCfg) |
Get H.264 encode channel transform and quantization attribute. More... | |
int | IMP_Encoder_SetJpegeQl (int encChn, const IMPEncoderJpegeQl *pstJpegeQl) |
Set JPEG encode channel quantization table set param. More... | |
int | IMP_Encoder_GetJpegeQl (int encChn, IMPEncoderJpegeQl *pstJpegeQl) |
Get JPEG encode channel quantization table set param. More... | |
video encoding (H264, JPEG)modules,including video encoding channel management and it's parameter setting and so on
Encoder module internal structure as following:
In this mentioned picture, The coding module consists of a number of Group (the T15 supports two Group), each Group consists of encoding Channel. each encoding Channel comes with an output stream buffer, which is composed of a number of buffer.
One coding channel can only deal with one coding protocol entity, each group can add a H264 encoding Channel with a JPEG encoding channel;
CBR, Constant Bit Rate, the code rate is constant in the rate statistical time. Such as H264 encode, users can set maxQp,minQp,bitrate and so on. maxQp, minQp is used to control the quality range. bitrate is used to control the constant bitrate. (Average coding bit rate for a certain time) when the coding rate is greater than the constant bit rate, the image maxQp will gradually adjust to the QP, when the coding rate is much smaller than the constant bit rate, the image QP will gradually adjust to the minQp. when the image QP reaches maxQP, Qp is clamped to the maximum value, bitrate clamping effect fails, the coding rate might exceed bitrate. when the image QP reaches minQp, QP is clamped to the minimum value, and when the coding rate has reaches the maximum value, the image quality will get better.
Fix Qp fixes the value of Qp. In the rate statistics time, all the Qp value of the coded image is the same, and the image Qp value is adopted by the user.
enum EncFrmUsedMode |
H264 stream NAL unit type codes.
enum IMPEncoderRcMode |
enum IMPEncoderRcPriority |
enum IMPRefType |
enum IMPSkipType |
int IMP_Encoder_CreateChn | ( | int | encChn, |
const IMPEncoderCHNAttr * | attr | ||
) |
create encoding channel
[in] | encChn | encoder channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | attr | encode channel attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_CreateGroup | ( | int | encGroup | ) |
Create encode Group.
[in] | encGroup | Group number,range:[0, NR_MAX_ENC_GROUPS - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_DestroyChn | ( | int | encChn | ) |
destroy encode Channel
[in] | encChn | encoder channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_DestroyGroup | ( | int | encGroup | ) |
destroy the encoding Group
[in] | encGroup | Group number,range:[0, NR_MAX_ENC_GROUPS - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_FlushStream | ( | int | encChn | ) |
flush old bitstream of encoder and start with idr frame to encode
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChangeRef | ( | int | encChn, |
int * | bEnable | ||
) |
get whether allow change base skip frame's reference or not
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | enable | return the status whether allow change base skip frame's reference or not, 0:not allowed, 1: allowed |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnAttr | ( | int | encChn, |
IMPEncoderCHNAttr *const | attr | ||
) |
get encode channel attribute
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | attr | encode channel attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnAttrRcMode | ( | int | encChn, |
IMPEncoderAttrRcMode * | pstRcModeCfg | ||
) |
Get encode channel rate controller mode attribute(s)
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstRcCfg | encode channel rate control mode attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnColor2Grey | ( | int | encChn, |
IMPEncoderColor2GreyCfg * | pstColor2Grey | ||
) |
get color to grey attribute
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstColor2Grey | color to grey encode parameter |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnDemask | ( | int | encChn, |
IMPEncoderAttrDemask * | pdemaskAttr | ||
) |
Get encoder channel demask attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pdemaskAttr | demask attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnDenoise | ( | int | encChn, |
IMPEncoderAttrDenoise * | pdenoiseAttr | ||
) |
Get encode channel denoise attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pdenoiseAttr | denoise attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnFrmRate | ( | int | encChn, |
IMPEncoderFrmRate * | pstFps | ||
) |
Get encode channel framerate controlled attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstFpsCfg | framerate controlled attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnFrmUsedMode | ( | int | encChn, |
IMPEncoderAttrFrmUsed * | pfrmUsedAttr | ||
) |
Get encoder channel input frame usage mode attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pfrmUsedAttr | input frame usage mode attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnHSkip | ( | int | encChn, |
IMPEncoderAttrHSkip * | phSkipAttr | ||
) |
Get encode channel high skip reference attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | phSkipAttr | high skip reference attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetChnROI | ( | int | encChn, |
IMPEncoderROICfg * | pstVencRoiCfg | ||
) |
Get encoder channel roi attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstFpsCfg | ROI attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetFisheyeEnableStatus | ( | int | encChn, |
int * | enable | ||
) |
get enabled status of ingenic fisheye correction algorithm
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | enable | 0: disabled, 1: enabled |
0 | success |
not | 0 failure |
int IMP_Encoder_GetGOPSize | ( | int | encChn, |
IMPEncoderGOPSizeCfg * | pstGOPSizeCfg | ||
) |
Get encoder channel GOP attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstGOPSizeCfg | GOPSize attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetH264TransCfg | ( | int | encChn, |
IMPEncoderH264TransCfg * | pstH264TransCfg | ||
) |
Get H.264 encode channel transform and quantization attribute.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstH264TransCfg | returned H.264 encode channel transform and quantization attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_GetJpegeQl | ( | int | encChn, |
IMPEncoderJpegeQl * | pstJpegeQl | ||
) |
Get JPEG encode channel quantization table set param.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstJpegeQl | returned JPEG encode channel quantization table set param |
0 | success |
not | 0 failure |
int IMP_Encoder_GetMaxStreamCnt | ( | int | encChn, |
int * | nrMaxStream | ||
) |
Get bitstream buffer number.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | nrMaxStream | bitstream buffer num pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_GetMbRC | ( | int | encChn, |
int * | bEnable | ||
) |
get the status whether open mb ratecontrol or not
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | bEnable | return the status whether open mb ratecontrol or not, 0:close, 1:open |
0 | success |
not | 0 failure |
int IMP_Encoder_GetStream | ( | int | encChn, |
IMPEncoderStream * | stream, | ||
bool | blockFlag | ||
) |
Get encode bitstream.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | stream | the bitstream pointer |
[in] | blockFlag | use block mode variable,0:no,1:yes |
0 | success |
not | 0 failure |
It is suggested that the users access the code stream interface and the release of the code stream interface in pairs , and then release the stream as soon as possible, in order to prevent the user state to get the stream, when the release is not timely it might lead to the case where the stream buffer is full, and then stop coding.
examples:
int IMP_Encoder_GetSuperFrameCfg | ( | int | encChn, |
IMPEncoderSuperFrmCfg * | pstSuperFrmParam | ||
) |
Get video coded supper frame configuration.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pstSuperFrmParam | return video coded supper frame configuration |
0 | success |
not | 0 failure |
int IMP_Encoder_InsertUserData | ( | int | encChn, |
void * | userData, | ||
uint32_t | userDataLen | ||
) |
insert userdata
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | userData | userdata virtual address pointer |
[in] | userDataLen | user data length, range:(0, 1024], unit:byte |
0 | success |
not | 0 failure |
int IMP_Encoder_PollingStream | ( | int | encChn, |
uint32_t | timeoutMsec | ||
) |
Polling bitstream buffer.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | timeoutMsec | polling timeout,unit:ms |
0 | success |
not | 0 failure |
int IMP_Encoder_Query | ( | int | encChn, |
IMPEncoderCHNStat * | stat | ||
) |
query encode channel state
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | stat | encode channel stat pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_RegisterChn | ( | int | encGroup, |
int | encChn | ||
) |
register encode channel to Group
[in] | encGroup | encode group num, range:[0, NR_MAX_ENC_GROUPS - 1] |
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_ReleaseStream | ( | int | encChn, |
IMPEncoderStream * | stream | ||
) |
release the bitstream buffer
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | stream | the bitstream pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_RequestIDR | ( | int | encChn | ) |
Requst IDR frame.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChangeRef | ( | int | encChn, |
int | bEnable | ||
) |
set whether allow change base skip frame's reference or not
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | enable | 0:not allowed to change, 1: allowed to change(default) |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnAttrRcMode | ( | int | encChn, |
const IMPEncoderAttrRcMode * | pstRcModeCfg | ||
) |
Set encoding channel rate controller mode attribute(s)
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstRcCfg | encode channel ratecontrol mode attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnColor2Grey | ( | int | encChn, |
const IMPEncoderColor2GreyCfg * | pstColor2Grey | ||
) |
set color to grey attribute
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstColor2Grey | color to grey encode parameter |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnDemask | ( | int | encChn, |
const IMPEncoderAttrDemask * | pdemaskAttr | ||
) |
Set encoder channel demask attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pdemaskAttr | demask attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnDenoise | ( | int | encChn, |
const IMPEncoderAttrDenoise * | pdenoiseAttr | ||
) |
Set encode channel denoise attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pdenoiseAttr | denoise attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnFrmRate | ( | int | encChn, |
const IMPEncoderFrmRate * | pstFps | ||
) |
Set encode channel framerate controlled attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstFpsCfg | framerate controlled attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnFrmUsedMode | ( | int | encChn, |
const IMPEncoderAttrFrmUsed * | pfrmUsedAttr | ||
) |
Set encoder channel input frame usage mode attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[out] | pfrmUsedAttr | input frame usage mode attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnHSkip | ( | int | encChn, |
const IMPEncoderAttrHSkip * | phSkipAttr | ||
) |
Set encode channel high skip reference attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | phSkipAttr | high skip reference attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnHSkipBlackEnhance | ( | int | encChn, |
const int | bBlackEnhance | ||
) |
Set encode channel'bBlackEnhance in high skip reference attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | bBlackEnhance | bool value, mean to bBlackEnhance in IMPEncoderAttrHSkip attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_SetChnROI | ( | int | encChn, |
const IMPEncoderROICfg * | pstVencRoiCfg | ||
) |
Set encoder channel ROI attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstFpsCfg | ROI attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetFisheyeEnableStatus | ( | int | encChn, |
int | enable | ||
) |
set enabled status of ingenic fisheye correction algorithm
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | enable | 0: disable(default), 1: enable |
0 | success |
not | 0 failure |
int IMP_Encoder_SetGOPSize | ( | int | encChn, |
const IMPEncoderGOPSizeCfg * | pstGOPSizeCfg | ||
) |
Set encoder channel gop attribute.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstGOPSizeCfg | GOPSize attribute pointer |
0 | success |
not | 0 failure |
int IMP_Encoder_SetH264TransCfg | ( | int | encChn, |
const IMPEncoderH264TransCfg * | pstH264TransCfg | ||
) |
Set H.264 encode channel transform and quantization attribute.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstH264TransCfg | H.264 encode channel transform and quantization attribute |
0 | success |
not | 0 failure |
int IMP_Encoder_SetJpegeQl | ( | int | encChn, |
const IMPEncoderJpegeQl * | pstJpegeQl | ||
) |
Set JPEG encode channel quantization table set param.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstJpegeQl | JPEG encode channel quantization table set param,Fill in the first 128 bytes of the quantized table and fill in the other 0 |
0 | success |
not | 0 failure |
int IMP_Encoder_SetMaxStreamCnt | ( | int | encChn, |
int | nrMaxStream | ||
) |
Set bitstream buffer number.
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | nrMaxStream | bitstream buffer num,range:[1, NR_MAX_ENC_CHN_STREAM] |
0 | success |
not | 0 failure |
int IMP_Encoder_SetMbRC | ( | int | encChn, |
int | bEnable | ||
) |
set whether open mb ratecontrol or not
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
[in] | bEnable | 0:close(default), 1:open |
0 | success |
not | 0 failure |
int IMP_Encoder_SetSuperFrameCfg | ( | int | encChn, |
const IMPEncoderSuperFrmCfg * | pstSuperFrmParam | ||
) |
Set video coded supper frame configuration.
[in] | encChn | encode channel num, range:[0, NR_MAX_ENC_CHN - 1] |
[in] | pstSuperFrmParam | video coded supper frame configuration |
0 | success |
not | 0 failure |
int IMP_Encoder_StartRecvPic | ( | int | encChn | ) |
start encode channel to receive frames
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_StopRecvPic | ( | int | encChn | ) |
stop encode channel to receive frames
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |
int IMP_Encoder_UnRegisterChn | ( | int | encChn | ) |
unregister encode channel from group
[in] | encGroup | encode group num, range:[0, NR_MAX_ENC_GROUPS - 1] |
[in] | encChn | encode channel num,range:[0, NR_MAX_ENC_CHN - 1] |
0 | success |
not | 0 failure |