David Sodman | 8ef2006 | 2015-01-06 09:23:40 -0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2015 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | #ifndef IMAGE_H |
| 7 | #define IMAGE_H |
| 8 | |
| 9 | #include <stddef.h> |
| 10 | #include <stdbool.h> |
| 11 | #include <stdint.h> |
| 12 | #include <png.h> |
| 13 | |
| 14 | #include "video.h" |
| 15 | |
| 16 | |
| 17 | typedef struct _image_t image_t; |
| 18 | |
| 19 | image_t* image_create(); |
| 20 | void image_set_filename(image_t* image, char* filename); |
| 21 | void image_set_offset(image_t* image, int32_t offset_x, int32_t offset_y); |
| 22 | void image_set_location(image_t* image, uint32_t location_x, uint32_t location_y); |
| 23 | int image_load_image_from_file(image_t *image); |
| 24 | int image_show(image_t* image, video_t *video); |
| 25 | void image_release(image_t* image); |
| 26 | void image_destroy(image_t* image); |
| 27 | |
| 28 | #endif |