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_CL_CODECS
 This vector contains the only accepted values for the command line parameter "codec".
 
static const std::string FFMPEGPORTMONITOR_CL_ENCODER_KEY = "encoder"
 This string is the "key" value for the custom encoder parameter.
 
static const std::string FFMPEGPORTMONITOR_CL_DECODER_KEY = "decoder"
 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_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 34 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_DECODER_KEY

const std::string FFMPEGPORTMONITOR_CL_DECODER_KEY = "decoder"
static

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

Definition at line 50 of file constants.h.

◆ FFMPEGPORTMONITOR_CL_ENCODER_KEY

const std::string FFMPEGPORTMONITOR_CL_ENCODER_KEY = "encoder"
static

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

Definition at line 44 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 62 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 56 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 68 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 74 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 96 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 84 of file constants.h.