2012-01-06 23:49:06 +01:00
|
|
|
// Copyright 2011 Google Inc. All Rights Reserved.
|
2011-02-19 08:33:46 +01:00
|
|
|
//
|
2013-06-07 08:05:58 +02:00
|
|
|
// Use of this source code is governed by a BSD-style license
|
|
|
|
// that can be found in the COPYING file in the root of the source
|
|
|
|
// tree. An additional intellectual property rights grant can be found
|
|
|
|
// in the file PATENTS. All contributing project authors may
|
|
|
|
// be found in the AUTHORS file in the root of the source tree.
|
2011-02-19 08:33:46 +01:00
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
//
|
2014-07-14 11:04:14 +02:00
|
|
|
// WebPPicture class basis
|
2011-02-19 08:33:46 +01:00
|
|
|
//
|
|
|
|
// Author: Skal (pascal.massimino@gmail.com)
|
|
|
|
|
2011-04-26 16:23:57 +02:00
|
|
|
#include <assert.h>
|
2011-02-19 08:33:46 +01:00
|
|
|
#include <stdlib.h>
|
2011-12-01 11:00:03 +01:00
|
|
|
|
|
|
|
#include "./vp8enci.h"
|
2014-11-20 16:53:05 +01:00
|
|
|
#include "../dsp/dsp.h"
|
2012-08-01 21:06:04 +02:00
|
|
|
#include "../utils/utils.h"
|
2011-02-19 08:33:46 +01:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// WebPPicture
|
|
|
|
//------------------------------------------------------------------------------
|
2013-10-18 21:28:05 +02:00
|
|
|
|
2014-07-21 14:11:58 +02:00
|
|
|
static int DummyWriter(const uint8_t* data, size_t data_size,
|
|
|
|
const WebPPicture* const picture) {
|
|
|
|
// The following are to prevent 'unused variable' error message.
|
|
|
|
(void)data;
|
|
|
|
(void)data_size;
|
|
|
|
(void)picture;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
int WebPPictureInitInternal(WebPPicture* picture, int version) {
|
|
|
|
if (WEBP_ABI_IS_INCOMPATIBLE(version, WEBP_ENCODER_ABI_VERSION)) {
|
|
|
|
return 0; // caller/system version mismatch!
|
|
|
|
}
|
|
|
|
if (picture != NULL) {
|
|
|
|
memset(picture, 0, sizeof(*picture));
|
|
|
|
picture->writer = DummyWriter;
|
|
|
|
WebPEncodingSetError(picture, VP8_ENC_OK);
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
static void WebPPictureResetBufferARGB(WebPPicture* const picture) {
|
|
|
|
picture->memory_argb_ = NULL;
|
|
|
|
picture->argb = NULL;
|
|
|
|
picture->argb_stride = 0;
|
|
|
|
}
|
2011-11-23 23:17:40 +01:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
static void WebPPictureResetBufferYUVA(WebPPicture* const picture) {
|
|
|
|
picture->memory_ = NULL;
|
|
|
|
picture->y = picture->u = picture->v = picture->a = NULL;
|
|
|
|
picture->y_stride = picture->uv_stride = 0;
|
|
|
|
picture->a_stride = 0;
|
|
|
|
}
|
2012-06-28 09:34:23 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
void WebPPictureResetBuffers(WebPPicture* const picture) {
|
|
|
|
WebPPictureResetBufferARGB(picture);
|
|
|
|
WebPPictureResetBufferYUVA(picture);
|
2013-04-03 04:14:14 +02:00
|
|
|
}
|
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
int WebPPictureAllocARGB(WebPPicture* const picture, int width, int height) {
|
|
|
|
void* memory;
|
|
|
|
const uint64_t argb_size = (uint64_t)width * height;
|
2011-02-19 08:33:46 +01:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
assert(picture != NULL);
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
WebPSafeFree(picture->memory_argb_);
|
|
|
|
WebPPictureResetBufferARGB(picture);
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
if (width <= 0 || height <= 0) {
|
|
|
|
return WebPEncodingSetError(picture, VP8_ENC_ERROR_BAD_DIMENSION);
|
|
|
|
}
|
|
|
|
// allocate a new buffer.
|
|
|
|
memory = WebPSafeMalloc(argb_size, sizeof(*picture->argb));
|
|
|
|
if (memory == NULL) {
|
|
|
|
return WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
|
|
|
|
}
|
|
|
|
// TODO(skal): align plane to cache line?
|
|
|
|
picture->memory_argb_ = memory;
|
|
|
|
picture->argb = (uint32_t*)memory;
|
|
|
|
picture->argb_stride = width;
|
|
|
|
return 1;
|
|
|
|
}
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
int WebPPictureAllocYUVA(WebPPicture* const picture, int width, int height) {
|
|
|
|
const WebPEncCSP uv_csp = picture->colorspace & WEBP_CSP_UV_MASK;
|
|
|
|
const int has_alpha = picture->colorspace & WEBP_CSP_ALPHA_BIT;
|
|
|
|
const int y_stride = width;
|
|
|
|
const int uv_width = (width + 1) >> 1;
|
|
|
|
const int uv_height = (height + 1) >> 1;
|
|
|
|
const int uv_stride = uv_width;
|
|
|
|
int a_width, a_stride;
|
|
|
|
uint64_t y_size, uv_size, a_size, total_size;
|
|
|
|
uint8_t* mem;
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
assert(picture != NULL);
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
WebPSafeFree(picture->memory_);
|
|
|
|
WebPPictureResetBufferYUVA(picture);
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
if (uv_csp != WEBP_YUV420) {
|
|
|
|
return WebPEncodingSetError(picture, VP8_ENC_ERROR_INVALID_CONFIGURATION);
|
|
|
|
}
|
2014-07-03 22:20:06 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
// alpha
|
|
|
|
a_width = has_alpha ? width : 0;
|
|
|
|
a_stride = a_width;
|
|
|
|
y_size = (uint64_t)y_stride * height;
|
|
|
|
uv_size = (uint64_t)uv_stride * uv_height;
|
|
|
|
a_size = (uint64_t)a_stride * height;
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
total_size = y_size + a_size + 2 * uv_size;
|
2012-03-28 13:07:42 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
// Security and validation checks
|
|
|
|
if (width <= 0 || height <= 0 || // luma/alpha param error
|
|
|
|
uv_width < 0 || uv_height < 0) { // u/v param error
|
|
|
|
return WebPEncodingSetError(picture, VP8_ENC_ERROR_BAD_DIMENSION);
|
|
|
|
}
|
|
|
|
// allocate a new buffer.
|
|
|
|
mem = (uint8_t*)WebPSafeMalloc(total_size, sizeof(*mem));
|
|
|
|
if (mem == NULL) {
|
|
|
|
return WebPEncodingSetError(picture, VP8_ENC_ERROR_OUT_OF_MEMORY);
|
|
|
|
}
|
2012-06-21 09:30:43 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
// From now on, we're in the clear, we can no longer fail...
|
|
|
|
picture->memory_ = (void*)mem;
|
|
|
|
picture->y_stride = y_stride;
|
|
|
|
picture->uv_stride = uv_stride;
|
|
|
|
picture->a_stride = a_stride;
|
|
|
|
|
|
|
|
// TODO(skal): we could align the y/u/v planes and adjust stride.
|
|
|
|
picture->y = mem;
|
|
|
|
mem += y_size;
|
|
|
|
|
|
|
|
picture->u = mem;
|
|
|
|
mem += uv_size;
|
|
|
|
picture->v = mem;
|
|
|
|
mem += uv_size;
|
|
|
|
|
|
|
|
if (a_size > 0) {
|
|
|
|
picture->a = mem;
|
|
|
|
mem += a_size;
|
EXPERIMENTAL: add support for alpha channel
This is a (minor) bitstream change: if the 'color_space' bit is set to '1'
(which is normally an undefined/invalid behaviour), we add extra data at the
end of partition #0 (so-called 'extensions')
Namely, we add the size of the extension data as 3 bytes (little-endian),
followed by a set of bits telling which extensions we're incorporating.
The data then _preceeds_ this trailing tags.
This is all experimental, and you'll need to have
'#define WEBP_EXPERIMENTAL_FEATURES' in webp/types.h to enable this code
(at your own risk! :))
Still, this hack produces almost-valid WebP file for decoders that don't
check this color_space bit. In particular, previous 'dwebp' (and for instance
Chrome) will recognize this files and decode them, but without the alpha
of course. Other decoder will just see random extra stuff at the end of
partition #0.
To experiment with the alpha-channel, you need to compile on Unix platform
and use PNGs for input/output.
If 'alpha.png' is a source with alpha channel, then you can try (on Unix):
cwebp alpha.png -o alpha.webp
dwebp alpha.webp -o test.png
cwebp now has a '-noalpha' flag to ignore any alpha information from the
source, if present.
More hacking and experimenting welcome!
Change-Id: I3c7b1fd8411c9e7a9f77690e898479ad85c52f3e
2011-04-26 01:58:04 +02:00
|
|
|
}
|
2014-07-14 11:04:14 +02:00
|
|
|
(void)mem; // makes the static analyzer happy
|
EXPERIMENTAL: add support for alpha channel
This is a (minor) bitstream change: if the 'color_space' bit is set to '1'
(which is normally an undefined/invalid behaviour), we add extra data at the
end of partition #0 (so-called 'extensions')
Namely, we add the size of the extension data as 3 bytes (little-endian),
followed by a set of bits telling which extensions we're incorporating.
The data then _preceeds_ this trailing tags.
This is all experimental, and you'll need to have
'#define WEBP_EXPERIMENTAL_FEATURES' in webp/types.h to enable this code
(at your own risk! :))
Still, this hack produces almost-valid WebP file for decoders that don't
check this color_space bit. In particular, previous 'dwebp' (and for instance
Chrome) will recognize this files and decode them, but without the alpha
of course. Other decoder will just see random extra stuff at the end of
partition #0.
To experiment with the alpha-channel, you need to compile on Unix platform
and use PNGs for input/output.
If 'alpha.png' is a source with alpha channel, then you can try (on Unix):
cwebp alpha.png -o alpha.webp
dwebp alpha.webp -o test.png
cwebp now has a '-noalpha' flag to ignore any alpha information from the
source, if present.
More hacking and experimenting welcome!
Change-Id: I3c7b1fd8411c9e7a9f77690e898479ad85c52f3e
2011-04-26 01:58:04 +02:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
int WebPPictureAlloc(WebPPicture* picture) {
|
|
|
|
if (picture != NULL) {
|
|
|
|
const int width = picture->width;
|
|
|
|
const int height = picture->height;
|
2012-06-28 09:34:23 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
WebPPictureFree(picture); // erase previous buffer
|
2012-06-28 09:34:23 +02:00
|
|
|
|
2014-07-14 11:04:14 +02:00
|
|
|
if (!picture->use_argb) {
|
|
|
|
return WebPPictureAllocYUVA(picture, width, height);
|
|
|
|
} else {
|
|
|
|
return WebPPictureAllocARGB(picture, width, height);
|
|
|
|
}
|
2012-06-28 09:34:23 +02:00
|
|
|
}
|
|
|
|
return 1;
|
2011-05-03 02:19:00 +02:00
|
|
|
}
|
|
|
|
|
2012-07-18 00:01:30 +02:00
|
|
|
void WebPPictureFree(WebPPicture* picture) {
|
2012-01-23 09:58:09 +01:00
|
|
|
if (picture != NULL) {
|
2014-03-27 23:27:32 +01:00
|
|
|
WebPSafeFree(picture->memory_);
|
|
|
|
WebPSafeFree(picture->memory_argb_);
|
2014-07-14 11:04:14 +02:00
|
|
|
WebPPictureResetBuffers(picture);
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-08-25 23:22:32 +02:00
|
|
|
//------------------------------------------------------------------------------
|
2012-06-19 00:42:56 +02:00
|
|
|
// WebPMemoryWriter: Write-to-memory
|
2011-02-19 08:33:46 +01:00
|
|
|
|
2012-07-18 00:01:30 +02:00
|
|
|
void WebPMemoryWriterInit(WebPMemoryWriter* writer) {
|
2012-06-19 00:42:56 +02:00
|
|
|
writer->mem = NULL;
|
|
|
|
writer->size = 0;
|
2011-02-19 08:33:46 +01:00
|
|
|
writer->max_size = 0;
|
|
|
|
}
|
|
|
|
|
2012-06-19 00:42:56 +02:00
|
|
|
int WebPMemoryWrite(const uint8_t* data, size_t data_size,
|
2012-07-18 00:01:30 +02:00
|
|
|
const WebPPicture* picture) {
|
2011-02-19 08:33:46 +01:00
|
|
|
WebPMemoryWriter* const w = (WebPMemoryWriter*)picture->custom_ptr;
|
2012-08-01 21:06:04 +02:00
|
|
|
uint64_t next_size;
|
2011-02-19 08:33:46 +01:00
|
|
|
if (w == NULL) {
|
|
|
|
return 1;
|
|
|
|
}
|
2012-08-01 21:06:04 +02:00
|
|
|
next_size = (uint64_t)w->size + data_size;
|
2011-02-19 08:33:46 +01:00
|
|
|
if (next_size > w->max_size) {
|
|
|
|
uint8_t* new_mem;
|
2012-08-01 21:06:04 +02:00
|
|
|
uint64_t next_max_size = 2ULL * w->max_size;
|
2011-02-19 08:33:46 +01:00
|
|
|
if (next_max_size < next_size) next_max_size = next_size;
|
2012-08-01 21:06:04 +02:00
|
|
|
if (next_max_size < 8192ULL) next_max_size = 8192ULL;
|
|
|
|
new_mem = (uint8_t*)WebPSafeMalloc(next_max_size, 1);
|
2011-02-19 08:33:46 +01:00
|
|
|
if (new_mem == NULL) {
|
|
|
|
return 0;
|
|
|
|
}
|
2012-06-19 00:42:56 +02:00
|
|
|
if (w->size > 0) {
|
|
|
|
memcpy(new_mem, w->mem, w->size);
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
2014-03-27 23:27:32 +01:00
|
|
|
WebPSafeFree(w->mem);
|
2012-06-19 00:42:56 +02:00
|
|
|
w->mem = new_mem;
|
2012-08-01 21:06:04 +02:00
|
|
|
// down-cast is ok, thanks to WebPSafeMalloc
|
|
|
|
w->max_size = (size_t)next_max_size;
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
2012-01-23 09:58:09 +01:00
|
|
|
if (data_size > 0) {
|
2012-06-19 00:42:56 +02:00
|
|
|
memcpy(w->mem + w->size, data, data_size);
|
|
|
|
w->size += data_size;
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2014-03-27 23:27:32 +01:00
|
|
|
void WebPMemoryWriterClear(WebPMemoryWriter* writer) {
|
|
|
|
if (writer != NULL) {
|
|
|
|
WebPSafeFree(writer->mem);
|
|
|
|
writer->mem = NULL;
|
|
|
|
writer->size = 0;
|
|
|
|
writer->max_size = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-01-20 16:20:56 +01:00
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
// Simplest high-level calls:
|
2011-02-19 08:33:46 +01:00
|
|
|
|
|
|
|
typedef int (*Importer)(WebPPicture* const, const uint8_t* const, int);
|
|
|
|
|
EXPERIMENTAL: add support for alpha channel
This is a (minor) bitstream change: if the 'color_space' bit is set to '1'
(which is normally an undefined/invalid behaviour), we add extra data at the
end of partition #0 (so-called 'extensions')
Namely, we add the size of the extension data as 3 bytes (little-endian),
followed by a set of bits telling which extensions we're incorporating.
The data then _preceeds_ this trailing tags.
This is all experimental, and you'll need to have
'#define WEBP_EXPERIMENTAL_FEATURES' in webp/types.h to enable this code
(at your own risk! :))
Still, this hack produces almost-valid WebP file for decoders that don't
check this color_space bit. In particular, previous 'dwebp' (and for instance
Chrome) will recognize this files and decode them, but without the alpha
of course. Other decoder will just see random extra stuff at the end of
partition #0.
To experiment with the alpha-channel, you need to compile on Unix platform
and use PNGs for input/output.
If 'alpha.png' is a source with alpha channel, then you can try (on Unix):
cwebp alpha.png -o alpha.webp
dwebp alpha.webp -o test.png
cwebp now has a '-noalpha' flag to ignore any alpha information from the
source, if present.
More hacking and experimenting welcome!
Change-Id: I3c7b1fd8411c9e7a9f77690e898479ad85c52f3e
2011-04-26 01:58:04 +02:00
|
|
|
static size_t Encode(const uint8_t* rgba, int width, int height, int stride,
|
2012-07-17 20:56:24 +02:00
|
|
|
Importer import, float quality_factor, int lossless,
|
|
|
|
uint8_t** output) {
|
2011-02-19 08:33:46 +01:00
|
|
|
WebPPicture pic;
|
|
|
|
WebPConfig config;
|
|
|
|
WebPMemoryWriter wrt;
|
|
|
|
int ok;
|
|
|
|
|
|
|
|
if (!WebPConfigPreset(&config, WEBP_PRESET_DEFAULT, quality_factor) ||
|
|
|
|
!WebPPictureInit(&pic)) {
|
|
|
|
return 0; // shouldn't happen, except if system installation is broken
|
|
|
|
}
|
|
|
|
|
2012-07-17 20:56:24 +02:00
|
|
|
config.lossless = !!lossless;
|
2012-07-18 23:58:53 +02:00
|
|
|
pic.use_argb = !!lossless;
|
2011-02-19 08:33:46 +01:00
|
|
|
pic.width = width;
|
|
|
|
pic.height = height;
|
|
|
|
pic.writer = WebPMemoryWrite;
|
|
|
|
pic.custom_ptr = &wrt;
|
2012-01-23 09:58:09 +01:00
|
|
|
WebPMemoryWriterInit(&wrt);
|
2011-02-19 08:33:46 +01:00
|
|
|
|
EXPERIMENTAL: add support for alpha channel
This is a (minor) bitstream change: if the 'color_space' bit is set to '1'
(which is normally an undefined/invalid behaviour), we add extra data at the
end of partition #0 (so-called 'extensions')
Namely, we add the size of the extension data as 3 bytes (little-endian),
followed by a set of bits telling which extensions we're incorporating.
The data then _preceeds_ this trailing tags.
This is all experimental, and you'll need to have
'#define WEBP_EXPERIMENTAL_FEATURES' in webp/types.h to enable this code
(at your own risk! :))
Still, this hack produces almost-valid WebP file for decoders that don't
check this color_space bit. In particular, previous 'dwebp' (and for instance
Chrome) will recognize this files and decode them, but without the alpha
of course. Other decoder will just see random extra stuff at the end of
partition #0.
To experiment with the alpha-channel, you need to compile on Unix platform
and use PNGs for input/output.
If 'alpha.png' is a source with alpha channel, then you can try (on Unix):
cwebp alpha.png -o alpha.webp
dwebp alpha.webp -o test.png
cwebp now has a '-noalpha' flag to ignore any alpha information from the
source, if present.
More hacking and experimenting welcome!
Change-Id: I3c7b1fd8411c9e7a9f77690e898479ad85c52f3e
2011-04-26 01:58:04 +02:00
|
|
|
ok = import(&pic, rgba, stride) && WebPEncode(&config, &pic);
|
2011-02-19 08:33:46 +01:00
|
|
|
WebPPictureFree(&pic);
|
|
|
|
if (!ok) {
|
2014-03-27 23:27:32 +01:00
|
|
|
WebPMemoryWriterClear(&wrt);
|
2011-02-19 08:33:46 +01:00
|
|
|
*output = NULL;
|
|
|
|
return 0;
|
|
|
|
}
|
2012-06-19 00:42:56 +02:00
|
|
|
*output = wrt.mem;
|
|
|
|
return wrt.size;
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
|
|
|
|
2012-07-17 20:56:24 +02:00
|
|
|
#define ENCODE_FUNC(NAME, IMPORTER) \
|
|
|
|
size_t NAME(const uint8_t* in, int w, int h, int bps, float q, \
|
|
|
|
uint8_t** out) { \
|
|
|
|
return Encode(in, w, h, bps, IMPORTER, q, 0, out); \
|
2011-02-19 08:33:46 +01:00
|
|
|
}
|
|
|
|
|
2013-04-13 19:49:35 +02:00
|
|
|
ENCODE_FUNC(WebPEncodeRGB, WebPPictureImportRGB)
|
|
|
|
ENCODE_FUNC(WebPEncodeBGR, WebPPictureImportBGR)
|
|
|
|
ENCODE_FUNC(WebPEncodeRGBA, WebPPictureImportRGBA)
|
|
|
|
ENCODE_FUNC(WebPEncodeBGRA, WebPPictureImportBGRA)
|
2011-02-19 08:33:46 +01:00
|
|
|
|
|
|
|
#undef ENCODE_FUNC
|
|
|
|
|
2012-07-17 20:56:24 +02:00
|
|
|
#define LOSSLESS_DEFAULT_QUALITY 70.
|
|
|
|
#define LOSSLESS_ENCODE_FUNC(NAME, IMPORTER) \
|
|
|
|
size_t NAME(const uint8_t* in, int w, int h, int bps, uint8_t** out) { \
|
|
|
|
return Encode(in, w, h, bps, IMPORTER, LOSSLESS_DEFAULT_QUALITY, 1, out); \
|
|
|
|
}
|
|
|
|
|
2013-04-13 19:49:35 +02:00
|
|
|
LOSSLESS_ENCODE_FUNC(WebPEncodeLosslessRGB, WebPPictureImportRGB)
|
|
|
|
LOSSLESS_ENCODE_FUNC(WebPEncodeLosslessBGR, WebPPictureImportBGR)
|
|
|
|
LOSSLESS_ENCODE_FUNC(WebPEncodeLosslessRGBA, WebPPictureImportRGBA)
|
|
|
|
LOSSLESS_ENCODE_FUNC(WebPEncodeLosslessBGRA, WebPPictureImportBGRA)
|
2012-07-17 20:56:24 +02:00
|
|
|
|
|
|
|
#undef LOSSLESS_ENCODE_FUNC
|
|
|
|
|
2011-08-25 23:22:32 +02:00
|
|
|
//------------------------------------------------------------------------------
|