|
TTKMusicPlayer
4.3.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>
Inheritance diagram for MusicLrcFromKrc:Public Member Functions | |
| MusicLrcFromKrc () | |
| ~MusicLrcFromKrc () | |
| virtual bool | decode (const QString &input) overridefinal |
| bool | decode (const QString &input, const QString &output) |
Public Member Functions inherited from MusicLrcFromInterface | |
| virtual | ~MusicLrcFromInterface ()=default |
| const QByteArray & | data () const noexcept |
Protected Member Functions | |
| int | sncasecmp (const char *s1, const char *s2, size_t n) |
| int | decompression (uchar *src, size_t srcsize, size_t *dstsize) |
| int | isfilter (const char *tok) |
| void | createLrc (uchar *lrc, int lrclen) |
Protected Attributes | |
| uchar * | m_resultBytes |
Protected Attributes inherited from MusicLrcFromInterface | |
| QByteArray | m_data |
The class of the krc to lrc.
Definition at line 67 of file musiclrcparser.h.
| MusicLrcFromKrc::MusicLrcFromKrc | ( | ) |
Object constructor.
Definition at line 38 of file musiclrcparser.cpp.
| MusicLrcFromKrc::~MusicLrcFromKrc | ( | ) |
|
protected |
Create lrc by input data and length.
Definition at line 192 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 50 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 55 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 149 of file musiclrcparser.cpp.
References m_resultBytes, TTK_SN_MB2BT, uncompress(), and Z_OK.
Referenced by decode().
Check the input string is filtered or not.
Definition at line 159 of file musiclrcparser.cpp.
References sncasecmp().
Referenced by createLrc().
Sncasecmp by input and size n.
Definition at line 124 of file musiclrcparser.cpp.
Referenced by isfilter().
|
protected |
Definition at line 106 of file musiclrcparser.h.
Referenced by decode(), decompression(), and ~MusicLrcFromKrc().
1.8.8