blob: baec6b2c0d8e056aad00ceceee112a8bd57eae7d [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
10#include "video.h"
11
12typedef struct _splash_t splash_t;
13
David Sodman8ef20062015-01-06 09:23:40 -080014int splash_add_image(splash_t*, char* filespec);
Dominik Behr32a7c892015-10-09 15:47:53 -070015int splash_destroy(splash_t*);
16splash_t* splash_init();
17int splash_is_hires(splash_t* splash);
18int splash_num_images(splash_t* splash);
19void splash_present_term_file(splash_t* splash);
20int splash_run(splash_t*, dbus_t **dbus);
David Sodmanf0a925a2015-05-04 11:19:19 -070021int splash_set_clear(splash_t* splash, uint32_t clear_color);
David Sodmanbbcb0522014-09-19 10:34:07 -070022void splash_set_dbus(splash_t* splash, dbus_t* dbus);
David Sodman8ef20062015-01-06 09:23:40 -080023void splash_set_default_duration(splash_t* splash, uint32_t duration);
Dominik Behr32a7c892015-10-09 15:47:53 -070024void splash_set_devmode(splash_t* splash);
David Sodman8ef20062015-01-06 09:23:40 -080025void splash_set_loop_duration(splash_t* splash, uint32_t duration);
26void splash_set_loop_offset(splash_t* splash, int32_t x, int32_t y);
Dominik Behr32a7c892015-10-09 15:47:53 -070027void splash_set_loop_start(splash_t* splash, int32_t start_location);
28void splash_set_offset(splash_t* splash, int32_t x, int32_t y);
David Sodmanbbcb0522014-09-19 10:34:07 -070029
30#endif // SPLASH_H