MythTV  master
Macros | Variables
RTjpegN.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "RTjpegN.h"
Include dependency graph for RTjpegN.cpp:

Go to the source code of this file.

Macros

#define BETTERCOMPRESSION   1
 
#define FIX_1_082392200   ((int32_t) 277) /* FIX(1.082392200) */
 
#define FIX_1_414213562   ((int32_t) 362) /* FIX(1.414213562) */
 
#define FIX_1_847759065   ((int32_t) 473) /* FIX(1.847759065) */
 
#define FIX_2_613125930   ((int32_t) 669) /* FIX(2.613125930) */
 
#define DESCALE(x)   (int16_t)( ((x)+4) >> 3)
 
#define RL(x)   ((x)>235) ? 235 : (((x)<16) ? 16 : (x))
 
#define MULTIPLY(var, const)   (((int32_t) ((var) * (const)) + 128)>>8)
 

Variables

static mmx_t RTjpeg_ones
 
static mmx_t RTjpeg_half
 
static mmx_t RTjpeg_C4
 
static mmx_t RTjpeg_C6
 
static mmx_t RTjpeg_C2mC6
 
static mmx_t RTjpeg_C2pC6
 
static mmx_t RTjpeg_zero
 
static const unsigned char RTjpeg_ZZ [64]
 
static const uint64_t RTjpeg_aan_tab [64]
 
static const unsigned char RTjpeg_lum_quant_tbl [64]
 
static const unsigned char RTjpeg_chrom_quant_tbl [64]
 

Macro Definition Documentation

◆ BETTERCOMPRESSION

#define BETTERCOMPRESSION   1

Definition at line 41 of file RTjpegN.cpp.

◆ FIX_1_082392200

#define FIX_1_082392200   ((int32_t) 277) /* FIX(1.082392200) */

Definition at line 1516 of file RTjpegN.cpp.

◆ FIX_1_414213562

#define FIX_1_414213562   ((int32_t) 362) /* FIX(1.414213562) */

Definition at line 1517 of file RTjpegN.cpp.

◆ FIX_1_847759065

#define FIX_1_847759065   ((int32_t) 473) /* FIX(1.847759065) */

Definition at line 1518 of file RTjpegN.cpp.

◆ FIX_2_613125930

#define FIX_2_613125930   ((int32_t) 669) /* FIX(2.613125930) */

Definition at line 1519 of file RTjpegN.cpp.

◆ DESCALE

#define DESCALE (   x)    (int16_t)( ((x)+4) >> 3)

Definition at line 1521 of file RTjpegN.cpp.

◆ RL

#define RL (   x)    ((x)>235) ? 235 : (((x)<16) ? 16 : (x))

Definition at line 1525 of file RTjpegN.cpp.

◆ MULTIPLY

#define MULTIPLY (   var,
  const 
)    (((int32_t) ((var) * (const)) + 128)>>8)

Definition at line 1526 of file RTjpegN.cpp.

Variable Documentation

◆ RTjpeg_ones

mmx_t RTjpeg_ones
static

Definition at line 31 of file RTjpegN.cpp.

Referenced by RTjpeg::Quant(), and RTjpeg::RTjpeg().

◆ RTjpeg_half

mmx_t RTjpeg_half
static

Definition at line 32 of file RTjpegN.cpp.

Referenced by RTjpeg::Quant(), and RTjpeg::RTjpeg().

◆ RTjpeg_C4

mmx_t RTjpeg_C4
static

Definition at line 33 of file RTjpegN.cpp.

Referenced by RTjpeg::DctY(), and RTjpeg::RTjpeg().

◆ RTjpeg_C6

mmx_t RTjpeg_C6
static

Definition at line 34 of file RTjpegN.cpp.

Referenced by RTjpeg::DctY(), and RTjpeg::RTjpeg().

◆ RTjpeg_C2mC6

mmx_t RTjpeg_C2mC6
static

Definition at line 35 of file RTjpegN.cpp.

Referenced by RTjpeg::DctY(), and RTjpeg::RTjpeg().

◆ RTjpeg_C2pC6

