TTKMusicPlayer
4.2.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
The class of the krc to lrc. More...
#include <musiclrcparser.h>
Public Member Functions | |
MusicLrcFromKrc () | |
~MusicLrcFromKrc () | |
virtual bool | decode (const QString &input) overridefinal |
bool | decode (const QString &input, const QString &output) |
![]() | |
virtual | ~MusicLrcFromInterface ()=default |
const QByteArray & | data () const noexcept |
Protected Member Functions | |
int | sncasecmp (char *s1, char *s2, size_t n) |
int | decompression (uchar *src, size_t srcsize, size_t *dstsize) |
int | isfilter (char *tok) |
void | createLrc (uchar *lrc, int lrclen) |
Protected Attributes | |
uchar * | m_resultBytes |
![]() | |
QByteArray | m_data |
The class of the krc to lrc.
Definition at line 69 of file musiclrcparser.h.
MusicLrcFromKrc::MusicLrcFromKrc | ( | ) |
Object constructor.
Definition at line 37 of file musiclrcparser.cpp.
MusicLrcFromKrc::~MusicLrcFromKrc | ( | ) |
|
protected |
Create lrc by input data and length.
Definition at line 187 of file musiclrcparser.cpp.
References isfilter(), MusicLrcFromInterface::m_data, TTK_DN_H2MS, TTK_DN_M2MS, and TTK_DN_S2MS.
Referenced by decode().
|
finaloverridevirtual |
Decode file to lrc by input file.
Implements MusicLrcFromInterface.
Definition at line 49 of file musiclrcparser.cpp.
Referenced by MusicLrcAnalysis::loadFromFile(), and MusicTransformWidget::processTransform().
Decode krc file to lrc by input file and output file.
Definition at line 54 of file musiclrcparser.cpp.
References createLrc(), decompression(), key, MusicLrcFromInterface::m_data, m_resultBytes, qPrintable, QtNamespace, TTK_ERROR_STREAM, and TTKStaticCast.
|
protected |
Decompress the krc file data to normal data.
Definition at line 144 of file musiclrcparser.cpp.
References m_resultBytes, TTK_SN_MB2BT, uncompress(), and Z_OK.
Referenced by decode().
|
protected |
Check the input string is filtered or not.
Definition at line 154 of file musiclrcparser.cpp.
References sncasecmp(), and TTKConstCast.
Referenced by createLrc().
|
protected |
Sncasecmp by input and size n.
Definition at line 119 of file musiclrcparser.cpp.
Referenced by isfilter().
|
protected |
Definition at line 109 of file musiclrcparser.h.
Referenced by decode(), decompression(), and ~MusicLrcFromKrc().