3#include "rtpstreaming.hpp"
4#include "../global.hpp"
6#include "../utilities/system_info.hpp"
8#include "stream_config.hpp"
16 inline HandleGuard<RTPStreaming::Stream>::HandleGuard(
void *handle) noexcept
17 : HandleGuard<RTPStreaming::Stream>(handle, [](
void *handle) { CVB_CALL_CAPI(
ReleaseObject(handle)); })
44 return Internal::DoResCallObjectOut<Stream>(
45 [&](
void *&handle) {
return CVB_CALL_CAPI(CVRTPCreateSenderStream(streamConfig.Handle(), handle)); });
53 return std::make_unique<Stream>(
std::move(guard));
56 explicit Stream(HandleGuard<Stream> &&guard) noexcept
61 Stream(
const Stream &other) =
delete;
62 Stream &operator=(
const Stream &other) =
delete;
63 Stream(Stream &&other) =
delete;
64 Stream &operator=(Stream &&other) =
delete;
68 void *Handle() const noexcept
70 return handle_.Handle();
86 CVB_CALL_CAPI_CHECKED(CVRTPStreamPushImage(Handle(), image.
Handle()));
90 HandleGuard<Stream> handle_;
29 class Stream final {
…};
Represents one acquisition stream of a device.
Definition decl_stream.hpp:33
The Common Vision Blox image.
Definition decl_image.hpp:45
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:232
void PushImage(const Image &image)
Push an image over the network.
Definition stream.hpp:84
static std::unique_ptr< Stream > Create(const StreamConfig &streamConfig)
Creates a stream with a given configuration.
Definition stream.hpp:42
cvbbool_t ReleaseObject(OBJ &Object)
Namespace for RTP streaming.
Definition rtpstreaming.hpp:24
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17