mmx_t RTjpeg_C2pC6
static

Definition at line 36 of file RTjpegN.cpp.

Referenced by RTjpeg::DctY(), and RTjpeg::RTjpeg().

◆ RTjpeg_zero

mmx_t RTjpeg_zero
static

Definition at line 37 of file RTjpegN.cpp.

Referenced by RTjpeg::DctY(), and RTjpeg::RTjpeg().

◆ RTjpeg_ZZ

const unsigned char RTjpeg_ZZ[64]
static
Initial value:
={
0,
8, 1,
2, 9, 16,
24, 17, 10, 3,
4, 11, 18, 25, 32,
40, 33, 26, 19, 12, 5,
6, 13, 20, 27, 34, 41, 48,
56, 49, 42, 35, 28, 21, 14, 7,
15, 22, 29, 36, 43, 50, 57,
58, 51, 44, 37, 30, 23,
31, 38, 45, 52, 59,
60, 53, 46, 39,
47, 54, 61,
62, 55,
63 }

Definition at line 43 of file RTjpegN.cpp.

Referenced by RTjpeg::b2s(), RTjpeg::CalcTbls(), and RTjpeg::s2b().

◆ RTjpeg_aan_tab

const uint64_t RTjpeg_aan_tab[64]
static
Initial value:
={
4294967296ULL, 5957222912ULL, 5611718144ULL, 5050464768ULL, 4294967296ULL, 3374581504ULL, 2324432128ULL, 1184891264ULL,
5957222912ULL, 8263040512ULL, 7783580160ULL, 7005009920ULL, 5957222912ULL, 4680582144ULL, 3224107520ULL, 1643641088ULL,
5611718144ULL, 7783580160ULL, 7331904512ULL, 6598688768ULL, 5611718144ULL, 4408998912ULL, 3036936960ULL, 1548224000ULL,
5050464768ULL, 7005009920ULL, 6598688768ULL, 5938608128ULL, 5050464768ULL, 3968072960ULL, 2733115392ULL, 1393296000ULL,
4294967296ULL, 5957222912ULL, 5611718144ULL, 5050464768ULL, 4294967296ULL, 3374581504ULL, 2324432128ULL, 1184891264ULL,
3374581504ULL, 4680582144ULL, 4408998912ULL, 3968072960ULL, 3374581504ULL, 2651326208ULL, 1826357504ULL, 931136000ULL,
2324432128ULL, 3224107520ULL, 3036936960ULL, 2733115392ULL, 2324432128ULL, 1826357504ULL, 1258030336ULL, 641204288ULL,
1184891264ULL, 1643641088ULL, 1548224000ULL, 1393296000ULL, 1184891264ULL, 931136000ULL, 641204288ULL, 326894240ULL,
}

Definition at line 60 of file RTjpegN.cpp.

Referenced by RTjpeg::DctInit(), and RTjpeg::IdctInit().

◆ RTjpeg_lum_quant_tbl

const unsigned char RTjpeg_lum_quant_tbl[64]
static
Initial value:
= {
16, 11, 10, 16, 24, 40, 51, 61,
12, 12, 14, 19, 26, 58, 60, 55,
14, 13, 16, 24, 40, 57, 69, 56,
14, 17, 22, 29, 51, 87, 80, 62,
18, 22, 37, 56, 68, 109, 103, 77,
24, 35, 55, 64, 81, 104, 113, 92,
49, 64, 78, 87, 103, 121, 120, 101,
72, 92, 95, 98, 112, 100, 103, 99
}

Definition at line 71 of file RTjpegN.cpp.

Referenced by RTjpeg::CalcTbls().

◆ RTjpeg_chrom_quant_tbl

const unsigned char RTjpeg_chrom_quant_tbl[64]
static
Initial value:
= {
17, 18, 24, 47, 99, 99, 99, 99,
18, 21, 26, 66, 99, 99, 99, 99,
24, 26, 56, 99, 99, 99, 99, 99,
47, 66, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 99, 99
}

Definition at line 82 of file RTjpegN.cpp.

Referenced by RTjpeg::CalcTbls().