Public Member Functions | Private Attributes | List of all members
Aws::Utils::Encoding::H264Encoder Class Reference

#include <h264_encoder.h>

Public Member Functions

AwsError Encode (const uint8_t *img_data, H264EncoderResult &res) const
 
std::vector< uint8_t > GetExtraData () const
 
 H264Encoder ()
 
AwsError Initialize (const int src_width, const int src_height, const AVPixelFormat src_encoding, const Aws::Client::ParameterReaderInterface &dst_params)
 
 ~H264Encoder ()
 

Private Attributes

std::unique_ptr< H264EncoderImplimpl_
 

Detailed Description

Definition at line 58 of file h264_encoder.h.

Constructor & Destructor Documentation

Aws::Utils::Encoding::H264Encoder::H264Encoder ( )

Definition at line 330 of file h264_encoder.cpp.

Aws::Utils::Encoding::H264Encoder::~H264Encoder ( )

Definition at line 332 of file h264_encoder.cpp.

Member Function Documentation

AwsError Aws::Utils::Encoding::H264Encoder::Encode ( const uint8_t *  img_data,
H264EncoderResult res 
) const

Encode one frame

Parameters
img_dataframe data
Returns
resulting struct containing H264 encoded data

Definition at line 367 of file h264_encoder.cpp.

std::vector< uint8_t > Aws::Utils::Encoding::H264Encoder::GetExtraData ( ) const

Get the extra data from the FFmpeg encoder (get "codec private data" from here)

Returns
vector containing the extra data

Definition at line 372 of file h264_encoder.cpp.

AwsError Aws::Utils::Encoding::H264Encoder::Initialize ( const int  src_width,
const int  src_height,
const AVPixelFormat  src_encoding,
const Aws::Client::ParameterReaderInterface dst_params 
)

Initialize the H264Encoder instance

Parameters
src_widththe width of the source video stream
src_heightthe height of the source video stream
src_encodingthe encoding of the source video stream
dst_paramsparameter reader used for reading the desired configuration of the encoder output
Returns
AWS_ERR_OK if initialization was successful

Definition at line 334 of file h264_encoder.cpp.

Member Data Documentation

std::unique_ptr<H264EncoderImpl> Aws::Utils::Encoding::H264Encoder::impl_
private

Definition at line 91 of file h264_encoder.h.


The documentation for this class was generated from the following files:


h264_encoder_core
Author(s): AWS RoboMaker
autogenerated on Fri Mar 5 2021 03:31:35