Classes | Namespaces | Functions | Variables
h264_video_encoder_test.cpp File Reference
#include <aws_ros1_common/sdk_utils/ros1_node_parameter_reader.h>
#include <aws/core/utils/logging/AWSLogging.h>
#include <aws/core/utils/logging/LogMacros.h>
#include <gtest/gtest.h>
#include <h264_encoder_core/h264_encoder.h>
#include <h264_encoder_core/h264_encoder_node_config.h>
#include <image_transport/image_transport.h>
#include <kinesis_video_msgs/KinesisImageMetadata.h>
#include <kinesis_video_msgs/KinesisVideoFrame.h>
#include <ros/ros.h>
#include <sensor_msgs/image_encodings.h>
Include dependency graph for h264_video_encoder_test.cpp:

Go to the source code of this file.

Classes

class  H264EncoderNodeSuite
 

Namespaces

 Aws
 
 Aws::Kinesis
 

Functions

void CreateImageMsg (sensor_msgs::ImagePtr &msg, int frame_num)
 
void Aws::Kinesis::ImageCallback (const sensor_msgs::ImageConstPtr &msg, const H264Encoder *encoder, uint64_t &frame_num, kinesis_video_msgs::KinesisImageMetadata &metadata, ros::Publisher &pub)
 
void Aws::Kinesis::InitializeCommunication (ros::NodeHandle &nh, ros::Subscriber &metadata_sub, image_transport::Subscriber &image_sub, ros::Publisher &pub, std::unique_ptr< H264Encoder > &encoder, uint64_t &frame_num, kinesis_video_msgs::KinesisImageMetadata &metadata, Aws::Client::Ros1NodeParameterReader &param_reader)
 
void Aws::Kinesis::InitializeEncoder (const sensor_msgs::ImageConstPtr &msg, std::unique_ptr< H264Encoder > &encoder, const Aws::Client::ParameterReaderInterface &param_reader)
 
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_F (H264EncoderNodeSuite, EncoderInit)
 
 TEST_F (H264EncoderNodeSuite, EncoderCallback)
 
 TEST_F (H264EncoderNodeSuite, InitializeCommunicaiton)
 

Variables

static constexpr int kBytesPerPixel = 3
 
static constexpr int kDefaultHeight = 308
 
static constexpr char kDefaultMetadataTopicName [] = "/image_metadata"
 
static constexpr char kDefaultPublicationTopicName [] = "/video/encoded"
 
static constexpr char kDefaultSubscriptionTopicName [] = "/raspicam_node/image"
 
static constexpr int kDefaultWidth = 410
 
constexpr int kNumTestFrames = 30
 

Function Documentation

void CreateImageMsg ( sensor_msgs::ImagePtr &  msg,
int  frame_num 
)

Definition at line 177 of file h264_video_encoder_test.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 285 of file h264_video_encoder_test.cpp.

static void RainbowColor ( const float  h,
uint8_t &  r_out,
uint8_t &  g_out,
uint8_t &  b_out 
)
static

Definition at line 131 of file h264_video_encoder_test.cpp.

TEST_F ( H264EncoderNodeSuite  ,
EncoderInit   
)

Tests the callback of the H264 Encoder Node that performs the initialization

Definition at line 120 of file h264_video_encoder_test.cpp.

TEST_F ( H264EncoderNodeSuite  ,
EncoderCallback   
)

Tests the callback of the H264 Encoder Node that performs the encoding

Definition at line 198 of file h264_video_encoder_test.cpp.

TEST_F ( H264EncoderNodeSuite  ,
InitializeCommunicaiton   
)

Tests that InitializeCommunicaiton sets up the correct subscribers and publisher

Definition at line 239 of file h264_video_encoder_test.cpp.

Variable Documentation

constexpr int kBytesPerPixel = 3
static

Definition at line 64 of file h264_video_encoder_test.cpp.

constexpr int kDefaultHeight = 308
static

Definition at line 63 of file h264_video_encoder_test.cpp.

constexpr char kDefaultMetadataTopicName[] = "/image_metadata"
static

Definition at line 61 of file h264_video_encoder_test.cpp.

constexpr char kDefaultPublicationTopicName[] = "/video/encoded"
static

Definition at line 59 of file h264_video_encoder_test.cpp.

constexpr char kDefaultSubscriptionTopicName[] = "/raspicam_node/image"
static

Definition at line 60 of file h264_video_encoder_test.cpp.

constexpr int kDefaultWidth = 410
static

Definition at line 62 of file h264_video_encoder_test.cpp.

constexpr int kNumTestFrames = 30

Definition at line 65 of file h264_video_encoder_test.cpp.



h264_video_encoder
Author(s): AWS RoboMaker
autogenerated on Thu Mar 4 2021 03:33:17