AMD ROCm Video Parser API#
1 min read time
Applies to Linux
rocDecode Parser: AMD ROCm Video Parser API
AMD The rocDecode video parser for AMD’s GPUs. More...
Functions | |
| rocDecStatus ROCDECAPI | rocDecCreateVideoParser (RocdecVideoParser *parser_handle, RocdecParserParams *params) |
| Create video parser object and initialize. | |
| rocDecStatus ROCDECAPI | rocDecParseVideoData (RocdecVideoParser parser_handle, RocdecSourceDataPacket *packet) |
| Parse the video data from source data packet in pPacket. More... | |
| rocDecStatus ROCDECAPI | rocDecDestroyVideoParser (RocdecVideoParser parser_handle) |
| Destroy the video parser object. | |
Detailed Description
AMD The rocDecode video parser for AMD’s GPUs.
Function Documentation
◆ rocDecParseVideoData()
| rocDecStatus ROCDECAPI rocDecParseVideoData | ( | RocdecVideoParser | parser_handle, |
| RocdecSourceDataPacket * | packet | ||
| ) |
Parse the video data from source data packet in pPacket.
Extracts parameter sets like SPS, PPS, bitstream etc. from pPacket and calls back pfn_decode_picture with RocdecPicParams data for kicking of HW decoding calls back pfn_sequence_callback with RocdecVideoFormat data for initial sequence header or when the decoder encounters a video format change calls back pfn_display_picture with RocdecParserDispInfo data to display a video frame