Cogs.Core
VideoPlaybackComponent.h
1#pragma once
2
3#include "Resources/Resources.h"
4#include "IVideoDecoder.h"
5
6#include "Foundation/ComponentModel/Component.h"
7
8namespace Cogs::Core
9{
11 {
12 VideoDecoderDescription description;
13
14 std::string source;
15
17
18 bool reconfig = false;
19 bool restart = false;
20
24 bool recordToDisk = false;
25
29 std::string recordPath;
30
31 /*
32 Get frames using callback.
33 */
34 VideoDecoderCallback* decodeCallback = nullptr;
35 void* decodeCallbackData = nullptr;
36
37 /*
38 Get callback when presenting new frames.
39 */
40 VideoPresentCallback* presentCallback = nullptr;
41 void* presentCallbackData = nullptr;
42
43 static void registerType();
44 };
45}// namespace ...
46
47template<> inline Cogs::StringView getName<Cogs::Core::VideoPlaybackComponent>() { return "VideoPlaybackComponent"; }
Base class for Component instances.
Definition: Component.h:143
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
static const ResourceHandle_t NoHandle
Handle representing a default (or none if default not present) resource.
std::string recordPath
Path to directory where captured video is stored.
bool recordToDisk
Write video frames to disk.