Skip to content

Commit

Permalink
0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-huet committed Dec 14, 2014
1 parent 40b937f commit 824b5b5
Show file tree
Hide file tree
Showing 28 changed files with 1,296 additions and 441 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
version 0.9.3:

- Fixed small palette PNG.
- Added support for BT 709 and BT 2020 YCbCr.
- Added limited range color support.
- Changed CMYK signalling.
- Added premultiplied alpha support.
- Specified the output RGB color space if no color profile is present.
- Reduced the size of the js decoder.
- Removed buffer overflows.

version 0.9.2:

- Fixed encoding of paletted PNG.
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ all: $(PROGS)
LIBBPG_OBJS:=$(addprefix libavcodec/, \
hevc_cabac.o hevc_filter.o hevc.o hevcpred.o hevc_refs.o\
hevcdsp.o hevc_mvs.o hevc_ps.o hevc_sei.o\
utils.o cabac.o )
utils.o cabac.o golomb.o )
LIBBPG_OBJS+=$(addprefix libavutil/, mem.o buffer.o log2_tab.o frame.o pixdesc.o md5.o )
LIBBPG_OBJS+=libbpg.o

LIBBPG_JS_OBJS:=$(patsubst %.o, %.js.o, $(LIBBPG_OBJS))
LIBBPG_JS_OBJS:=$(patsubst %.o, %.js.o, $(LIBBPG_OBJS)) tmalloc.js.o

LIBBPG_JS8_OBJS:=$(patsubst %.o, %.js8.o, $(LIBBPG_OBJS))
LIBBPG_JS8_OBJS:=$(patsubst %.o, %.js8.o, $(LIBBPG_OBJS)) tmalloc.js8.o

$(LIBBPG_OBJS): CFLAGS+=-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DHAVE_AV_CONFIG_H -std=c99 -D_GNU_SOURCE=1 -DUSE_VAR_BIT_DEPTH

Expand Down
6 changes: 6 additions & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ as input.

* grayscale images are kept unmodified.

- Premultiplied alpha: by default bpgenc uses non-premultiplied alpha
to preserve the color components. However, premultiplied alpha
('-premul' option) usually gives a better compression at the expense
of a loss in the color components. This loss is not an issue if the
image is not edited.

- By default, bpgenc does not copy the metadata. You can copy them
with the '-keepmetadata' option. For JPEG input, EXIF, ICCP and XMP
are copied. For PNG input, ICCP is copied.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.2
0.9.3
19 changes: 14 additions & 5 deletions bpgdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ static void bpg_show_info(const char *filename, int show_extensions)
"YCbCr",
"RGB",
"YCgCo",
"YCbCrK",
"CMYK",
"YCbCr_BT709",
"YCbCr_BT2020",
};
static const char *extension_tag_str[] = {
"Unknown",
Expand Down Expand Up @@ -220,12 +220,21 @@ static void bpg_show_info(const char *filename, int show_extensions)
fprintf(stderr, "Not a BPG image\n");
exit(1);
}
printf("size=%dx%d color_space=%s alpha=%d format=%s bit_depth=%d\n",
printf("size=%dx%d color_space=%s",
p->width, p->height,
p->format == BPG_FORMAT_GRAY ? "Gray" : color_space_str[p->color_space],
p->has_alpha,
p->format == BPG_FORMAT_GRAY ? "Gray" : color_space_str[p->color_space]);
if (p->has_w_plane) {
printf(" w_plane=%d", p->has_w_plane);
}
if (p->has_alpha) {
printf(" alpha=%d premul=%d",
p->has_alpha, p->premultiplied_alpha);
}
printf(" format=%s limited_range=%d bit_depth=%d\n",
format_str[p->format],
p->limited_range,
p->bit_depth);

if (first_md) {
const char *tag_name;
printf("Extension data:\n");
Expand Down
Loading

0 comments on commit 824b5b5

Please sign in to comment.