cake
/
libcasio
Archived
1
1
Fork 0
This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
libcasio/lib/picture/internals.h

37 lines
1.5 KiB
C

/* ****************************************************************************
* 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/>.
* ************************************************************************* */
#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 */