TTKMusicPlayer
4.1.3.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 <musiclrcfromkrc.h>
Public Member Functions | |
MusicLrcFromKrc () | |
~MusicLrcFromKrc () | |
bool | decode (const QString &input, const QString &output={}) |
QByteArray | decodeString () const |
Private 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) |
Private Attributes | |
uchar * | m_resultBytes |
QByteArray | m_data |
The class of the krc to lrc.
Definition at line 27 of file musiclrcfromkrc.h.
MusicLrcFromKrc::MusicLrcFromKrc | ( | ) |
Object constructor.
Definition at line 16 of file musiclrcfromkrc.cpp.
References m_resultBytes, and TTK_SN_MB2BT.
MusicLrcFromKrc::~MusicLrcFromKrc | ( | ) |
|
private |
Create lrc by input data and length.
Definition at line 162 of file musiclrcfromkrc.cpp.
References isfilter(), m_data, TTK_DN_H2MS, TTK_DN_M2MS, and TTK_DN_S2MS.
Referenced by decode().
Decode krc file to lrc by input file and output file.
Definition at line 26 of file musiclrcfromkrc.cpp.
References createLrc(), decompression(), key, m_data, m_resultBytes, qPrintable, QtNamespace, TTK_ERROR_STREAM, and TTKStaticCast.
Referenced by MusicLrcAnalysis::loadFromKrcFile(), and MusicTransformWidget::processTransform().
QByteArray MusicLrcFromKrc::decodeString | ( | ) | const |
Get decode string.
Definition at line 89 of file musiclrcfromkrc.cpp.
References m_data.
Referenced by MusicLrcAnalysis::loadFromKrcFile().
|
private |
Decompress the krc file data to normal data.
Definition at line 119 of file musiclrcfromkrc.cpp.
References m_resultBytes, TTK_SN_MB2BT, uncompress(), and Z_OK.
Referenced by decode().
|
private |
Check the input string is filtered or not.
Definition at line 129 of file musiclrcfromkrc.cpp.
References sncasecmp(), and TTKConstCast.
Referenced by createLrc().
|
private |
Sncasecmp by input and size n.
Definition at line 94 of file musiclrcfromkrc.cpp.
Referenced by isfilter().
|
private |
Definition at line 68 of file musiclrcfromkrc.h.
Referenced by createLrc(), decode(), and decodeString().
|
private |
Definition at line 67 of file musiclrcfromkrc.h.
Referenced by decode(), decompression(), MusicLrcFromKrc(), and ~MusicLrcFromKrc().