mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-22 11:35:42 -04:00
21 lines
652 B
C++
21 lines
652 B
C++
#pragma once
|
|
#include "common/progress_callback.h"
|
|
#include "common/types.h"
|
|
#include <array>
|
|
#include <optional>
|
|
#include <string>
|
|
|
|
class CDImage;
|
|
|
|
namespace CDImageHasher {
|
|
|
|
using Hash = std::array<u8, 16>;
|
|
std::string HashToString(const Hash& hash);
|
|
std::optional<Hash> HashFromString(const std::string_view& str);
|
|
|
|
bool GetImageHash(CDImage* image, Hash* out_hash,
|
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
|
bool GetTrackHash(CDImage* image, u8 track, Hash* out_hash,
|
|
ProgressCallback* progress_callback = ProgressCallback::NullProgressCallback);
|
|
|
|
} // namespace CDImageHasher
|