Defines a source video frame.
typedef struct {
hi_u32 width;
hi_u32 height;
hi_u32 width_stride;
hi_u32 height_stride;
hi_pixel_format pixel_format;
hi_u64 vir_addr;
hi_u32 buffer_size;
hi_s16 offset_top;
hi_s16 offset_bottom;
hi_s16 offset_left;
hi_s16 offset_right;
}hi_vdec_pic_info;
Member |
Description |
width |
Image width, used for video decoding. The width of the resized decoded image is in the range of [10, 4096]. |
height |
Image height, used for video decoding. The height of the resized decoded image is in the range of [6, 4096]. |
width_stride |
Image width stride. If the video decoder outputs YUV420SP or YVU420SP format images, round the image width up to the nearest multiple of 16. If the video decoder outputs RGB888 or BGR888 format images, round the image width up to the nearest multiple of 16 and then multiply the result by 3. Value range: [32, 16384] |
height_stride |
Image height stride. If the video decoder outputs YUV420SP or YVU420SP format images, round the image height up to the nearest multiple of 2. If the video decoder outputs RGB888 or BGR888 format images, retain the image height. Value range: [6, 16384] |
pixel_format |
Pixel format, used for image or video decoding. For the supported VDEC output formats, see VDEC Functions and Restrictions. For the supported JPEGD output formats, see JPEGD Functions and Restrictions. |
vir_addr |
Start address of the output data in the memory. In the interlaced scenario where two fields are transmitted every frame, one of every two transmitted fields has no decoding output. This is expected. The decoding output of an interlaced stream is stored in the output buffers of the odd fields. In this case, you need to free the buffers in time. |
buffer_size |
Size of the decoding output buffer. |
offset_top |
Image offset on the top, which needs to be configured when a JPEG image is encoded based on the specified region. Not supported. |
offset_bottom |
Image offset on the bottom, which needs to be configured when a JPEG image is encoded based on the specified region. Not supported. |
offset_left |
Image offset on the left, which needs to be configured when a JPEG image is encoded based on the specified region. Not supported. |
offset_right |
Image offset on the right, which needs to be configured when a JPEG image is encoded based on the specified region. Not supported. |
The 10-bit data becomes 8-bit data after VPC image processing.