YCbCrFrame.h
Go to the documentation of this file.
1 // Copyright (c) 2016 Digital Barriers
4 
18 #pragma once
19 
20 #include "EdgeVisSDK.h"
21 #include "Pimpl.h"
22 
23 namespace EdgeVisEncoderSDK
24 {
25  class YCbCrFrameImpl;
26  class YCbCrFrame : public EdgeVisSDKPimpl<YCbCrFrameImpl>
27  {
28  public:
29 
30 
43  DB_EDGEVIS_SDK YCbCrFrame(byte_array data, int16_t width, int16_t height, int8_t input);
44 
65  DB_EDGEVIS_SDK YCbCrFrame(byte_array y,
66  int32_t y_image_stride,
67  int32_t y_pixel_stride,
68  byte_array cb,
69  byte_array cr,
70  int32_t chroma_image_stride,
71  int32_t chroma_pixel_stride,
72  int32_t width,
73  int32_t height,
74  int32_t input);
75 
76  EdgeVisSDKPimplWeakConstructor(YCbCrFrame);
77 
78  public:
79 
83  DB_EDGEVIS_SDK void Assign(byte_array data, int16_t width, int16_t height, int8_t input);
84 
88  DB_EDGEVIS_SDK void Assign(byte_array y,
89  int32_t y_image_stride,
90  int32_t y_pixel_stride,
91  byte_array cb,
92  byte_array cr,
93  int32_t chroma_image_stride,
94  int32_t chroma_pixel_stride,
95  int32_t width,
96  int32_t height,
97  int32_t input);
98 
104  DB_EDGEVIS_SDK int16_t GetWidth() const;
105 
111  DB_EDGEVIS_SDK int16_t GetHeight() const;
112 
118  DB_EDGEVIS_SDK int8_t GetInput() const;
119 
125  DB_EDGEVIS_SDK byte_array GetData() const;
126  };
127 }
DB_EDGEVIS_SDK byte_array GetData() const
Get the YUV data.
An object containing the YCbCr frame to be encoded.
Definition: YCbCrFrame.h:26
DB_EDGEVIS_SDK int16_t GetHeight() const
Get the height of the image.
DB_EDGEVIS_SDK void Assign(byte_array data, int16_t width, int16_t height, int8_t input)
Assign new image data to this YCbCrFrame object.
DB_EDGEVIS_SDK YCbCrFrame(byte_array data, int16_t width, int16_t height, int8_t input)
Creates a YCbCrFrame object to be passed into the encoder for TVI encoding.
The EdgeVis Encoder SDK namespace.
DB_EDGEVIS_SDK int16_t GetWidth() const
Get the width of the image.
DB_EDGEVIS_SDK int8_t GetInput() const
Get the input index of this frame.