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 81 of file MjpegCarrier.cpp.

Function Documentation

◆ empty_net_output_buffer()

static boolean empty_net_output_buffer ( j_compress_ptr  cinfo)
static

Definition at line 120 of file MjpegCarrier.cpp.

◆ init_net_destination()

static void init_net_destination ( j_compress_ptr  cinfo)
static

Definition at line 111 of file MjpegCarrier.cpp.

◆ jpeg_net_dest()

void jpeg_net_dest ( j_compress_ptr  cinfo)

Definition at line 137 of file MjpegCarrier.cpp.

◆ send_net_data()

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

Definition at line 83 of file MjpegCarrier.cpp.

◆ term_net_destination()

static void term_net_destination ( j_compress_ptr  cinfo)
static

Definition at line 130 of file MjpegCarrier.cpp.

Variable Documentation

◆ yarpCode2Channels

const std::map<int, int> yarpCode2Channels
static
Initial value:
@ VOCAB_PIXEL_RGBA
Definition: Image.h:45
@ VOCAB_PIXEL_MONO16
Definition: Image.h:43
@ VOCAB_PIXEL_BGRA
Definition: Image.h:46
@ VOCAB_PIXEL_BGR
Definition: Image.h:49
@ VOCAB_PIXEL_MONO
Definition: Image.h:42
@ VOCAB_PIXEL_RGB
Definition: Image.h:44

Definition at line 64 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 57 of file MjpegCarrier.cpp.