mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-02-11 14:58:40 -06:00
Added entropy view
This commit is contained in:
28
include/views/view_entropy.hpp
Normal file
28
include/views/view_entropy.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user