---
title: GetPictureDec
description: "获取输入图像的宽、高和颜色通道个数。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/msadg/mxvisionug_0314.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/msadg/mxvisionug_0314.html
indexId: d4c3bc42cb7ca1e38d339ad579c7fd6b5769f6969e261b63a93953398920dbd3102
---
# GetPictureDec

#### 函数功能

获取输入图像的宽、高和颜色通道个数。


#### 函数原型

```
APP_ERROR GetPictureDec(DvppImageInfo& imageInfo, DvppImageOutput& imageOutput);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| imageInfo | 输入 | 输入图片的格式、存放JPEG图片数据的内存的地址和内存大小（单位为Byte）。 JPEG图片数据的内存地址要求为Host侧地址，不能为DVPP侧内存。 |
| imageOutput | 输出 | 图像的宽、高以及颜色通道个数。 |


#### 返回参数说明

| 数据结构 | 说明 |
| --- | --- |
| APP\_ERROR | 程序执行返回的错误码，请参考APP\_ERROR说明。 |
