blob: 737810fd85065510e7a30d3fac72312ba283fb46 [file] [log] [blame]
David Sodman8ef20062015-01-06 09:23:40 -08001/*
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
17typedef struct _image_t image_t;
18
19image_t* image_create();
20void image_set_filename(image_t* image, char* filename);
21void image_set_offset(image_t* image, int32_t offset_x, int32_t offset_y);
22void image_set_location(image_t* image, uint32_t location_x, uint32_t location_y);
Stéphane Marchesin00ff1872015-12-14 13:40:09 -080023int image_load_image_from_file(image_t* image);
24int image_show(image_t* image, video_t* video);
David Sodman8ef20062015-01-06 09:23:40 -080025void image_release(image_t* image);
26void image_destroy(image_t* image);
27
28#endif