132 #ifndef DW_SOFT_ISP_H__ 133 #define DW_SOFT_ISP_H__ 135 #include <dw/core/Config.h> 250 dwSoftISPHandle_t obj);
263 dwSoftISPHandle_t obj);
278 dwSoftISPHandle_t obj);
293 dwSoftISPHandle_t obj);
313 dwSoftISPHandle_t obj);
472 dwSoftISPHandle_t obj, cudaStream_t stream);
479 #endif // DW_soft_ISP_H__ Half camera resolution combining a 2x2 Bayer cell into one output pixel.
DW_API_PUBLIC dwStatus dwSoftISP_setDemosaicMethod(dwSoftISPDemosaicMethod method, dwSoftISPHandle_t obj)
Sets the method used to demosaic.
NVIDIA DriveWorks API: Core Types
DW_API_PUBLIC dwStatus dwSoftISP_getBayerImageProperties(dwImageProperties *imageProperties, dwSoftISPHandle_t obj)
Gets the image properties for the produced Bayer images.
dwCameraRawFormat rawFormat
Raw pixel order.
DW_API_PUBLIC dwStatus dwSoftISP_getDemosaicROI(dwRect *cropRegion, dwSoftISPHandle_t obj)
Gets the cropping region in the Bayer image used for demosaicing.
DW_API_PUBLIC dwStatus dwSoftISP_getDenoiseMethod(dwSoftISPDenoiseMethod *method, dwSoftISPHandle_t obj)
Gets the method used for denoising.
DW_API_PUBLIC dwStatus dwSoftISP_getDemosaicMethod(dwSoftISPDemosaicMethod *method, dwSoftISPHandle_t obj)
Gets the method used for demosaic.
DW_API_PUBLIC dwStatus dwSoftISP_setTonemapType(dwTonemapType type, dwSoftISPHandle_t obj)
Sets the tonemap type.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwSoftISP_bindBayerOutput(dwImageCUDA *bayerImage, dwSoftISPHandle_t obj)
Binds a Bayer image to the softISP.
DW_API_PUBLIC dwStatus dwSoftISP_bindDemosaicOutput(dwImageCUDA *demosaicImage, dwSoftISPHandle_t obj)
Binds a demosaic image to the softISP.
DW_API_PUBLIC dwStatus dwSoftISP_getDemosaicImageProperties(dwImageProperties *imageProperties, dwSoftISPHandle_t obj)
Gets the image properties for the produced demosaiced images.
DW_API_PUBLIC dwStatus dwSoftISP_copyTonemapCUDA(dwImageCUDA *output, const dwImageCUDA *input, dwSoftISPHandle_t obj, cudaStream_t stream)
Perform tone-mapping on demosaiced images (DEPRECATED).
NVIDIA DriveWorks API: Tonemap Types
NVIDIA DriveWorks API: Core Exports
DW_API_PUBLIC dwStatus dwSoftISP_processDeviceAsync(const int32_t type, dwSoftISPHandle_t obj)
Runs the Software ISP to convert the bound raw image into whatever output was bound beforehand...
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
Full camera resolution using interpolation.
DW_API_PUBLIC dwStatus dwSoftISP_setCUDAStream(cudaStream_t stream, dwSoftISPHandle_t obj)
Sets the CUDA stream for the softISP pipeline.
DW_API_PUBLIC dwStatus dwSoftISP_initialize(dwSoftISPHandle_t *obj, const dwSoftISPParams params, const dwContextHandle_t ctx)
Creates and initializes the software ISP pipeline.
DW_API_PUBLIC dwStatus dwSoftISP_setDemosaicROI(dwRect cropRegion, dwSoftISPHandle_t obj)
Sets the cropping region in the Bayer image used for demosaicing.
NVIDIA DriveWorks API: Cameras
DW_API_PUBLIC dwStatus dwSoftISP_getTonemapType(dwTonemapType *type, dwSoftISPHandle_t obj)
Gets the tonemap type.
DW_API_PUBLIC dwStatus dwSoftISP_setDenoiseMethod(dwSoftISPDenoiseMethod method, dwSoftISPHandle_t obj)
Sets the method used to denoise.
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwSoftISP_release(dwSoftISPHandle_t *obj)
Releases the softISP pipeline object.
struct dwSoftISPObject * dwSoftISPHandle_t
Handle representing the Software ISP.
uint32_t width
Size of the input image (usually the camera resolution)
DW_API_PUBLIC dwStatus dwSoftISP_initParamsFromCamera(dwSoftISPParams *params, const dwCameraProperties cameraProps)
Initializes the parameters for the softISP using dwCameraProperties.
DW_API_PUBLIC dwStatus dwSoftISP_bindRawInput(const dwImageCUDA *rawImage, dwSoftISPHandle_t obj)
Binds the input image to the softISP.
DW_API_PUBLIC dwStatus dwSoftISP_getCUDAStream(cudaStream_t *stream, dwSoftISPHandle_t obj)
Gets the CUDA stream for the softISP pipeline.
DW_API_PUBLIC dwStatus dwSoftISP_reset(dwSoftISPHandle_t obj)
Resets the softISP pipeline.
dwTonemapType type
Tonemapper type (unknown for no tonemapping)
Defines the properties of the image.
DW_API_PUBLIC dwStatus dwSoftISP_bindTonemapOutput(dwImageCUDA *tonemappedImage, dwSoftISPHandle_t obj)
Binds a tone-mapped image to the softISP.