1
0
mirror of synced 2024-11-27 17:10:51 +01:00
ImHex/plugins/builtin/include/content/views/view_information.hpp

40 lines
870 B
C++
Raw Normal View History

#pragma once
#include <hex/ui/view.hpp>
#include <array>
#include <atomic>
#include <cstdio>
#include <string>
#include <vector>
2021-12-07 22:47:41 +01:00
namespace hex::plugin::builtin {
class ViewInformation : public View {
public:
explicit ViewInformation();
~ViewInformation() override;
void drawContent() override;
private:
2022-02-01 22:09:44 +01:00
bool m_dataValid = false;
u32 m_blockSize = 0;
float m_averageEntropy = 0;
float m_highestBlockEntropy = 0;
std::vector<float> m_blockEntropy;
2021-04-12 22:20:05 +02:00
double m_entropyHandlePosition;
2021-03-02 14:32:18 +01:00
std::array<ImU64, 256> m_valueCounts = { 0 };
2022-02-01 22:09:44 +01:00
bool m_analyzing = false;
std::pair<u64, u64> m_analyzedRegion = { 0, 0 };
std::string m_fileDescription;
std::string m_mimeType;
void analyze();
};
}