Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
H264Encoder.h
1#pragma once
2#include "encoder.hpp"
3
4#include <string>
5#include <vector>
6
8
9namespace video {
15public:
24 H264Encoder(int fps, int rf);
31
32private:
33 // A pointer to the h264encoder object that will process frames
35 // The frame rate of the video being encoded
36 int fps;
37 // the rf constant for rate control compression
38 int rf;
39};
40} // namespace video
std::vector< std::basic_string< uint8_t > > encode_frame(const cv::Mat &frame)
First frame will set the resolution and subsequent frames must match the resolution.
Definition H264Encoder.cpp:6
H264Encoder(int fps, int rf)
Uses the h264encoder library to encode webcam frames into encoded video data.
Definition H264Encoder.cpp:4