AMD ROCm Video Parser API

AMD ROCm Video Parser API#

rocDecode: rocDecode Parser: AMD ROCm Video Parser API
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)
 
rocDecStatus ROCDECAPI rocDecParseVideoData (RocdecVideoParser parser_handle, RocdecSourceDataPacket *packet)
 
rocDecStatus ROCDECAPI rocDecParserMarkFrameForReuse (RocdecVideoParser parser_handle, int pic_idx)
 
rocDecStatus ROCDECAPI rocDecDestroyVideoParser (RocdecVideoParser parser_handle)
 

Detailed Description

AMD The rocDecode video parser for AMD’s GPUs.

Function Documentation

◆ rocDecCreateVideoParser()

rocDecodeStatus ROCDECAPI rocDecCreateVideoParser ( RocdecVideoParser parser_handle,
RocdecParserParams params 
)

Create video parser object and initialize

◆ rocDecDestroyVideoParser()

rocDecStatus ROCDECAPI rocDecDestroyVideoParser ( RocdecVideoParser  parser_handle)

Destroy the video parser object

◆ rocDecParserMarkFrameForReuse()

rocDecStatus ROCDECAPI rocDecParserMarkFrameForReuse ( RocdecVideoParser  parser_handle,
int  pic_idx 
)

Mark frame with index pic_idx in parser's buffer pool for reuse (means the frame has been consumed)

◆ rocDecParseVideoData()

rocDecodeStatus 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