Defines the VENC attributes.
typedef struct {
hi_payload_type type;
hi_u32 max_pic_width;
hi_u32 max_pic_height;
hi_u32 buf_size;
hi_u32 profile;
hi_bool is_by_frame;
hi_u32 pic_width;
hi_u32 pic_height;
union {
hi_venc_h264_attr h264_attr;
hi_venc_h265_attr h265_attr;
hi_venc_jpeg_attr jpeg_attr;
hi_venc_prores_attr prores_attr;
};
}hi_venc_attr;
Member |
Description |
|---|---|
type |
Encode protocol. |
max_pic_width |
Maximum width of the source image. Must be an integral multiple of 2. This is a static attribute. Value range: [MIN_WIDTH, MAX_WIDTH], in pixels. |
max_pic_height |
Maximum height of the source image. Must be an integral multiple of 2. This is a static attribute and does not apply to JPEG encoding. Value range: [MIN_HEIGHT, MAX_HEIGHT], in pixels. |
buf_size |
Size of the stream buffer, in bytes. This is a static attribute.
|
profile |
Encoding profile. A larger value indicates better encoding quality. This is a static attribute.
|
is_by_frame |
Stream fetching mode select. This is a static attribute.
|
pic_width |
Width of the source image. Must be an integral multiple of MIN_ALIGN. Value range: [MIN_WIDTH, MAX_WIDTH], in pixels. |
pic_height |
Height of the source image. Must be an integral multiple of MIN_ALIGN. Not applicable to JPEG encoding. Value range: [MIN_HEIGHT, MAX_HEIGHT], in pixels. |
h264_attr/h265_attr/jpeg_attr/prores_attr |
Attributes of the encode protocol. Reserved. |