rocDecode resize sample implementation (#285)

* WIP: resize kernels

* hipified kernels for scaling from cuda

* updated videodecodeRGB sample for scaling

* added stream parameter to kernels

* add scale kernels using tex2d and NN

* enable tex2D kernels

* add NN resize kernels

* fixed scaling kernels

* fixed tex2D scaling kernel for UV scaling

* minor formatting

* address review comments

---------

Co-authored-by: Aryan Salmanpour <aryan.salmanpour@amd.com>

[ROCm/rocdecode commit: 39e274d02d]
Этот коммит содержится в:
Rajy Rawther
2024-03-18 05:32:19 -07:00
коммит произвёл GitHub
родитель f5c3feacfe
Коммит 5ac584fad5
5 изменённых файлов: 509 добавлений и 17 удалений
+4
Просмотреть файл
@@ -124,6 +124,10 @@ struct Rect {
int bottom;
};
struct Dim {
int w, h;
};
static inline int align(int value, int alignment) {
return (value + alignment - 1) & ~(alignment - 1);
}