#include <aws_common/sdk_utils/aws_error.h>
#include <gtest/gtest.h>
#include <h264_encoder_core/h264_encoder.h>
#include <math.h>
#include <array>
#include <map>
Go to the source code of this file.
Classes | |
class | TestParameterReader |
Functions | |
int | main (int argc, char **argv) |
static void | RainbowColor (const float h, uint8_t &r_out, uint8_t &g_out, uint8_t &b_out) |
TEST (H264EncoderCoreSuite, InitWithEmptyParamServer) | |
TEST (H264EncoderCoreSuite, InitWithFullParamServer) | |
TEST (H264EncoderCoreSuite, InitWithInvalidParamServer) | |
TEST (H264EncoderCoreSuite, Encode) | |
Variables | |
constexpr int | kBytesPerPixel = 3 |
constexpr int | kDefaultBitrate = 2048000 |
constexpr char | kDefaultCodec [] = "libx264" |
constexpr int | kDefaultDstHeight = 924 |
constexpr int | kDefaultDstWidth = 1230 |
constexpr int | kDefaultFpsDenominator = 1 |
constexpr int | kDefaultFpsNumerator = 30 |
constexpr AVPixelFormat | kDefaultSrcEncoding = AV_PIX_FMT_RGB24 |
constexpr int | kDefaultSrcHeight = 308 |
constexpr int | kDefaultSrcWidth = 410 |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 389 of file h264_encoder_test.cpp.
|
static |
Definition at line 289 of file h264_encoder_test.cpp.
TEST | ( | H264EncoderCoreSuite | , |
InitWithEmptyParamServer | |||
) |
Tests the creation, initialization, and destruction of the H264 Encoder with empty parameter server
Definition at line 128 of file h264_encoder_test.cpp.
TEST | ( | H264EncoderCoreSuite | , |
InitWithFullParamServer | |||
) |
Tests the creation, initialization, and destruction of the H264 Encoder with valid parameters
Definition at line 144 of file h264_encoder_test.cpp.
TEST | ( | H264EncoderCoreSuite | , |
InitWithInvalidParamServer | |||
) |
Tests the creation, initialization, and destruction of the H264 Encoder with invalid parameters
Definition at line 161 of file h264_encoder_test.cpp.
TEST | ( | H264EncoderCoreSuite | , |
Encode | |||
) |
Tests the creation, initialization, and destruction of the H264 Encoder with valid parameters
Definition at line 338 of file h264_encoder_test.cpp.
constexpr int kBytesPerPixel = 3 |
Definition at line 31 of file h264_encoder_test.cpp.
constexpr int kDefaultBitrate = 2048000 |
Definition at line 36 of file h264_encoder_test.cpp.
constexpr char kDefaultCodec[] = "libx264" |
Definition at line 37 of file h264_encoder_test.cpp.
constexpr int kDefaultDstHeight = 924 |
Definition at line 33 of file h264_encoder_test.cpp.
constexpr int kDefaultDstWidth = 1230 |
Definition at line 32 of file h264_encoder_test.cpp.
constexpr int kDefaultFpsDenominator = 1 |
Definition at line 35 of file h264_encoder_test.cpp.
constexpr int kDefaultFpsNumerator = 30 |
Definition at line 34 of file h264_encoder_test.cpp.
constexpr AVPixelFormat kDefaultSrcEncoding = AV_PIX_FMT_RGB24 |
Definition at line 30 of file h264_encoder_test.cpp.
constexpr int kDefaultSrcHeight = 308 |
Definition at line 29 of file h264_encoder_test.cpp.
constexpr int kDefaultSrcWidth = 410 |
Definition at line 28 of file h264_encoder_test.cpp.