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

Go to the source code of this file.

Macros

#define BETTERCOMPRESSION   1
 

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 std::array< const uint8_t, 64 > RTjpeg_ZZ
 
static const std::array< const uint64_t, 64 > RTjpeg_aan_tab
 
static const std::array< const uint8_t, 64 > RTjpeg_lum_quant_tbl
 
static const std::array< const uint8_t, 64 > RTjpeg_chrom_quant_tbl
 

Macro Definition Documentation

◆ BETTERCOMPRESSION

#define BETTERCOMPRESSION   1

Definition at line 47 of file RTjpegN.cpp.

Variable Documentation

◆ RTjpeg_ones

mmx_t RTjpeg_ones
static

Definition at line 37 of file RTjpegN.cpp.

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

◆ RTjpeg_half

mmx_t RTjpeg_half
static

Definition at line 38 of file RTjpegN.cpp.

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

◆ RTjpeg_C4

mmx_t RTjpeg_C4
static

Definition at line 39 of file RTjpegN.cpp.

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

◆ RTjpeg_C6

mmx_t RTjpeg_C6
static

Definition at line 40 of file RTjpegN.cpp.

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

◆ RTjpeg_C2mC6

mmx_t RTjpeg_C2mC6
static

Definition at line 41 of file RTjpegN.cpp.

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

◆ RTjpeg_C2pC6

mmx_t RTjpeg_C2pC6
static

Definition at line 42 of file RTjpegN.cpp.

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

◆ RTjpeg_zero

mmx_t RTjpeg_zero
static

Definition at line 43 of file RTjpegN.cpp.

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

◆ RTjpeg_ZZ

const std::array<const uint8_t,64> RTjpeg_ZZ
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 49 of file RTjpegN.cpp.

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

◆ RTjpeg_aan_tab

const std::array<const uint64_t,64> RTjpeg_aan_tab
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 66 of file RTjpegN.cpp.

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

◆ RTjpeg_lum_quant_tbl

const std::array<const uint8_t,64> RTjpeg_lum_quant_tbl
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 77 of file RTjpegN.cpp.

Referenced by RTjpeg::CalcTbls().

◆ RTjpeg_chrom_quant_tbl

const std::array<const uint8_t,64> RTjpeg_chrom_quant_tbl
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 88 of file RTjpegN.cpp.

Referenced by RTjpeg::CalcTbls().