YARP
Yet Another Robot Platform
MjpegCarrier.cpp File Reference
#include "MjpegCarrier.h"
#include "MjpegLogComponent.h"
#include <cstdio>
#include <jpeglib.h>
#include <yarp/sig/Image.h>
#include <yarp/sig/ImageNetworkHeader.h>
#include <yarp/os/Name.h>
#include <yarp/os/Bytes.h>
#include <yarp/os/Route.h>
#include <yarp/wire_rep_utils/WireImage.h>
#include <map>
+ Include dependency graph for MjpegCarrier.cpp:

Go to the source code of this file.

Classes

struct  net_destination_mgr
 

Typedefs

using net_destination_ptr = net_destination_mgr *
 

Functions

void send_net_data (JOCTET *data, int len, void *client)
 
static void init_net_destination (j_compress_ptr cinfo)
 
static boolean empty_net_output_buffer (j_compress_ptr cinfo)
 
static void term_net_destination (j_compress_ptr cinfo)
 
void jpeg_net_dest (j_compress_ptr cinfo)
 

Variables

static const std::map< int, J_COLOR_SPACE > yarpCode2Mjpeg
 
static const std::map< int, int > yarpCode2Channels
 

Typedef Documentation

◆ net_destination_ptr

Definition at line 84 of file MjpegCarrier.cpp.

Function Documentation

◆ empty_net_output_buffer()

static boolean empty_net_output_buffer ( j_compress_ptr  cinfo)
static

Definition at line 123 of file MjpegCarrier.cpp.

◆ init_net_destination()

static void init_net_destination ( j_compress_ptr  cinfo)
static

Definition at line 114 of file MjpegCarrier.cpp.

◆ jpeg_net_dest()

void jpeg_net_dest ( j_compress_ptr  cinfo)

Definition at line 140 of file MjpegCarrier.cpp.

◆ send_net_data()

void send_net_data ( JOCTET *  data,
int  len,
void *  client 
)

Definition at line 86 of file MjpegCarrier.cpp.

◆ term_net_destination()

static void term_net_destination ( j_compress_ptr  cinfo)
static

Definition at line 133 of file MjpegCarrier.cpp.

Variable Documentation

◆ yarpCode2Channels

const std::map<int, int> yarpCode2Channels
static
Initial value:

Definition at line 67 of file MjpegCarrier.cpp.

◆ yarpCode2Mjpeg

const std::map<int, J_COLOR_SPACE> yarpCode2Mjpeg
static
Initial value:
{ {VOCAB_PIXEL_MONO, JCS_GRAYSCALE},
{VOCAB_PIXEL_MONO16, JCS_GRAYSCALE},
{VOCAB_PIXEL_RGB , JCS_RGB},
{VOCAB_PIXEL_RGBA , JCS_EXT_RGBA},
{VOCAB_PIXEL_BGRA , JCS_EXT_BGRA},
{VOCAB_PIXEL_BGR , JCS_EXT_BGR} }

Definition at line 60 of file MjpegCarrier.cpp.

VOCAB_PIXEL_RGBA
@ VOCAB_PIXEL_RGBA
Definition: Image.h:51
VOCAB_PIXEL_BGRA
@ VOCAB_PIXEL_BGRA
Definition: Image.h:52
VOCAB_PIXEL_MONO
@ VOCAB_PIXEL_MONO
Definition: Image.h:48
VOCAB_PIXEL_RGB
@ VOCAB_PIXEL_RGB
Definition: Image.h:50
VOCAB_PIXEL_MONO16
@ VOCAB_PIXEL_MONO16
Definition: Image.h:49
VOCAB_PIXEL_BGR
@ VOCAB_PIXEL_BGR
Definition: Image.h:55