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
[ROCm/rocdecode commit: a1b9583353]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
04117a091d
Коммит
577d1e842d
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user