NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_video_stream.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_VIDEO_STREAM_H
12#define __BE_VIDEO_STREAM_H
13
14#include <be_image.h>
15#include <be_video.h>
16namespace BiometricEvaluation
17{
23 namespace Video
24 {
25 class Stream {
26 public:
34 virtual float getFPS() = 0;
35
43 virtual uint64_t getFrameCount() = 0;
44
61 uint32_t frameNum) = 0;
62
80#undef PixelFormat
81 virtual std::vector<Video::Frame> getFrameSequence(
82 int64_t startTime,
83 int64_t endTime) = 0;
84
95 virtual void setFrameScale(
96 float xScale,
97 float yScale) = 0;
98
108 const Image::PixelFormat pixelFormat) = 0;
109
110 virtual ~Stream();
111 };
112 }
113}
114#endif /* __BE_VIDEO_STREAM_H */
virtual Video::Frame getFrame(uint32_t frameNum)=0
Obtain a frame from the video stream.
virtual void setFrameScale(float xScale, float yScale)=0
Set the scaling factors for returned video frames.
virtual float getFPS()=0
Obtain the average frame rate of the video stream.
virtual uint64_t getFrameCount()=0
Obtain the number of frames in the video stream.
virtual std::vector< Video::Frame > getFrameSequence(int64_t startTime, int64_t endTime)=0
Obtain a sequence of frames from the video stream.
virtual void setFramePixelFormat(const Image::PixelFormat pixelFormat)=0
Set the pixel format for returned video frames.
PixelFormat
Image pixel formats.
Definition: be_image.h:51
This software was developed at the National Institute of Standards and Technology (NIST) by employees...