3#include "../../_cexports/c_gev_server.h"
4#include "../../global.hpp"
6#include "../_decl/decl_node_map.hpp"
8#include "../_decl/decl_server.hpp"
9#include "../_decl/decl_stream.hpp"
21 int result = InnerSend(image, imageReleased);
28 return InnerSend(image, imageReleased) >= 0;
36 int result = InnerSend(image);
46 return InnerSend(image) >= 0;
52 int result = InnerSend(bufferDescription, basePtr, bufferSize, bufferReleased);
60 return InnerSend(bufferDescription, basePtr, bufferSize, bufferReleased) >= 0;
71 auto res = CVB_CALL_CAPI(GSSendImageCB(parent_->Handle(), image->Handle(), &Stream::SendDispatcher, pPrivate));
78 inline CExports::cvbres_t Stream::InnerSend(
const Image &image)
80 return CVB_CALL_CAPI(GSSendImage(parent_->Handle(), image.Handle()));
84 std::size_t bufferSize, std::function<
void(
void *)> callback)
86 auto pPrivate =
new std::function<void()>([basePtr, callback]() { callback(basePtr); });
87 auto dataBlock = description.ImageDataBlock();
88 auto res = CVB_CALL_CAPI(
89 GSSendBlock(parent_->Handle(),
reinterpret_cast<const CExports::GSDataBlock &
>(dataBlock),
90 static_cast<CExports::cvbuint8_t *
>(basePtr), bufferSize, &Stream::SendDispatcher, pPrivate));
98 std::size_t bufferSize, std::function<
void(
void *)> callback)
100 auto pPrivate =
new std::function<void()>([basePtr, callback]() { callback(basePtr); });
101 auto dataBlock = description.ChunkImageDataBlock();
102 auto res = CVB_CALL_CAPI(
103 GSSendBlock(parent_->Handle(),
reinterpret_cast<const CExports::GSDataBlock &
>(dataBlock),
104 static_cast<CExports::cvbuint8_t *
>(basePtr), bufferSize, &Stream::SendDispatcher, pPrivate));
Describes a GenICam Pixel Format Naming Convention (PFNC) compatible image memory buffer with possibl...
Definition chunk_image_buffer_description.hpp:22
Describes a GenICam Pixel Format Naming Convention (PFNC) compatible image memory buffer.
Definition image_buffer_description.hpp:24
virtual std::int64_t ResendBuffersCount() const
Gets the number of resend buffers.
Definition detail_stream_base.hpp:22
The stream to send Images or other data.
Definition decl_stream.hpp:20
bool TrySend(const ImagePtr &image, std::function< void(const ImagePtr &)> imageReleased)
Tries to send the given image to the remote client.
Definition detail_stream.hpp:26
void Send(const ImagePtr &image, std::function< void(const ImagePtr &)> imageReleased)
Sends the given image to the remote client.
Definition detail_stream.hpp:19
Namespace for GevServer based device configuration.
Definition decl_int_swiss_knife_node.hpp:11
@ Image
Image payload.
Definition gevserver.hpp:313
Root namespace for the Image Manager interface.
Definition version.hpp:11
std::shared_ptr< Image > ImagePtr
Convenience shared pointer for Image.
Definition global.hpp:86