vdr 2.7.5
dvbhdffdevice.c File Reference
#include <stdint.h>
#include "dvbhdffdevice.h"
#include <errno.h>
#include <limits.h>
#include <libsi/si.h>
#include <linux/videodev2.h>
#include <linux/dvb/dmx.h>
#include <linux/dvb/video.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <vdr/eitscan.h>
#include <vdr/transfer.h>
#include "hdffosd.h"
#include "setup.h"
#include <jpeglib.h>

Go to the source code of this file.

Classes

struct  tJpegCompressData

Macros

#define BUFFER_SIZE   (sizeof(struct v4l2_pix_format) + 1920 * 1080 * 2)
#define JPEGCOMPRESSMEM   4000000

Functions

static ucharYuvToJpeg (uchar *Mem, int Width, int Height, int &Size, int Quality)
static HdffVideoStreamType_t MapVideoStreamTypes (int Vtype)
static HdffAudioStreamType_t MapAudioStreamTypes (int Atype)
static void JpegCompressInitDestination (j_compress_ptr cinfo)
static boolean JpegCompressEmptyOutputBuffer (j_compress_ptr cinfo)
static void JpegCompressTermDestination (j_compress_ptr cinfo)

Macro Definition Documentation

◆ BUFFER_SIZE

#define BUFFER_SIZE   (sizeof(struct v4l2_pix_format) + 1920 * 1080 * 2)

◆ JPEGCOMPRESSMEM

#define JPEGCOMPRESSMEM   4000000

Function Documentation

◆ JpegCompressEmptyOutputBuffer()

boolean JpegCompressEmptyOutputBuffer ( j_compress_ptr cinfo)
static

Definition at line 1059 of file dvbhdffdevice.c.

References esyslog, JPEGCOMPRESSMEM, tJpegCompressData::mem, and tJpegCompressData::size.

Referenced by RgbToJpeg(), and YuvToJpeg().

◆ JpegCompressInitDestination()

void JpegCompressInitDestination ( j_compress_ptr cinfo)
static

Definition at line 1050 of file dvbhdffdevice.c.

References JPEGCOMPRESSMEM, MALLOC, tJpegCompressData::mem, and tJpegCompressData::size.

Referenced by RgbToJpeg(), and YuvToJpeg().

◆ JpegCompressTermDestination()

void JpegCompressTermDestination ( j_compress_ptr cinfo)
static

Definition at line 1082 of file dvbhdffdevice.c.

References esyslog, tJpegCompressData::mem, and tJpegCompressData::size.

Referenced by RgbToJpeg(), and YuvToJpeg().

◆ MapAudioStreamTypes()

◆ MapVideoStreamTypes()

HdffVideoStreamType_t MapVideoStreamTypes ( int Vtype)
static

◆ YuvToJpeg()

uchar * YuvToJpeg ( uchar * Mem,
int Width,
int Height,
int & Size,
int Quality )
static