Skip to content

Commit 149df08

Browse files
committed
0.9.7
1 parent 47f4357 commit 149df08

File tree

11 files changed

+723
-239
lines changed

11 files changed

+723
-239
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
version 0.9.7:
2+
3+
- Increased the memory size of the JS decoder to 32 MiB and avoid
4+
polluting the global namespace.
5+
- Published the Emscripten patches which reduce the size of the
6+
generated JS code.
7+
18
version 0.9.6:
29

310
- Faster encoding (x265 is the default encoder and is built in bpgenc).

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ endif
4949
# Emscriptem config
5050
EMLDFLAGS:=-s "EXPORTED_FUNCTIONS=['_bpg_decoder_open','_bpg_decoder_decode','_bpg_decoder_get_info','_bpg_decoder_start','_bpg_decoder_get_frame_duration','_bpg_decoder_get_line','_bpg_decoder_close','_malloc','_free']"
5151
EMLDFLAGS+=-s NO_FILESYSTEM=1 -s NO_BROWSER=1
52-
#EMLDFLAGS+=-O1 --post-js post.js
53-
EMLDFLAGS+=-O3 --memory-init-file 0 --closure 1 --post-js post.js
52+
#EMLDFLAGS+=-O1 --pre-js pre.js --post-js post.js
53+
# Note: the closure compiler is disabled because it adds unwanted global symbols
54+
EMLDFLAGS+=-O3 --memory-init-file 0 --closure 0 --pre-js pre.js --post-js post.js
5455
EMCFLAGS:=$(CFLAGS)
5556

5657
LDFLAGS=-g

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ will support this Javascript subset.
240240
9) x265 modifications
241241
---------------------
242242

243-
- Support of monochrome format (some part not used by BPG may be
243+
- Support of monochrome format (some parts not used by BPG may be
244244
missing).
245245

246246
- Support of static build.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.9.6
1+
0.9.7

emscripten.diff

Lines changed: 656 additions & 0 deletions
Large diffs are not rendered by default.

html/bpgdec.js

Lines changed: 8 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/bpgdec8.js

Lines changed: 8 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

html/bpgdec8a.js

Lines changed: 9 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libbpg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
#ifndef _LIBBPG_H
2525
#define _LIBBPG_H
2626

27+
#include <inttypes.h>
28+
2729
typedef struct BPGDecoderContext BPGDecoderContext;
2830

2931
typedef enum {

post.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,6 @@ window.onload = function() {
212212
dec.load(url);
213213
}
214214
};
215+
216+
/* end of dummy function enclosing all the emscripten code */
217+
})();

0 commit comments

Comments
 (0)