GIFT-Grab  1708
Copyright (c) 2015-7, University College London (UCL)
videotargetfactory.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "macros.h"
4 #include "codec.h"
5 #include "ivideotarget.h"
6 
7 namespace gg
8 {
9 
23 {
24 protected:
31 
32 public:
36  virtual ~VideoTargetFactory();
37 
38 public:
45 
64  const std::string filename,
65  const float frame_rate);
66 
67 protected:
69 };
70 
74 static VideoTargetFactory& _video_target_factory = VideoTargetFactory::get_instance();
75 
76 }
Codec
Lists supported video codecs.
Definition: codec.h:9
virtual ~VideoTargetFactory()
Definition: videotargetfactory.cpp:17
Definition: broadcastdaemon.cpp:7
IVideoTarget * create_file_writer(enum Codec codec, const std::string filename, const float frame_rate)
Create specified video saving target.
Definition: videotargetfactory.cpp:28
DISALLOW_COPY_AND_ASSIGNMENT(VideoTargetFactory)
This abstract class provides the API to be implemented by classes that provide functionality to save ...
Definition: ivideotarget.h:17
VideoTargetFactory()
The constructor should never be publicly called.
Definition: videotargetfactory.cpp:12
static VideoTargetFactory & get_instance()
Get reference to singleton instance of this class.
Definition: videotargetfactory.cpp:22
This class implements the factory design pattern for creating video targets, for instance for encodin...
Definition: videotargetfactory.h:22