BPG image format

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

BPG image format

Post by Kojack »

I've been reading today about the BPG format, that is intended as an alternative for Jpeg. It's from Fabrice Bellard, creator of FFMpeg and QEMU.
It sounds pretty interesting:
- lossy and lossless compression
- alpha channel
- RGB, YCbCr (jpeg style), YCgCo, greyscale and CMYK
- 8 to 14 bit per channel

It uses the frame encoding of the HEVC video codec.

At the same file size, BPG is much higher quality than Jpeg: (this pic was just under 6KB in both formats)
Jpeg:
Image

BPG:
Image

The encoder and decoder are BSD licensed. (Although the decoder requires an LGPL licensed ffmpeg)
There's also a decoder that's written in javascript and lets you view the format online.


I wonder how the performance of decoding compares?

http://bellard.org/bpg
User avatar
c6burns
Beholder
Posts: 1512
Joined: Fri Feb 22, 2013 4:44 am
Location: Deep behind enemy lines
x 138

Re: BPG image format

Post by c6burns »

Kojack wrote:Although the decoder requires an LGPL licensed ffmpeg
Wow that's pretty cool. I like that it supports alpha. If it's an avcodec then that's a pretty trivial interface. Basically it just has encode and decode routines (or encode2 or encode19 or whatever they are up to now)
Post Reply