4. Smart Coding Settings

AIof , in Implementation of and of 。 Through inof , and Image (ISP) Statusand 。 Data, can etc. ,from in of , ,Implementation Resourcesof 。

4.1. Smart Coding Interface Definition

SVC(Smart Video Code)

4.1.1. CVI_VENC_EnableSvc

【Description】

H.264/H.265 。

【 】

CVI_S32 CVI_VENC_EnableSvc(VENC_CHN VeChn, CVI_BOOL enable)

【 】

Parameter Name

Description

Input/Output

VeChn

VENC Channel number

Input

enable

Input

【ReturnValue】

ReturnValue

Description

CVI_SUCCESS

Success

0

Failure; the value is an error code

【need 】

  • File:cvi_comm_venc.h、cvi_venc.h

  • File:libvenc.a

4.1.2. CVI_VENC_SetSvcParam

【Description】

SettingsH.264/H.265 Attribute。

【 】

CVI_S32 CVI_VENC_SetSvcParam(VENC_CHN VeChn, const VENC_SVC_PARAM_S *pstSvcParam)

【 】

Parameter Name

Description

Input/Output

VeChn

VENC Channel number

Input

pstSvcParam

Input

【ReturnValue】

ReturnValue

Description

CVI_SUCCESS

Success

0

Failure; the value is an error code

【need 】

  • File:cvi_comm_venc.h、cvi_venc.h

  • File:libvenc.a

【Note】

  • fg_protect_en: before Function。

    :1 Disable:0

  • fg_dealt_qp: before qpand qpof Value。

    Value,Value , Value:4, Value [0-8]

  • complex_scene_detect_en: 。

    :1 Disable:0

  • complex_scene_low_th: is of Value。

    [0, 512],DefaultValue256, Figure , Valuewill is , Value:150

  • complex_scene_height_th: is of Value。

    [0, 512],DefaultValue318, Figure , Valuewill is , Value:318

  • middle_min_percent: of 。

    [0,100],DefaultValue:50

  • complex_min_percent: 。

    [0,100],DefaultValue:80

  • smart_ai_en: ai map。

    :1 Disable:0, afterNeed toConfigurationaiGenerateroimapUse

【Example】

4.1.3. CVI_VENC_GetSvcParam

【Description】

GetH.264/H.265Channelof Attribute。

【 】

CVI_S32 CVI_VENC_GetSvcParam(VENC_CHN VeChn, VENC_SVC_PARAM_S *pstSvcParam)

【 】

Parameter Name

Description

Input/Output

VeChn

VENC Channel

Input

pstSvcParam

Input

【ReturnValue】

ReturnValue

Description

CVI_SUCCESS

Success

0

Failure; the value is an error code

【need 】

  • File:cvi_comm_venc.h、cvi_venc.h

  • File:libvenc.a

【Note】

  • User mustin Channel after, Channel beforeSettings Interface

  • Userin CVI_VENC_SetSvcParamInterface before, Interface,Get beforeChannelof Configurationafter Settings

【Example】