blob: 8e56faef65d08ac0b38809106ec8927556b80008 [file] [log] [blame]
David Sodmanbbcb0522014-09-19 10:34:07 -07001/*
2 * Copyright (c) 2014 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
7#ifndef SPLASH_H
8#define SPLASH_H
9
David Sodmanbbcb0522014-09-19 10:34:07 -070010typedef struct _splash_t splash_t;
11
David Sodman8ef20062015-01-06 09:23:40 -080012int splash_add_image(splash_t*, char* filespec);
Dominik Behrda6df412016-08-02 12:56:42 -070013int splash_destroy(splash_t*);
14splash_t* splash_init(int pts_fd);
Dominik Behr32a7c892015-10-09 15:47:53 -070015int splash_is_hires(splash_t* splash);
16int splash_num_images(splash_t* splash);
Dominik Behr797a3832016-01-11 15:53:11 -080017int splash_run(splash_t*);
David Sodmanf0a925a2015-05-04 11:19:19 -070018int splash_set_clear(splash_t* splash, uint32_t clear_color);
David Sodman8ef20062015-01-06 09:23:40 -080019void splash_set_default_duration(splash_t* splash, uint32_t duration);
Dominik Behrfd9fdda2016-03-28 17:16:45 -070020void splash_set_loop_count(splash_t* splash, int32_t count);
David Sodman8ef20062015-01-06 09:23:40 -080021void splash_set_loop_duration(splash_t* splash, uint32_t duration);
22void splash_set_loop_offset(splash_t* splash, int32_t x, int32_t y);
Dominik Behr32a7c892015-10-09 15:47:53 -070023void splash_set_loop_start(splash_t* splash, int32_t start_location);
24void splash_set_offset(splash_t* splash, int32_t x, int32_t y);
Dominik Behr92d9e312016-05-04 20:10:48 -070025void splash_set_scale(splash_t* splash, uint32_t scale);
Dominik Behrb1abcba2016-04-14 14:57:21 -070026void splash_redrm(splash_t* splash);
David Sodmanbbcb0522014-09-19 10:34:07 -070027
28#endif // SPLASH_H