Tests and samples - Bugfix (#673)

* Tests and samples - bugfixes

* CMakeLists - add CMAKE_MODULE_PATH

* Fix header - Host

* Host - decouple

* Host Utils - Reset

* Test - enable advanced test with host lib
이 커밋은 다음에 포함됨:
Kiriti Gowda
2025-11-18 22:06:46 -08:00
커밋한 사람 GitHub
부모 134369824d
커밋 a1b9583353
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;