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. Please note that this API makes a non-blocking call and returns the status of the frame associated with nPicIdx at the time of the call, without waiting for the decoding to complete. The decode_status->decode_status can be either rocDecodeStatus_Success, indicating that the decoding has been completed, or rocDecodeStatus_InProgress, which means that the decoding is still in progress.
◆ 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