#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< H264EncoderImpl > | impl_ |
Definition at line 58 of file h264_encoder.h.
| 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.
| AwsError Aws::Utils::Encoding::H264Encoder::Encode | ( | const uint8_t * | img_data, |
| H264EncoderResult & | res | ||
| ) | const |
Encode one frame
| img_data | frame 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)
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
| src_width | the width of the source video stream |
| src_height | the height of the source video stream |
| src_encoding | the encoding of the source video stream |
| dst_params | parameter reader used for reading the desired configuration of the encoder output |
Definition at line 334 of file h264_encoder.cpp.
|
private |
Definition at line 91 of file h264_encoder.h.