2017-06-12 01:06:23 +02:00
|
|
|
/* ****************************************************************************
|
|
|
|
* picture/picture.h -- picture internals.
|
|
|
|
* Copyright (C) 2017 Thomas "Cakeisalie5" Touhey <thomas@touhey.fr>
|
|
|
|
*
|
|
|
|
* This file is part of libcasio.
|
|
|
|
* libcasio is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU Lesser General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3.0 of the License,
|
|
|
|
* or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* libcasio is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
* See the GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with libcasio; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ************************************************************************* */
|
2019-05-25 03:36:14 +02:00
|
|
|
#ifndef LOCAL_PICTURE_H
|
|
|
|
# define LOCAL_PICTURE_H 20190523
|
|
|
|
# include "../internals.h"
|
|
|
|
|
|
|
|
struct casio_picture {
|
|
|
|
unsigned int width, height;
|
|
|
|
casio_pixel_t **pixels;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Get the expected size out of a width, a height and a picture format. */
|
|
|
|
|
|
|
|
CASIO_EXTERN(int) casio_prepare_picture
|
|
|
|
OF((casio_picture_t **picturep, unsigned int width, unsigned int height));
|
|
|
|
CASIO_EXTERN(int) casio_get_picture_estimated_size
|
|
|
|
OF((casio_pictureformat_t format,
|
|
|
|
unsigned int width, unsigned int height, size_t *sizep));
|
|
|
|
|
|
|
|
#endif /* LOCAL_PICTURE_H */
|