-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
73 lines (69 loc) · 1.76 KB
/
Copy pathindex.html
File metadata and controls
73 lines (69 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hate261</title>
<style>
#canvas {
width: 704px;
height: 576px;
border: 1px solid red;
position: relative;
}
#output {
width: 704px;
height: 576px;
image-rendering: pixelated;
}
img {
position: absolute;
top: 0;
left: 0;
z-index: 100;
opacity: .5;
}
.hide {
display: none;
}
</style>
</head>
<body>
<h1>hate.261</h1>
<a href="/?badapple.h261">Bad apple</a>
<a href="/?rickroll.h261">Rick</a>
<div id="canvas">
<canvas id="output" width="352" height="288">
</canvas>
<img src="mbgrid.svg" id="grid" class="hide" alt="">
</div>
<script>
function toggleGrid() {
const img = document.getElementById('grid');
img.classList.toggle('hide');
}
</script>
<button onclick="toggleGrid()">Toggle Macro Block Grid</button>
<h2>What?</h2>
<p>
A h.261 decoder written in Typescript.
</p>
<h2>Why?</h2>
<p>
Beacuse I wanted to implement a video decoder.
</p>
<h2>How?</h2>
<p>
The project's <a href="https://github.com/MaticBabnik/hate261">readme</a>
lists some useful articles, books and blogposts I used.
</a>
</p>
<h2>TODO:</h2>
<ul>
<li>Support QCIF</li>
<li>Add more test videos</li>
<li>Compare output with a "real" decoder</li>
</ul>
<script type="module" src="/src/main.ts"></script>
</body>
</html>