mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
bdda5bd4bf
move ExUtil*File to imageio_util.h ExUtil*WebP* to webpdec.h string parsing routines remain Change-Id: I0560c4a74e86710d83bc4b5b234f1b5ef9a86f9d
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
// Copyright 2012 Google Inc. All Rights Reserved.
|
|
//
|
|
// 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.
|
|
// -----------------------------------------------------------------------------
|
|
//
|
|
// Utility functions used by the example programs.
|
|
//
|
|
|
|
#ifndef WEBP_IMAGEIO_EXAMPLE_UTIL_H_
|
|
#define WEBP_IMAGEIO_EXAMPLE_UTIL_H_
|
|
|
|
#include "webp/types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//------------------------------------------------------------------------------
|
|
// String parsing
|
|
|
|
// Parses 'v' using strto(ul|l|d)(). If error is non-NULL, '*error' is set to
|
|
// true on failure while on success it is left unmodified to allow chaining of
|
|
// calls. An error is only printed on the first occurrence.
|
|
uint32_t ExUtilGetUInt(const char* const v, int base, int* const error);
|
|
int ExUtilGetInt(const char* const v, int base, int* const error);
|
|
float ExUtilGetFloat(const char* const v, int* const error);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // WEBP_IMAGEIO_EXAMPLE_UTIL_H_
|