* Tests and samples - bugfixes

* CMakeLists - add CMAKE_MODULE_PATH

* Fix header - Host

* Host - decouple

* Host Utils - Reset

* Test - enable advanced test with host lib

[ROCm/rocdecode commit: a1b9583353]
Этот коммит содержится в:
Kiriti Gowda
2025-11-18 22:06:46 -08:00
коммит произвёл GitHub
родитель 04117a091d
Коммит 577d1e842d
4 изменённых файлов: 147 добавлений и 132 удалений
+3
Просмотреть файл
@@ -41,6 +41,9 @@ THE SOFTWARE.
#include "roc_video_dec.h"
#include "ffmpeg_video_dec.h"
#include "common.h"
#if ENABLE_HOST_DECODE
#include "rocdecode/rocdecode_host.h"
#endif
//hardcoding for host based decoder creation if demux is not available
#define DEFAULT_WIDTH 2912
+3
Просмотреть файл
@@ -37,6 +37,9 @@ THE SOFTWARE.
#include "roc_video_dec.h"
#include "ffmpeg_video_dec.h"
#include "common.h"
#if ENABLE_HOST_DECODE
#include "rocdecode/rocdecode_host.h"
#endif
void DecProc(RocVideoDecoder *p_dec, VideoDemuxer *demuxer, int *pn_frame, int *pn_pic_dec, double *pn_fps, double *pn_fps_dec, int max_num_frames, OutputSurfaceMemoryType mem_type) {
int n_video_bytes = 0, n_frame_returned = 0, n_frame = 0;
+5 -2
Просмотреть файл
@@ -36,6 +36,9 @@ THE SOFTWARE.
#include "roc_video_dec.h"
#include "ffmpeg_video_dec.h"
#include "common.h"
#if ENABLE_HOST_DECODE
#include "rocdecode/rocdecode_host.h"
#endif
void ShowHelpAndExit(const char *option = NULL) {
std::cout << "Options:" << std::endl
@@ -387,8 +390,8 @@ int main(int argc, char **argv) {
delete md5_generator;
}
} catch (const std::exception &ex) {
std::cout << ex.what() << std::endl;
exit(1);
std::cout << ex.what() << std::endl;
exit(1);
}
return 0;