5#ifndef CSCORE_CSCORE_RAW_H_
6#define CSCORE_CSCORE_RAW_H_
33 uint64_t lastFrameTime,
41 void (*processFrame)(
void* data, uint64_t time),
CS_Status* status);
67 std::function<
void(uint64_t time)> processFrame,
76 double timeout, uint64_t lastFrameTime,
106 int width,
int height,
int fps);
134 explicit RawSink(std::string_view name);
149 std::function<
void(uint64_t time)> processFrame);
191 double timeout = 0.225)
const;
200 int height,
int fps) {
215 std::function<
void(uint64_t time)> processFrame) {
230 uint64_t lastFrameTime,
231 double timeout)
const {
and restrictions which apply to each piece of software is included later in this file and or inside of the individual applicable source files The disclaimer of warranty in the WPILib license above applies to all code in and nothing in any of the other licenses gives permission to use the names of FIRST nor the names of the WPILib contributors to endorse or promote products derived from this software The following pieces of software have additional or alternate and or and nanopb were all modified for use in Google Inc All rights reserved Redistribution and use in source and binary with or without are permitted provided that the following conditions are this list of conditions and the following disclaimer *Redistributions in binary form must reproduce the above copyright this list of conditions and the following disclaimer in the documentation and or other materials provided with the distribution *Neither the name of Google Inc nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED BUT NOT LIMITED THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY OR CONSEQUENTIAL WHETHER IN STRICT OR EVEN IF ADVISED OF THE POSSIBILITY OF SUCH January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation source
Definition ThirdPartyNotices.txt:124
A base class for single image reading sinks.
Definition cscore_oo.h:1451
A base class for single image providing sources.
Definition cscore_oo.h:984
A sink for user code to accept video frames as raw bytes.
Definition cscore_raw.h:122
A source for user code to provide video frames as raw bytes.
Definition cscore_raw.h:84
CS_Status m_status
Definition cscore_oo.h:1339
CS_Sink m_handle
Definition cscore_oo.h:1340
CS_Source m_handle
Video source handle.
Definition cscore_oo.h:603
CS_Status m_status
Definition cscore_oo.h:600
uint64_t CS_GrabRawSinkFrameTimeout(CS_Sink sink, struct WPI_RawFrame *rawImage, double timeout, CS_Status *status)
CS_Source CS_CreateRawSource(const struct WPI_String *name, CS_Bool isCv, const CS_VideoMode *mode, CS_Status *status)
CS_Sink CS_CreateRawSink(const struct WPI_String *name, CS_Bool isCv, CS_Status *status)
CS_Sink CS_CreateRawSinkCallback(const struct WPI_String *name, CS_Bool isCv, void *data, void(*processFrame)(void *data, uint64_t time), CS_Status *status)
void CS_PutRawSourceFrame(CS_Source source, const struct WPI_RawFrame *image, CS_Status *status)
uint64_t CS_GrabRawSinkFrameTimeoutWithFrameTime(CS_Sink sink, struct WPI_RawFrame *rawImage, double timeout, uint64_t lastFrameTime, CS_Status *status)
uint64_t CS_GrabRawSinkFrame(CS_Sink sink, struct WPI_RawFrame *rawImage, CS_Status *status)
uint64_t GrabSinkFrameTimeoutLastTime(CS_Sink sink, WPI_RawFrame &image, double timeout, uint64_t lastFrameTime, CS_Status *status)
uint64_t GrabFrame(wpi::RawFrame &image, double timeout=0.225) const
Wait for the next frame and get the image.
Definition cscore_raw.h:219
CS_Source CreateRawSource(std::string_view name, bool isCv, const VideoMode &mode, CS_Status *status)
CS_Sink CreateRawSink(std::string_view name, bool isCv, CS_Status *status)
uint64_t GrabSinkFrameTimeout(CS_Sink sink, WPI_RawFrame &image, double timeout, CS_Status *status)
uint64_t GrabSinkFrame(CS_Sink sink, WPI_RawFrame &image, CS_Status *status)
void PutSourceFrame(CS_Source source, const WPI_RawFrame &image, CS_Status *status)
void PutFrame(wpi::RawFrame &image)
Put a raw image and notify sinks.
Definition cscore_raw.h:205
uint64_t GrabFrameNoTimeout(wpi::RawFrame &image) const
Wait for the next frame and get the image.
Definition cscore_raw.h:224
CS_Sink CreateRawSinkCallback(std::string_view name, bool isCv, std::function< void(uint64_t time)> processFrame, CS_Status *status)
uint64_t GrabFrameLastTime(wpi::RawFrame &image, uint64_t lastFrameTime, double timeout=0.225) const
Wait for the next frame and get the image.
Definition cscore_raw.h:229
CS_Handle CS_Source
Definition cscore_c.h:54
int CS_Status
Definition cscore_c.h:47
CS_Handle CS_Sink
Definition cscore_c.h:53
int CS_Bool
Definition cscore_c.h:46
CameraServer (cscore) namespace.
Definition ShuffleboardContainer.h:25
Video mode.
Definition cscore_c.h:93
Raw Frame.
Definition RawFrame.h:32
A const UTF8 string.
Definition string.h:14
Video mode.
Definition cscore_cpp.h:62
PixelFormat
Definition cscore_cpp.h:63