AMD ROCm Decode API#
AMD The rocDecode is a toolkit to decode videos and images using a hardware-accelerated video decoder on AMD’s GPUs. More...
Data Structures | |
struct | RocdecDecodeCaps |
struct | RocDecoderCreateInfo |
struct | RocdecDecodeStatus |
struct | RocdecReconfigureDecoderInfo |
struct | RocdecAvcPicture |
struct | RocdecHevcPicture |
struct | RocdecJPEGPicParams |
struct | RocdecMpeg2QMatrix |
struct | RocdecMpeg2PicParams |
struct | RocdecVc1PicParams |
struct | RocdecAvcPicParams |
struct | RocdecAvcSliceParams |
struct | RocdecAvcIQMatrix |
struct | RocdecHevcPicParams |
struct | RocdecHevcSliceParams |
struct | RocdecHevcIQMatrix |
struct | RocdecVp9PicParams |
struct | RocdecVp9SliceParams |
struct | RocdecAv1PicParams |
struct | RocdecAv1SliceParams |
struct | _RocdecPicParams |
struct | RocdecProcParams |
Functions | |
rocDecStatus ROCDECAPI | rocDecCreateDecoder (rocDecDecoderHandle *decoder_handle, RocDecoderCreateInfo *decoder_create_info) |
rocDecStatus ROCDECAPI | rocDecDestroyDecoder (rocDecDecoderHandle decoder_handle) |
rocDecStatus ROCDECAPI | rocDecDecodeFrame (rocDecDecoderHandle decoder_handle, RocdecPicParams *pic_params) |
rocDecStatus ROCDECAPI | rocDecGetDecodeStatus (rocDecDecoderHandle decoder_handle, int pic_idx, RocdecDecodeStatus *decode_status) |
rocDecStatus ROCDECAPI | rocDecReconfigureDecoder (rocDecDecoderHandle decoder_handle, RocdecReconfigureDecoderInfo *reconfig_params) |
const char *ROCDECAPI | rocDecGetErrorName (rocDecStatus rocdec_status) |
Variables | |
int | _RocdecHevcPicture::poc |
picture order count. ! in HEVC, POCs for top and bottom fields of same picture should take different values. | |
Detailed Description
AMD The rocDecode is a toolkit to decode videos and images using a hardware-accelerated video decoder on AMD’s GPUs.
Function Documentation
◆ rocDecCreateDecoder()
rocDecStatus ROCDECAPI rocDecCreateDecoder | ( | rocDecDecoderHandle * | decoder_handle, |
RocDecoderCreateInfo * | decoder_create_info | ||
) |
Create the decoder object based on decoder_create_info. A handle to the created decoder is returned
◆ rocDecDecodeFrame()
rocDecStatus ROCDECAPI rocDecDecodeFrame | ( | rocDecDecoderHandle | decoder_handle, |
RocdecPicParams * | pic_params | ||
) |
Decodes a single picture Submits the frame for HW decoding
◆ rocDecDestroyDecoder()
rocDecStatus ROCDECAPI rocDecDestroyDecoder | ( | rocDecDecoderHandle | decoder_handle | ) |
Destroy the decoder object
◆ rocDecGetDecodeStatus()
rocDecStatus ROCDECAPI rocDecGetDecodeStatus | ( | rocDecDecoderHandle | decoder_handle, |
int | pic_idx, | ||
RocdecDecodeStatus * | decode_status | ||
) |
Get the decode status for frame corresponding to nPicIdx API is currently supported for HEVC, AVC/H264 and JPEG codecs. API returns ROCDEC_NOT_SUPPORTED error code for unsupported GPU or codec.
◆ rocDecGetErrorName()
const char *ROCDECAPI rocDecGetErrorName | ( | rocDecStatus | rocdec_status | ) |
Return name of the specified error code in text form.
◆ rocDecReconfigureDecoder()
rocDecStatus ROCDECAPI rocDecReconfigureDecoder | ( | rocDecDecoderHandle | decoder_handle, |
RocdecReconfigureDecoderInfo * | reconfig_params | ||
) |
Used to reuse single decoder for multiple clips. Currently supports resolution change, resize params params, target area params change for same codec. Must be called during RocdecParserParams::pfn_sequence_callback