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]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f5c3feacfe
Коммит
5ac584fad5
@@ -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);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user