Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
VideoData.h
Go to the documentation of this file.
1
2// Copyright (c) 2018 Digital Barriers
4
20
21#pragma once
22
23#include "StreamData.h"
24#include "EdgeVisSDK.h"
25#include "Pimpl.h"
27#include "AspectRatios.h"
29#include "VideoFrameLayout.h"
30
31namespace EdgeVisDecoderSDK
32{
33 class VideoDataImpl;
34
35 class VideoData : public StreamData
36 {
37 public:
38 VideoData();
39 VideoData(std::weak_ptr<VideoDataImpl> pimpl);
40 DB_EDGEVIS_SDK VideoData(StreamData data);
41 DB_EDGEVIS_SDK virtual ~VideoData();
42
43 public:
44
50 DB_EDGEVIS_SDK int32_t GetWidth() const;
51
57 DB_EDGEVIS_SDK int32_t GetHeight() const;
58
67 DB_EDGEVIS_SDK int64_t GetEncodeTimeStamp() const;
68 void SetEncodeTimeStamp(int64_t ts);
69
80 DB_EDGEVIS_SDK int64_t GetDisplayTimeStamp() const;
81 void SetDisplayTimeStamp(int64_t ts);
82
90 void SetTimeStampContext(StreamTimestampContext stc);
91
99 DB_EDGEVIS_SDK int64_t GetViewerTimeoutTimeStamp() const;
100 void SetViewerTimeoutTimeStamp(int64_t ts);
101
108 DB_EDGEVIS_SDK int32_t GetInput() const;
109 void SetInput(int32_t input);
110
116 DB_EDGEVIS_SDK EdgeVisSDKCore::AspectRatio GetAspectRatio() const;
117 void SetAspectRatio(EdgeVisSDKCore::AspectRatio a);
118
125 DB_EDGEVIS_SDK bool IsCached() const;
126 void SetCached(bool cached);
127
135
142 DB_EDGEVIS_SDK int32_t GetArchivePlaybackSpeedMultiplier() const;
143
153 DB_EDGEVIS_SDK VideoFrameLayout GetVideoFrameLayout() const;
154 };
155}
ArchivePlaybackSpeed
Definition ArchivePlaybackSpeed.h:27
DB_EDGEVIS_SDK int64_t GetEncodeTimeStamp() const
Return the timestamp of the image.
DB_EDGEVIS_SDK int32_t GetInput() const
Returns what video input this image is coming from.
DB_EDGEVIS_SDK ArchivePlaybackSpeed GetArchivePlaybackSpeed() const
Get the playback speed of the stream.
DB_EDGEVIS_SDK StreamTimestampContext GetTimeStampContext() const
Return context of the image timestamp.
DB_EDGEVIS_SDK int64_t GetDisplayTimeStamp() const
Return the timestamp of the image.
DB_EDGEVIS_SDK int32_t GetWidth() const
Return the width of the image.
DB_EDGEVIS_SDK VideoFrameLayout GetVideoFrameLayout() const
Returns the VideoFrameLayout describing the sources used to construct the received YCbCrFrame for the...
DB_EDGEVIS_SDK bool IsCached() const
This flag determines if the image has been cached at the remote encoder end for the Full Resolution.
DB_EDGEVIS_SDK EdgeVisSDKCore::AspectRatio GetAspectRatio() const
Returns the aspect ratio of this image.
DB_EDGEVIS_SDK int32_t GetArchivePlaybackSpeedMultiplier() const
Get the playback speed multiplier of the stream.
DB_EDGEVIS_SDK int64_t GetViewerTimeoutTimeStamp() const
Return the timestamp at which the stream will timeout.
DB_EDGEVIS_SDK int32_t GetHeight() const
Return the height of the image.
VideoFrameLayout decribes the content of the frame from a given Encoder input.
Definition VideoFrameLayout.h:38
StreamTimestampContext
Stream timestamp context.
Definition StreamTimestampContext.h:21
The EdgeVis Decoder SDK namespace.