OpRemap.h#

Fully qualified name: public/src/operator/include/OpRemap.h

File members: public/src/operator/include/OpRemap.h

/*
 * SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
 *
 * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
 * property and proprietary rights in and to this material, related
 * documentation and any modifications thereto. Any use, reproduction,
 * disclosure or distribution of this material and related documentation
 * without an express license agreement from NVIDIA CORPORATION or
 * its affiliates is strictly prohibited.
 */

#ifndef PVA_SOLUTIONS_OPREMAP_H
#define PVA_SOLUTIONS_OPREMAP_H

#include <PvaOperator.h>
#include <PvaOperatorTypes.h>
#include <cuda_runtime.h>
#include <cupva_host_scheduling.h>
#include <nvcv/BorderType.h>
#include <nvcv/Image.h>
#include <nvcv/Status.h>
#include <nvcv/Tensor.h>

#ifdef __cplusplus
extern "C" {
#endif

NVCVStatus pvaRemapCreate(NVCVOperatorHandle *handle, NVCVImageRequirements const *const inRequirements,
                          NVCVImageRequirements const *const outRequirements,
                          NVCVTensorRequirements const *const warpMapRequirements,
                          PVAInterpolationType const interpType, NVCVBorderType const borderMode);

NVCVStatus pvaRemapValidate(NVCVTensorHandle warpMapHandle, int32_t inWidth, int32_t inHeight, int32_t outWidth,
                            int32_t outHeight);

#ifdef __cplusplus
}

NVCVStatus pvaRemapSubmit(NVCVOperatorHandle handle, cupvaStream_t stream, NVCVImageHandle in, NVCVImageHandle out,
                          NVCVTensorHandle warpMap);

NVCVStatus pvaRemapSubmit(NVCVOperatorHandle handle, cudaStream_t stream, NVCVImageHandle in, NVCVImageHandle out,
                          NVCVTensorHandle warpMap);

#endif // __cplusplus

#endif /* PVA_SOLUTIONS_OPREMAP_H */