Video Decoder (VDEC) decodes videos. After internal VPC processing, VDEC outputs images in specified formats. For details, see Restrictions on Stream/Image Formats, Width and Height Alignment, and Buffers.
In terms of the VDEC function, the input/output buffer lifetime is managed by the user.
Call acldvppMalloc or acldvppFree to allocate or free the buffer. The buffer size is the size of space occupied by actual input streams.
Call acldvppMalloc or acldvppFree to allocate or free the device buffer. For details about the buffer size, see the formula in the following table.
For details about the definition of the output image format, see acldvppPixelFormat. For details about the concepts such as width stride and height stride, see Terminology.
Input Format |
Output Format |
Output Width and Height |
Output Width Stride, Height Stride, and Buffer Size |
|---|---|---|---|
|
YUV420SP NV12 8-bit |
Width: Must be a multiple of 2. Height: Must be a multiple of 2. |
Width stride: Round up the width to the nearest multiple of 16. If the configured width of the output image is less than 16, the minimum width stride must be at least 32. Height stride: Round up the height to the nearest multiple of 2. Buffer size (in bytes) ≥ Width stride x Height stride x 3/2 |
YUV420SP NV21 8-bit |
Input Format |
Output Format |
Output Width and Height |
Output Width Stride, Height Stride, and Buffer Size |
|---|---|---|---|
|
YUV420SP NV12 8-bit |
Width: Must be a multiple of 2. Height: Must be a multiple of 2. |
Width stride: Round up the width to the nearest multiple of 16. If the configured width of the output image is less than 16, the minimum width stride must be at least 32. Height stride: Round up the height to the nearest multiple of 2. Buffer size (in bytes) ≥ Width stride x Height stride x 3/2 |
YUV420SP NV21 8-bit |
|||
RGB888 |
No alignment requirement. |
Width stride: Round up the width to the nearest multiple of 16 and multiply the result by 3. Height stride: No alignment requirement. Buffer size (in bytes) ≥ Width stride x Height stride |
|
BGR888 |