5#include "_cexports/c_img.h"
6#include "_cexports/c_pixfmtcnv.h"
9#include "pfnc_format.hpp"
17 inline HandleGuard<PixelFormatConverter>::HandleGuard(
void *handle) noexcept
18 : HandleGuard<PixelFormatConverter>(handle, [](
void *handle) { CVB_CALL_CAPI(
ReleaseObject(handle)); })
51 : handleGuard_(CreateHandle(sourceFormat, destinationFormat))
52 , sourceFormat_(sourceFormat)
53 , destinationFormat_(destinationFormat)
73 return std::make_unique<PixelFormatConverter>(sourceFormat, destinationFormat);
85 return handleGuard_.Handle();
105 return destinationFormat_;
123 CVB_CALL_CAPI_CHECKED(
124 CVPFConverterExecute(handleGuard_.Handle(), sourceObject.Handle(), destinationObject.
Handle()));
130 void *handle =
nullptr;
131 CVB_CALL_CAPI_CHECKED(CVPFCreateConverter(
static_cast<Cvb::CExports::cvbuint32_t
>(sourceFormat),
132 static_cast<Cvb::CExports::cvbuint32_t
>(destinationFormat), handle));
139 HandleGuard<PixelFormatConverter> handleGuard_;
The Common Vision Blox image.
Definition decl_image.hpp:50
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:237
cvbbool_t ReleaseObject(OBJ &Object)
PfncFormat
GenICam Pixel Format Naming Convention (PFNC) format values.
Definition pfnc_format.hpp:34
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17