#include <H264EncoderV4L2Helper.h>
|
| H264EncoderV4L2Helper (enum v4l2_memory memType, uint32_t pixelFormat, uint32_t width, uint32_t height, uint32_t step, uint32_t bitrate, bool enableMotionVectors, int motionVectorThreshold, uint32_t fps, std::string h264FrameOutputPinId, std::string motionVectorFramePinId, framemetadata_sp h264Metadata, std::function< frame_sp(size_t size, string &pinId)> makeFrame, SendFrameContainer sendFrameContainer) |
|
| ~H264EncoderV4L2Helper () |
|
void | stop () |
|
bool | process (frame_sp &frame) |
|
|
static std::shared_ptr< H264EncoderV4L2Helper > | create (enum v4l2_memory memType, uint32_t pixelFormat, uint32_t width, uint32_t height, uint32_t step, uint32_t bitrate, bool enableMotionVectors, int motionVectorThreshold, uint32_t fps, std::string h264FrameOutputPinId, std::string motionVectorFramePinId, framemetadata_sp h264Metadata, std::function< frame_sp(size_t size, string &pinId)> makeFrame, SendFrameContainer sendFrameContainer) |
|
◆ SendFrameContainer
◆ H264EncoderV4L2Helper()
H264EncoderV4L2Helper::H264EncoderV4L2Helper |
( |
enum v4l2_memory | memType, |
|
|
uint32_t | pixelFormat, |
|
|
uint32_t | width, |
|
|
uint32_t | height, |
|
|
uint32_t | step, |
|
|
uint32_t | bitrate, |
|
|
bool | enableMotionVectors, |
|
|
int | motionVectorThreshold, |
|
|
uint32_t | fps, |
|
|
std::string | h264FrameOutputPinId, |
|
|
std::string | motionVectorFramePinId, |
|
|
framemetadata_sp | h264Metadata, |
|
|
std::function< frame_sp(size_t size, string &pinId)> | makeFrame, |
|
|
SendFrameContainer | sendFrameContainer ) |
◆ ~H264EncoderV4L2Helper()
H264EncoderV4L2Helper::~H264EncoderV4L2Helper |
( |
| ) |
|
◆ capturePlaneDQCallback()
void H264EncoderV4L2Helper::capturePlaneDQCallback |
( |
AV4L2Buffer * | buffer | ) |
|
|
private |
◆ create()
std::shared_ptr< H264EncoderV4L2Helper > H264EncoderV4L2Helper::create |
( |
enum v4l2_memory | memType, |
|
|
uint32_t | pixelFormat, |
|
|
uint32_t | width, |
|
|
uint32_t | height, |
|
|
uint32_t | step, |
|
|
uint32_t | bitrate, |
|
|
bool | enableMotionVectors, |
|
|
int | motionVectorThreshold, |
|
|
uint32_t | fps, |
|
|
std::string | h264FrameOutputPinId, |
|
|
std::string | motionVectorFramePinId, |
|
|
framemetadata_sp | h264Metadata, |
|
|
std::function< frame_sp(size_t size, string &pinId)> | makeFrame, |
|
|
SendFrameContainer | sendFrameContainer ) |
|
static |
◆ enableMotionVectorReporting()
int H264EncoderV4L2Helper::enableMotionVectorReporting |
( |
| ) |
|
|
private |
◆ getExtControls()
int H264EncoderV4L2Helper::getExtControls |
( |
v4l2_ext_controls & | ctl | ) |
|
|
private |
◆ getMotionVectors()
int H264EncoderV4L2Helper::getMotionVectors |
( |
uint32_t | buffer_index, |
|
|
v4l2_ctrl_videoenc_outputbuf_metadata_MV & | enc_mv_metadata ) |
|
private |
◆ initEncoderParams()
void H264EncoderV4L2Helper::initEncoderParams |
( |
uint32_t | bitrate, |
|
|
uint32_t | fps ) |
|
private |
◆ initV4L2()
void H264EncoderV4L2Helper::initV4L2 |
( |
| ) |
|
|
private |
◆ process()
bool H264EncoderV4L2Helper::process |
( |
frame_sp & | frame | ) |
|
◆ processEOS()
bool H264EncoderV4L2Helper::processEOS |
( |
| ) |
|
|
private |
◆ reuseCatureBuffer()
◆ serializeMotionVectors()
void H264EncoderV4L2Helper::serializeMotionVectors |
( |
v4l2_ctrl_videoenc_outputbuf_metadata_MV | enc_mv_metadata, |
|
|
frame_container & | frames ) |
|
private |
◆ setBitrate()
void H264EncoderV4L2Helper::setBitrate |
( |
uint32_t | bitrate | ) |
|
|
private |
◆ setExtControls()
int H264EncoderV4L2Helper::setExtControls |
( |
v4l2_ext_control & | control | ) |
|
|
private |
◆ setExtControlsMV()
int H264EncoderV4L2Helper::setExtControlsMV |
( |
v4l2_ext_controls & | ctl | ) |
|
|
private |
◆ setFrameRate()
void H264EncoderV4L2Helper::setFrameRate |
( |
uint32_t | framerate_num, |
|
|
uint32_t | framerate_den ) |
|
private |
◆ setLevel()
void H264EncoderV4L2Helper::setLevel |
( |
| ) |
|
|
private |
◆ setProfile()
void H264EncoderV4L2Helper::setProfile |
( |
| ) |
|
|
private |
◆ setSelf()
◆ stop()
void H264EncoderV4L2Helper::stop |
( |
| ) |
|
◆ termV4L2()
void H264EncoderV4L2Helper::termV4L2 |
( |
| ) |
|
|
private |
◆ enableMotionVectors
bool H264EncoderV4L2Helper::enableMotionVectors |
|
private |
◆ frame_opool
boost::object_pool<ExtFrame> H264EncoderV4L2Helper::frame_opool |
|
private |
◆ h264FrameOutputPinId
std::string H264EncoderV4L2Helper::h264FrameOutputPinId |
|
private |
◆ h264Metadata
framemetadata_sp H264EncoderV4L2Helper::h264Metadata |
|
private |
◆ incomingTimeStamp
std::queue<uint64_t> H264EncoderV4L2Helper::incomingTimeStamp |
|
protected |
◆ makeFrame
std::function<frame_sp(size_t size, string& pinId)> H264EncoderV4L2Helper::makeFrame |
|
private |
◆ mCapturePlane
◆ mConverter
◆ mFD
int H264EncoderV4L2Helper::mFD |
|
private |
◆ mHeight
int H264EncoderV4L2Helper::mHeight = 0 |
|
private |
◆ motionVectorFramePinId
std::string H264EncoderV4L2Helper::motionVectorFramePinId |
|
private |
◆ motionVectorThreshold
int H264EncoderV4L2Helper::motionVectorThreshold |
|
private |
◆ mOutputPlane
◆ mSelf
◆ mSendFrameContainer
◆ mWidth
int H264EncoderV4L2Helper::mWidth = 0 |
|
private |
The documentation for this class was generated from the following files: