vdr 2.6.7
Classes | Macros | Functions
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/audio.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

Definition at line 1044 of file dvbhdffdevice.c.

Referenced by JpegCompressEmptyOutputBuffer(), and JpegCompressInitDestination().

Function Documentation

◆ JpegCompressEmptyOutputBuffer()

static boolean JpegCompressEmptyOutputBuffer ( j_compress_ptr cinfo)
static

Definition at line 1060 of file dvbhdffdevice.c.

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

Referenced by YuvToJpeg().

◆ JpegCompressInitDestination()

static void JpegCompressInitDestination ( j_compress_ptr cinfo)
static

Definition at line 1051 of file dvbhdffdevice.c.

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

Referenced by YuvToJpeg().

◆ JpegCompressTermDestination()

static void JpegCompressTermDestination ( j_compress_ptr cinfo)
static

Definition at line 1083 of file dvbhdffdevice.c.

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

Referenced by YuvToJpeg().

◆ MapAudioStreamTypes()

static HdffAudioStreamType_t MapAudioStreamTypes ( int Atype)
static

◆ MapVideoStreamTypes()

static HdffVideoStreamType_t MapVideoStreamTypes ( int Vtype)
static

◆ YuvToJpeg()

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