Code cleanup (#524)

* rocm version check for targets

* check rocm targets for gfx

* code cleanup

* code cleanup

[ROCm/rocdecode commit: bcca70908c]
This commit is contained in:
Lakshmi Kumar
2025-03-03 13:25:35 -08:00
committed by GitHub
parent 407d392c3f
commit eda4c5d843
5 changed files with 6 additions and 6 deletions
@@ -157,7 +157,7 @@ FFMpegVideoDecoder::~FFMpegVideoDecoder() {
}
/* Return value from HandleVideoSequence() are interpreted as :
* 0: fail, 1: succeeded, > 1: override dpb size of parser (set by CUVIDPARSERPARAMS::max_num_decode_surfaces while creating parser)
* 0: fail, 1: succeeded, > 1: override dpb size of parser (set by RocdecParserParams::max_num_decode_surfaces while creating parser)
*/
int FFMpegVideoDecoder::HandleVideoSequence(RocdecVideoFormat *p_video_format) {
if (p_video_format == nullptr) {
@@ -150,7 +150,7 @@ class FFMpegVideoDecoder: public RocVideoDecoder {
int HandleVideoSequence(RocdecVideoFormat *p_video_format);
/**
* @brief This function gets called when a picture is ready to be decoded. cuvidDecodePicture is called from this function
* @brief This function gets called when a picture is ready to be decoded. rocDecDecodeFrame is called from this function
* to decode the picture
*/
int HandlePictureDecode(RocdecPicParams *p_pic_params);