libbpg-0.9.3

This commit is contained in:
King_DuckZ 2015-01-16 13:46:18 +01:00
commit b21307932d
266 changed files with 108670 additions and 0 deletions

91
html/bpgdec.js Normal file

File diff suppressed because one or more lines are too long

91
html/bpgdec8b.js Normal file

File diff suppressed because one or more lines are too long

30
html/index.html Normal file
View file

@ -0,0 +1,30 @@
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="bpgdec8b.js"></script>
</head>
<body>
<h1>BPG Decoding Demo</h1>
IMG tag:<br>
<img src="lena512color.bpg">
<p>
Dynamic loading in a canvas:<br>
<canvas id="mycanvas" width="512" height="512"></canvas>
<script>
(function ()
{
var img, canvas, ctx;
canvas = document.getElementById("mycanvas");
ctx = canvas.getContext("2d");
img = new BPGDecoder(ctx);
img.onload = function() {
/* draw the image to the canvas */
ctx.putImageData(this.imageData, 0, 0);
};
img.load("lena512color.bpg");
})();
</script>
</body>
</html>

BIN
html/lena512color.bpg Normal file

Binary file not shown.