YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
constants.h File Reference

File containing constans used in FfmpegPortmonitor.cpp. More...

#include <string>
#include <vector>
#include <map>
#include <libavcodec/avcodec.h>
#include <yarp/sig/Image.h>
+ Include dependency graph for constants.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

static const std::vector< std::string > FFMPEGPORTMONITOR_IGNORE_PARAMS
 This vector contains all parameters that have to be ignored while parsing command line string.
 
static const std::string FFMPEGPORTMONITOR_CL_CODEC_KEY = "codec"
 This string is the "key" value for the codec parameter.
 
static const std::vector< std::string > FFMPEGPORTMONITOR_CL_CODECS
 This vector contains the only accepted values for the command line parameter "codec".
 
static const std::string FFMPEGPORTMONITOR_CL_CUSTOM_ENC_KEY = "custom_enc"
 This string is the "key" value for the custom encoder parameter.
 
static const std::string FFMPEGPORTMONITOR_CL_CUSTOM_DEC_KEY = "custom_dec"
 This string is the "key" value for the custom decoder parameter.
 
static const std::string FFMPEGPORTMONITOR_CL_PIXEL_FORMAT_KEY = "pixel_format"
 This string is the "key" value for the pixel format parameter.
 
static const std::string FFMPEGPORTMONITOR_CL_FRAME_RATE_KEY = "frame_rate"
 This string is the "key" value for the frame rate parameter.
 
static const std::string FFMPEGPORTMONITOR_CL_PRINT_STATISTICS_KEY = "print_statistics"
 This string is the "key" value to enable the print statistics.
 
static const std::vector< int > FFMPEGPORTMONITOR_CODE_CODECS
 This vector contains the codec ids corresponding to the codecs of the FFMPEGPORTMONITOR_CL_CODECS vector.
 
static std::map< int, int > FFMPEGPORTMONITOR_PIXELMAP
 This structure maps YARP pixel format codec into Ffmpeg pixel format codes.
 
static AVPixelFormat FFMPEGPORTMONITOR_DEFAULT_PIXEL_FORMAT = AV_PIX_FMT_YUV420P
 Default pixel format to be used within ffmpeg.
 

Detailed Description

File containing constans used in FfmpegPortmonitor.cpp.

Author
Giulia Martino, Fabio Valla
Version
1.0
Date
2021-01-04

Definition in file constants.h.

Variable Documentation

◆ FFMPEGPORTMONITOR_CL_CODEC_KEY

const std::string FFMPEGPORTMONITOR_CL_CODEC_KEY = "codec"
static

This string is the "key" value for the codec parameter.

Definition at line 48 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_CODECS

const std::vector<std::string> FFMPEGPORTMONITOR_CL_CODECS
static
Initial value:
{
"mpeg2video",
"h264",
"h265"
}

This vector contains the only accepted values for the command line parameter "codec".

Definition at line 54 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_CUSTOM_DEC_KEY

const std::string FFMPEGPORTMONITOR_CL_CUSTOM_DEC_KEY = "custom_dec"
static

This string is the "key" value for the custom decoder parameter.

Definition at line 70 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_CUSTOM_ENC_KEY

const std::string FFMPEGPORTMONITOR_CL_CUSTOM_ENC_KEY = "custom_enc"
static

This string is the "key" value for the custom encoder parameter.

Definition at line 64 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_FRAME_RATE_KEY

const std::string FFMPEGPORTMONITOR_CL_FRAME_RATE_KEY = "frame_rate"
static

This string is the "key" value for the frame rate parameter.

Definition at line 82 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_PIXEL_FORMAT_KEY

const std::string FFMPEGPORTMONITOR_CL_PIXEL_FORMAT_KEY = "pixel_format"
static

This string is the "key" value for the pixel format parameter.

Definition at line 76 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_PRINT_STATISTICS_KEY

const std::string FFMPEGPORTMONITOR_CL_PRINT_STATISTICS_KEY = "print_statistics"
static

This string is the "key" value to enable the print statistics.

Definition at line 88 of file constants.h.

◆ FFMPEGPORTMONITOR_CODE_CODECS

const std::vector<int> FFMPEGPORTMONITOR_CODE_CODECS
static
Initial value:
{
AV_CODEC_ID_MPEG2VIDEO,
AV_CODEC_ID_H264,
AV_CODEC_ID_H265
}

This vector contains the codec ids corresponding to the codecs of the FFMPEGPORTMONITOR_CL_CODECS vector.

Definition at line 94 of file constants.h.

◆ FFMPEGPORTMONITOR_DEFAULT_PIXEL_FORMAT

AVPixelFormat FFMPEGPORTMONITOR_DEFAULT_PIXEL_FORMAT = AV_PIX_FMT_YUV420P
static

Default pixel format to be used within ffmpeg.

Definition at line 116 of file constants.h.

◆ FFMPEGPORTMONITOR_IGNORE_PARAMS

const std::vector<std::string> FFMPEGPORTMONITOR_IGNORE_PARAMS
static
Initial value:
{
"tcp",
"fast_tcp",
"udp",
"send.portmonitor",
"recv.portmonitor",
"file.image_compression_ffmpeg",
"type.dll"
}

This vector contains all parameters that have to be ignored while parsing command line string.

Definition at line 34 of file constants.h.

◆ FFMPEGPORTMONITOR_PIXELMAP

std::map<int, int> FFMPEGPORTMONITOR_PIXELMAP
static
Initial value:
= {
{ VOCAB_PIXEL_RGB, AV_PIX_FMT_RGB24 },
{ VOCAB_PIXEL_RGBA, AV_PIX_FMT_RGBA },
{ VOCAB_PIXEL_BGR, AV_PIX_FMT_BGR24 },
{ VOCAB_PIXEL_BGRA, AV_PIX_FMT_BGRA },
{ VOCAB_PIXEL_YUV_420, AV_PIX_FMT_YUV420P }
}
@ VOCAB_PIXEL_YUV_420
Definition Image.h:64
@ VOCAB_PIXEL_RGBA
Definition Image.h:45
@ VOCAB_PIXEL_BGRA
Definition Image.h:46
@ VOCAB_PIXEL_BGR
Definition Image.h:49
@ VOCAB_PIXEL_RGB
Definition Image.h:44

This structure maps YARP pixel format codec into Ffmpeg pixel format codes.

Definition at line 104 of file constants.h.