---
title: hi_venc_chn_status
description: "定义编码通道的状态结构体。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1481.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1481.html
indexId: 19be2b823de5e1536887dfbfebe8c5d2586d7dfebacb7ad07eca421b15547092105
---
# hi_venc_chn_status

#### 说明

定义编码通道的状态结构体。


#### 定义

```
typedef struct {
hi_u32
left_pics;
hi_u32
left_stream_bytes;
hi_u32
left_stream_frames;
hi_u32
cur_packs;
hi_u32
left_recv_pics;
hi_u32
left_enc_pics;
hi_bool
is_jpeg_snap_end;
hi_u64
release_pic_pts;
hi_venc_stream_info
stream_info;
} hi_venc_chn_status;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| left\_pics | 待编码的图像数，暂不支持。 |
| left\_stream\_bytes | 码流buffer中用户暂未取走的byte数目，暂不支持。 |
| left\_stream\_frames | 码流buffer中用户暂未取走的帧数目，暂不支持。 |
| cur\_packs | 当前帧的码流包个数。 |
| left\_recv\_pics | 剩余待接收的帧数，在用户调用接口 hi\_mpi\_venc\_start\_chn设置接收帧数后有效，暂不支持。 |
| left\_enc\_pics | 剩余待编码的帧数，在用户调用接口 hi\_mpi\_venc\_start\_chn设置接收帧数后有效，暂不支持。 |
| is\_jpeg\_snap\_end | Jpege抓拍模式下指示抓拍过程是否结束，暂不支持。 |
| release\_pic\_pts | 预留参数，暂不支持。 |
| stream\_info | 码流信息。 |


#### 注意事项

如果venc 接收的抓拍帧有丢帧出现，is_jpeg_snap_end会存在不能正确标记抓拍结束的情况。
