---
title: DvppJpegDecode
description: 用于实现DVPP对JPEG格式的解码，调用该接口前必须调用Init接口来实现该功能的初始化。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/msadg/mxvisionug_0299.html"
---

# DvppJpegDecode

#### 函数功能

用于实现DVPP对JPEG格式的解码，调用该接口前必须调用Init接口来实现该功能的初始化。


#### 函数原型

```
APP_ERROR DvppJpegDecode(
DvppDataInfo& inputDataInfo,
DvppDataInfo& outputDataInfo
);
APP_ERROR DvppJpegDecode(
const std::string& inputPicPath,
DvppDataInfo& outputDataInfo
);
```


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| inputDataInfo | 输入 | 被解码的数据。 |
| inputPicPath | 输入 | 被解码的图片路径。 |
| outputDataInfo | 输出 | 解码后的输出数据。 “outputDataInfo.dataSize”取值范围为[1, 4294967296]。 |


#### 返回参数说明

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