mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
cosmetics: normalize VP8GetCPUInfo checks
- use '!= NULL' + dec_neon/STORE_WHT: align '\'s Change-Id: I0f0ce49bd9c58e771bafb24c51c070d5ebd77e53
This commit is contained in:
parent
e3dd9243cb
commit
82ae1bf299
@ -715,7 +715,7 @@ void VP8DspInit(void) {
|
||||
VP8SimpleHFilter16i = SimpleHFilter16i;
|
||||
|
||||
// If defined, use CPUInfo() to overwrite some pointers with faster versions.
|
||||
if (VP8GetCPUInfo) {
|
||||
if (VP8GetCPUInfo != NULL) {
|
||||
#if defined(WEBP_USE_SSE2)
|
||||
if (VP8GetCPUInfo(kSSE2)) {
|
||||
VP8DspInitSSE2();
|
||||
|
@ -365,7 +365,7 @@ static void TransformDC(const int16_t* in, uint8_t* dst) {
|
||||
*dst = vgetq_lane_s32(row01.val[1], col); out += 16; \
|
||||
*dst = vgetq_lane_s32(row23.val[0], col); out += 16; \
|
||||
*dst = vgetq_lane_s32(row23.val[1], col); out += 16; \
|
||||
} while (0) \
|
||||
} while (0)
|
||||
|
||||
static void TransformWHT(const int16_t* in, int16_t* out) {
|
||||
int32x4x2_t tmp0; // tmp[0..7]
|
||||
|
@ -740,7 +740,7 @@ void VP8EncDspInit(void) {
|
||||
VP8Copy4x4 = Copy4x4;
|
||||
|
||||
// If defined, use CPUInfo() to overwrite some pointers with faster versions.
|
||||
if (VP8GetCPUInfo) {
|
||||
if (VP8GetCPUInfo != NULL) {
|
||||
#if defined(WEBP_USE_SSE2)
|
||||
if (VP8GetCPUInfo(kSSE2)) {
|
||||
VP8EncDspInitSSE2();
|
||||
|
@ -284,7 +284,7 @@ void WebPRescalerInit(WebPRescaler* const wrk, int src_width, int src_height,
|
||||
if (WebPRescalerImportRow == NULL) {
|
||||
WebPRescalerImportRow = ImportRowC;
|
||||
WebPRescalerExportRow = ExportRowC;
|
||||
if (VP8GetCPUInfo) {
|
||||
if (VP8GetCPUInfo != NULL) {
|
||||
#if defined(WEBP_USE_MIPS32)
|
||||
if (VP8GetCPUInfo(kMIPS32)) {
|
||||
WebPRescalerImportRow = ImportRowMIPS;
|
||||
|
Loading…
Reference in New Issue
Block a user