repo.or.cz
/
jpcrr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
JPC-RR r11.7
[jpcrr.git]
/
streamtools
/
dedup.hpp
blob
7c84e359b90f7faef097e0c35b9a2ec378dd78dd
1
#ifndef _dedup__hpp__included__
2
#define _dedup__hpp__included__
3
4
#include <vector>
5
#include <stdint.h>
6
#include
"resize.hpp"
7
8
class
dedup
9
{
10
public
:
11
dedup
(
uint32_t
max
,
uint32_t
width
,
uint32_t
height
);
12
bool
operator
()(
const uint8_t
*
buffer
);
13
private
:
14
std
::
vector
<
uint8_t
>
framebuffer
;
15
uint32_t
bound
;
16
uint32_t
current
;
17
};
18
19
#endif