aclvencGetChannelDesc series

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function

Obtains the description of a video encoding channel.

Prototype

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
uint32_t aclvencGetChannelDescChannelId(const aclvencChannelDesc *channelDesc)
uint64_t aclvencGetChannelDescThreadId(const aclvencChannelDesc *channelDesc)
aclvencCallback aclvencGetChannelDescCallback(const aclvencChannelDesc *channelDesc)
acldvppStreamFormat aclvencGetChannelDescEnType(const aclvencChannelDesc *channelDesc)
acldvppPixelFormat aclvencGetChannelDescPicFormat(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescPicWidth(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescPicHeight(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescKeyFrameInterval(const aclvencChannelDesc *channelDesc)
void *aclvencGetChannelDescBufAddr(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescBufSize(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescRcMode(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescSrcRate(const aclvencChannelDesc *channelDesc)
uint32_t aclvencGetChannelDescMaxBitRate(const aclvencChannelDesc *channelDesc)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the description of a video encoding channel.

Call the aclvencCreateChannelDesc API to create data of the aclvencChannelDesc type and call the aclvencSetChannelDesc series APIs to set the attribute value of the video encoding channel description in advance.

Returns

Parameter

Description

channelId

Channel ID. Defaults to 0.

threadId

Callback thread ID.

callback

Encoding callback function. For details about the type definition, see aclvencCallback.

enType

Video coding protocol. For details about the type definition, see acldvppStreamFormat.

picFormat

Input format For details about the type definition, see acldvppPixelFormat.

picWidth

Image width.

picHeight

Image height.

keyFrameInterval

Key frame interval. Must not be 0.

bufAddr

Buffer address of the encode output.

bufSize

Buffer allocation in bytes of the encode output.

rcMode

Bit rate control mode.

  • 1: variable bit rate (VBR) mode
  • 2: constant bit rate (CBR) mode

srcRate

Frame rate of the input stream (FPS).

maxBitRate

Output bit rate (kbps)