1
0
mirror of synced 2024-11-12 10:10:53 +01:00
ImHex/include/views/view_entropy.hpp

28 lines
542 B
C++
Raw Normal View History

2020-11-11 10:46:41 +01:00
#pragma once
#include "views/view.hpp"
#include <cstdio>
namespace hex {
namespace prv { class Provider; }
class ViewEntropy : public View {
public:
explicit ViewEntropy(prv::Provider* &dataProvider);
~ViewEntropy() override;
void createView() override;
void createMenu() override;
private:
prv::Provider* &m_dataProvider;
bool m_windowOpen = true;
double m_entropy = 0;
float m_valueCounts[256] = { 0 };
bool m_shouldInvalidate = true;
};
}