32#include "EdgeVisSDK.h"
39 class YCbCrFrame :
public VideoData
42 DB_EDGEVIS_SDK YCbCrFrame();
44 YCbCrFrame(std::weak_ptr<YCbCrFrameImpl> pimpl);
48 DB_EDGEVIS_SDK YCbCrFrame(
const YCbCrFrame& data);
50 DB_EDGEVIS_SDK YCbCrFrame( YCbCrFrame&& frame );
52 DB_EDGEVIS_SDK YCbCrFrame& operator=(
const YCbCrFrame& frame );
54 DB_EDGEVIS_SDK YCbCrFrame& operator=( YCbCrFrame&& frame );
56 DB_EDGEVIS_SDK
virtual ~YCbCrFrame();
78 DB_EDGEVIS_SDK
bool ReSize(int32_t width, int32_t height);
87 DB_EDGEVIS_SDK
bool ReSizeCopy(
const YCbCrFrame& frame, int32_t width, int32_t height);
94 DB_EDGEVIS_SDK
void Copy(
const YCbCrFrame & frame);
114 void SetTimeStamp(int64_t ts);
221 DB_EDGEVIS_SDK
void Save(
const std::string& path)
const;
This is the base class for the StreamData objects.
Definition StreamData.h:28
DB_EDGEVIS_SDK byte_array GetCbPlane() const
Returns the byte array containing the Cb plane.
DB_EDGEVIS_SDK bool GetCbPlaneData(byte_array &data) const
Retrieve byte array containing the Cb plane.
DB_EDGEVIS_SDK byte_array GetCrPlane() const
Returns the byte array containing the Cr plane.
DB_EDGEVIS_SDK void CorrectAspectRatio()
Will correct the aspect ratio of the image.
DB_EDGEVIS_SDK void Save(const std::string &path) const
Save the YCbCrFrame to a Y4M file with the supplied file path.
DB_EDGEVIS_SDK bool ReSize(int32_t width, int32_t height)
Set the size of the frame and scale the content.
DB_EDGEVIS_SDK void ResetToBlack()
Will reset the frame to black.
DB_EDGEVIS_SDK int32_t GetCbPlaneStride() const
Returns the stride of the Cb plane.
DB_EDGEVIS_SDK bool GetCrPlaneData(byte_array &data) const
Retrieve byte array containing the Cr plane.
DB_EDGEVIS_SDK int32_t GetYPlaneStride() const
Returns the stride of the Y plane.
DB_EDGEVIS_SDK int32_t GetCrPlaneStride() const
Returns the stride of the Cr plane.
DB_EDGEVIS_SDK int32_t GetCrPlaneDataSize() const
Returns the size the Cr plane buffer.
DB_EDGEVIS_SDK bool SetDimensions(int32_t width, int32_t height)
Set the size of the frame witihout scaling the content.
DB_EDGEVIS_SDK void ResetToGrey()
Will reset the planes to return a grey image.
DB_EDGEVIS_SDK bool ReSizeCopy(const YCbCrFrame &frame, int32_t width, int32_t height)
Resize a frame, then copy (and scale) from.
DB_EDGEVIS_SDK int32_t GetCbPlaneDataSize() const
Returns the size the Cb plane buffer.
DB_EDGEVIS_SDK void Copy(const YCbCrFrame &frame)
Copy the content and properties from another frame to this one.
DB_EDGEVIS_SDK int64_t GetTimeStamp() const
Return the timestamp of the image.
void CopyFramePropertiesOnly(const YCbCrFrame &frame)
Copy only the properties from another frame to this one.
DB_EDGEVIS_SDK int32_t GetYPlaneDataSize() const
Returns the size the Y plane buffer.
DB_EDGEVIS_SDK bool GetYPlaneData(byte_array &data) const
Retrieve byte array containing the Y plane.
DB_EDGEVIS_SDK byte_array GetYPlane() const
Returns the byte array containing the Y plane.
The EdgeVis Decoder SDK namespace.