MythTV
master
|
#include <RTjpegN.h>
Public Member Functions | |
RTjpeg () | |
~RTjpeg () | |
int | SetQuality (int *quality) |
int | SetFormat (const int *fmt) |
int | SetSize (const int *w, const int *h) |
int | SetIntra (int *key, int *lm, int *cm) |
int | Compress (int8_t *sp, uint8_t **planes) |
void | Decompress (int8_t *sp, uint8_t **planes) |
void | SetNextKey (void) |
Private Member Functions | |
void | QuantInit (void) |
void | DctInit (void) |
void | DctY (uint8_t *idata, int rskip) |
void | IdctInit (void) |
void | Idct (uint8_t *odata, RTjpegData16 &data, int rskip) |
void | CalcTbls (void) |
int | compressYUV420 (int8_t *sp, uint8_t **planes) |
int | compressYUV422 (int8_t *sp, uint8_t **planes) |
int | compress8 (int8_t *sp, uint8_t **planes) |
int | mcompressYUV420 (int8_t *sp, uint8_t **planes) |
int | mcompressYUV422 (int8_t *sp, uint8_t **planes) |
int | mcompress8 (int8_t *sp, uint8_t **planes) |
void | decompressYUV422 (int8_t *sp, uint8_t **planes) |
void | decompressYUV420 (int8_t *sp, uint8_t **planes) |
void | decompress8 (int8_t *sp, uint8_t **planes) |
Static Private Member Functions | |
static int | b2s (const RTjpegData16 &data, int8_t *strm, uint8_t bt8) |
static int | s2b (RTjpegData16 &data, const int8_t *strm, uint8_t bt8, RTjpegData32 &qtbla) |
static void | Quant (RTjpegData16 &block, RTjpegData32 &qtbl) |
static int | bcomp (RTjpegData16 &rblock, int16_t *old, mmx_t *mask) |
Private Attributes | |
RTjpegData16 | m_block {0} |
std::array< int32_t, 64_UZ *4 > | m_ws {0} |
RTjpegData32 | m_lqt {0} |
RTjpegData32 | m_cqt {0} |
RTjpegData32 | m_liqt {0} |
RTjpegData32 | m_ciqt {0} |
int32_t | m_lB8 {0} |
int32_t | m_cB8 {0} |
int32_t | m_yWidth {0} |
int32_t | m_cWidth {0} |
int32_t | m_ySize {0} |
int32_t | m_cSize {0} |
int16_t * | m_old {nullptr} |
int16_t * | m_oldStart {nullptr} |
int | m_keyCount {0} |
int | m_width {0} |
int | m_height {0} |
int | m_q {0} |
int | m_f {0} |
mmx_t | m_lMask {} |
mmx_t | m_cMask {} |
int | m_keyRate {0} |
RTjpeg::RTjpeg | ( | ) |
Definition at line 2775 of file RTjpegN.cpp.
RTjpeg::~RTjpeg | ( | ) |
Definition at line 2788 of file RTjpegN.cpp.
int RTjpeg::SetQuality | ( | int * | quality | ) |
Definition at line 2675 of file RTjpegN.cpp.
Referenced by Decompress(), and NuppelVideoRecorder::SetupRTjpeg().
int RTjpeg::SetFormat | ( | const int * | fmt | ) |
Definition at line 2692 of file RTjpegN.cpp.
Referenced by NuppelVideoRecorder::SetupRTjpeg().
int RTjpeg::SetSize | ( | const int * | w, |
const int * | h | ||
) |
Definition at line 2698 of file RTjpegN.cpp.
Referenced by Decompress(), and NuppelVideoRecorder::SetupRTjpeg().
int RTjpeg::SetIntra | ( | int * | key, |
int * | lm, | ||
int * | cm | ||
) |
Definition at line 2733 of file RTjpegN.cpp.
Referenced by NuppelVideoRecorder::SetupRTjpeg().
int RTjpeg::Compress | ( | int8_t * | sp, |
uint8_t ** | planes | ||
) |
Definition at line 3278 of file RTjpegN.cpp.
Referenced by NuppelVideoRecorder::WriteVideo().
void RTjpeg::Decompress | ( | int8_t * | sp, |
uint8_t ** | planes | ||
) |
Definition at line 3315 of file RTjpegN.cpp.
void RTjpeg::SetNextKey | ( | void | ) |
Definition at line 3273 of file RTjpegN.cpp.
Referenced by NuppelVideoRecorder::WriteVideo().
|
staticprivate |
Definition at line 116 of file RTjpegN.cpp.
Referenced by compress8(), compressYUV420(), compressYUV422(), mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
staticprivate |
Definition at line 284 of file RTjpegN.cpp.
Referenced by decompress8(), decompressYUV420(), and decompressYUV422().
|
private |
Definition at line 518 of file RTjpegN.cpp.
Referenced by SetQuality().
|
staticprivate |
Definition at line 533 of file RTjpegN.cpp.
Referenced by compress8(), compressYUV420(), compressYUV422(), mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
private |
Definition at line 593 of file RTjpegN.cpp.
Referenced by SetQuality().
|
private |
Definition at line 602 of file RTjpegN.cpp.
Referenced by compress8(), compressYUV420(), compressYUV422(), mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
private |
Definition at line 1517 of file RTjpegN.cpp.
Referenced by SetQuality().
|
private |
Definition at line 1526 of file RTjpegN.cpp.
Referenced by decompress8(), decompressYUV420(), and decompressYUV422().
|
inlineprivate |
Definition at line 2644 of file RTjpegN.cpp.
Referenced by SetQuality().
|
inlineprivate |
Definition at line 2793 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 2844 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 2887 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 3106 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 3188 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 3247 of file RTjpegN.cpp.
Referenced by Compress().
|
inlineprivate |
Definition at line 2915 of file RTjpegN.cpp.
Referenced by Decompress().
|
inlineprivate |
Definition at line 2963 of file RTjpegN.cpp.
Referenced by Decompress().
|
inlineprivate |
Definition at line 3025 of file RTjpegN.cpp.
Referenced by Decompress().
|
staticprivate |
Definition at line 3051 of file RTjpegN.cpp.
Referenced by mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
private |
Definition at line 102 of file RTjpegN.h.
Referenced by compress8(), compressYUV420(), compressYUV422(), DctY(), decompress8(), decompressYUV420(), decompressYUV422(), mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
private |
|
private |
Definition at line 104 of file RTjpegN.h.
Referenced by CalcTbls(), compress8(), compressYUV420(), compressYUV422(), DctInit(), mcompress8(), mcompressYUV420(), mcompressYUV422(), and QuantInit().
|
private |
Definition at line 105 of file RTjpegN.h.
Referenced by CalcTbls(), compressYUV420(), compressYUV422(), DctInit(), mcompressYUV420(), mcompressYUV422(), and QuantInit().
|
private |
Definition at line 106 of file RTjpegN.h.
Referenced by CalcTbls(), decompress8(), decompressYUV420(), decompressYUV422(), and IdctInit().
|
private |
Definition at line 107 of file RTjpegN.h.
Referenced by CalcTbls(), decompressYUV420(), decompressYUV422(), and IdctInit().
|
private |
Definition at line 108 of file RTjpegN.h.
Referenced by CalcTbls(), compress8(), compressYUV420(), compressYUV422(), decompress8(), decompressYUV420(), decompressYUV422(), mcompress8(), mcompressYUV420(), and mcompressYUV422().
|
private |
Definition at line 109 of file RTjpegN.h.
Referenced by CalcTbls(), compressYUV420(), compressYUV422(), decompressYUV420(), decompressYUV422(), mcompressYUV420(), and mcompressYUV422().
|
private |
Definition at line 110 of file RTjpegN.h.
Referenced by compressYUV420(), compressYUV422(), mcompressYUV420(), mcompressYUV422(), and SetSize().
|
private |
Definition at line 111 of file RTjpegN.h.
Referenced by compressYUV420(), compressYUV422(), mcompressYUV420(), mcompressYUV422(), and SetSize().
|
private |
|
private |
|
private |
Definition at line 114 of file RTjpegN.h.
Referenced by Compress(), mcompress8(), mcompressYUV420(), mcompressYUV422(), SetIntra(), and SetSize().
|
private |
Definition at line 115 of file RTjpegN.h.
Referenced by SetIntra(), SetSize(), and ~RTjpeg().
|
private |
Definition at line 116 of file RTjpegN.h.
Referenced by Compress(), and SetNextKey().
|
private |
Definition at line 118 of file RTjpegN.h.
Referenced by Compress(), compress8(), compressYUV420(), compressYUV422(), Decompress(), decompress8(), decompressYUV420(), decompressYUV422(), mcompress8(), mcompressYUV420(), mcompressYUV422(), SetIntra(), and SetSize().
|
private |
Definition at line 119 of file RTjpegN.h.
Referenced by Compress(), compress8(), compressYUV420(), compressYUV422(), Decompress(), decompress8(), decompressYUV420(), decompressYUV422(), mcompress8(), mcompressYUV420(), mcompressYUV422(), SetIntra(), and SetSize().
|
private |
Definition at line 120 of file RTjpegN.h.
Referenced by CalcTbls(), Compress(), Decompress(), and SetQuality().
|
private |
Definition at line 121 of file RTjpegN.h.
Referenced by Compress(), Decompress(), and SetFormat().
|
private |
Definition at line 123 of file RTjpegN.h.
Referenced by mcompress8(), mcompressYUV420(), mcompressYUV422(), and SetIntra().
|
private |
Definition at line 124 of file RTjpegN.h.
Referenced by mcompressYUV420(), mcompressYUV422(), and SetIntra().
|
private |
Definition at line 129 of file RTjpegN.h.
Referenced by Compress(), SetIntra(), and SetSize().