This package has definitions for ROS2 messages of the
ffmpeg image transport.
See the ffmpeg_encoder_decoder package
for more details about the encoding and decoding process, and the meaning
of the encoding message field.
The encoding message field is a string with semicolon-separated tokens that
indicate the codec (first token) and the image formats used at various stages of the
encoding process: codec;av_source_pixel_format;cv_bridge_target_format;ros_encoding.
ros_encodingis the pixel format used by the original ROS message that was passed to theffmpeg_encoder_decodermodule, e.g.bgr8. This token allows the decoder later to restore the original message format if desired.cv_bridge_target_formatis the pixel format that the cv_bridge converts theros_encodinginto. This is typically a format that is more suited for ffmpeg compression.av_source_pixel_formatis the pixel format that libswscale converts thecv_bridge_target_formatinto. This token uses libav convention (e.g.yuv420p), and denotes the pixel format that is fed into the libav encoder.codecis the codec used for ultimately encoding the packet, e.g.h264,hevcetc. Follows libav convention.
The encoding process is best understood by looking at the ffmpeg_encoder_decoder documentation.
This package is released under the Apache-2 license.