mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-23 17:23:44 +08:00
openpilot v0.8.2 release
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include <cstdlib>
|
||||
|
||||
typedef struct FramebufferState FramebufferState;
|
||||
|
||||
FramebufferState* framebuffer_init(
|
||||
const char* name, int32_t layer, int alpha,
|
||||
int *out_w, int *out_h);
|
||||
|
||||
void framebuffer_set_power(FramebufferState *s, int mode);
|
||||
void framebuffer_swap(FramebufferState *s);
|
||||
bool set_brightness(int brightness);
|
||||
|
||||
/* Display power modes */
|
||||
@@ -40,6 +30,13 @@ enum {
|
||||
HWC_POWER_MODE_DOZE_SUSPEND = 3,
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
struct FramebufferState;
|
||||
class FrameBuffer {
|
||||
public:
|
||||
FrameBuffer(const char *name, uint32_t layer, int alpha, int *out_w, int *out_h);
|
||||
~FrameBuffer();
|
||||
void set_power(int mode);
|
||||
void swap();
|
||||
private:
|
||||
FramebufferState *s;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user