From bcca70908cd47fe9e1311618209c543ee242ac65 Mon Sep 17 00:00:00 2001 From: Lakshmi Kumar Date: Mon, 3 Mar 2025 13:25:35 -0800 Subject: [PATCH] Code cleanup (#524) * rocm version check for targets * check rocm targets for gfx * code cleanup * code cleanup --- api/rocdecode.h | 4 ++-- utils/ffmpegvideodecode/ffmpeg_video_dec.cpp | 2 +- utils/ffmpegvideodecode/ffmpeg_video_dec.h | 2 +- utils/rocvideodecode/roc_video_dec.cpp | 2 +- utils/rocvideodecode/roc_video_dec.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/rocdecode.h b/api/rocdecode.h index b8e0420b46..5d78538776 100644 --- a/api/rocdecode.h +++ b/api/rocdecode.h @@ -1610,8 +1610,8 @@ typedef struct _RocdecAv1SliceParams { //! \struct _RocdecPicParams //! \ingroup group_amd_rocdecode //! Picture parameters for decoding -//! This structure is used in rocDecDecodePicture API -//! IN for rocDecDecodePicture +//! This structure is used in rocDecDecodeFrame API +//! IN for rocDecDecodeFrame /******************************************************************************************/ typedef struct _RocdecPicParams { int pic_width; /**< IN: Coded frame width */ diff --git a/utils/ffmpegvideodecode/ffmpeg_video_dec.cpp b/utils/ffmpegvideodecode/ffmpeg_video_dec.cpp index cfd775fe54..c7ed32ed7f 100644 --- a/utils/ffmpegvideodecode/ffmpeg_video_dec.cpp +++ b/utils/ffmpegvideodecode/ffmpeg_video_dec.cpp @@ -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) { diff --git a/utils/ffmpegvideodecode/ffmpeg_video_dec.h b/utils/ffmpegvideodecode/ffmpeg_video_dec.h index ceb659c6ba..8a0e466be8 100644 --- a/utils/ffmpegvideodecode/ffmpeg_video_dec.h +++ b/utils/ffmpegvideodecode/ffmpeg_video_dec.h @@ -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); diff --git a/utils/rocvideodecode/roc_video_dec.cpp b/utils/rocvideodecode/roc_video_dec.cpp index a612cfd3cf..4be8566741 100644 --- a/utils/rocvideodecode/roc_video_dec.cpp +++ b/utils/rocvideodecode/roc_video_dec.cpp @@ -228,7 +228,7 @@ static void GetSurfaceStrideInternal(rocDecVideoSurfaceFormat surface_format, ui } /* 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 RocVideoDecoder::HandleVideoSequence(RocdecVideoFormat *p_video_format) { diff --git a/utils/rocvideodecode/roc_video_dec.h b/utils/rocvideodecode/roc_video_dec.h index 4bd7c1b4a7..554446e75b 100644 --- a/utils/rocvideodecode/roc_video_dec.h +++ b/utils/rocvideodecode/roc_video_dec.h @@ -427,7 +427,7 @@ class 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);