5#include "_cexports/c_img.h"
6#include "_cexports/c_pixfmtcnv.h"
10#include "pfnc_format.hpp"
18 inline HandleGuard<PixelFormatConverter>::HandleGuard(
void *handle) noexcept
19 : HandleGuard<PixelFormatConverter>(handle, [](
void *handle) { CVB_CALL_CAPI(
ReleaseObject(handle)); })
52 : handleGuard_(CreateHandle(sourceFormat, destinationFormat))
53 , sourceFormat_(sourceFormat)
54 , destinationFormat_(destinationFormat)
74 return std::make_unique<PixelFormatConverter>(sourceFormat, destinationFormat);
86 return handleGuard_.Handle();
106 return destinationFormat_;
124 CVB_CALL_CAPI_CHECKED(
125 CVPFConverterExecute(handleGuard_.Handle(), sourceObject.Handle(), destinationObject.
Handle()));
131 void *handle =
nullptr;
132 CVB_CALL_CAPI_CHECKED(CVPFCreateConverter(
static_cast<Cvb::CExports::cvbuint32_t
>(sourceFormat),
133 static_cast<Cvb::CExports::cvbuint32_t
>(destinationFormat), handle));
140 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 version.hpp:11