Face SDK
1.7 Mozart rc
Face Recognition Software Development Kit
face_sdk_base
video_frame.h
Go to the documentation of this file.
1
3
#ifndef FACE_SDK_VIDEO_FRAME
4
#define FACE_SDK_VIDEO_FRAME
5
6
#include <stdint.h>
7
#include <chrono>
8
9
#include <
face_sdk_base/export.h
>
10
#include <
face_sdk_base/image.h
>
11
12
namespace
face_sdk
13
{
22
class
video_frame
23
{
24
public
:
25
26
virtual
~
video_frame
() =
default
;
27
30
virtual
uint64_t
frame_id
()
const
= 0;
31
34
virtual
std::chrono::milliseconds
timestamp
()
const
= 0;
35
38
virtual
std::shared_ptr<face_sdk::image>
image
()
const
= 0;
39
};
40
44
std::shared_ptr<video_frame> FACE_SDK_EXPORT
make_video_frame
(uint64_t frame_id, std::chrono::milliseconds timestamp,
const
std::shared_ptr<face_sdk::image> &
image
);
45
47
}
48
49
#endif
face_sdk::video_frame
A video frame contains image and meta-information about this image in video stream context.
Definition:
video_frame.h:22
face_sdk::video_frame::timestamp
virtual std::chrono::milliseconds timestamp() const =0
Timestamp.
face_sdk::video_frame::image
virtual std::shared_ptr< face_sdk::image > image() const =0
Image.
face_sdk::image
The image object. An image keeps bitmap data in 24bpp RBG format.
Definition:
image.h:23
image.h
face_sdk::make_video_frame
std::shared_ptr< video_frame > FACE_SDK_EXPORT make_video_frame(uint64_t frame_id, std::chrono::milliseconds timestamp, const std::shared_ptr< face_sdk::image > &image)
Makes a video frame with specified frame_id, timestamp and image.
face_sdk::video_frame::frame_id
virtual uint64_t frame_id() const =0
Frame id.
export.h
Generated by
1.8.17