mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
add missing extern "C"
Change-Id: Ie325dbbb1c1f0f55a3f207a32c67139f59c03bf2
This commit is contained in:
parent
b3ce8c522a
commit
a871de0255
@ -12,6 +12,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "vp8i.h"
|
#include "vp8i.h"
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// VP8Decoder
|
// VP8Decoder
|
||||||
|
|
||||||
@ -658,3 +662,9 @@ void VP8Clear(VP8Decoder* const dec) {
|
|||||||
memset(&dec->br_, 0, sizeof(dec->br_));
|
memset(&dec->br_, 0, sizeof(dec->br_));
|
||||||
dec->ready_ = 0;
|
dec->ready_ = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include "webp/encode.h"
|
#include "webp/encode.h"
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// WebPConfig
|
// WebPConfig
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@ -105,3 +109,7 @@ int WebPValidateConfig(const WebPConfig* const config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
@ -12,6 +12,10 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "vp8enci.h"
|
#include "vp8enci.h"
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
// NOTE: clip1, tables and InitTables are repeated entries of dsp.c
|
// NOTE: clip1, tables and InitTables are repeated entries of dsp.c
|
||||||
static uint8_t abs0[255 + 255 + 1]; // abs(i)
|
static uint8_t abs0[255 + 255 + 1]; // abs(i)
|
||||||
static uint8_t abs1[255 + 255 + 1]; // abs(i)>>1
|
static uint8_t abs1[255 + 255 + 1]; // abs(i)>>1
|
||||||
@ -368,3 +372,7 @@ void VP8AdjustFilterStrength(VP8EncIterator* const it) {
|
|||||||
enc->dqm_[s].fstrength_ = best_level;
|
enc->dqm_[s].fstrength_ = best_level;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
} // extern "C"
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user