openpilot v0.8.2 release

This commit is contained in:
Vehicle Researcher
2021-02-23 16:46:22 -08:00
parent 22a4193109
commit aed724beda
415 changed files with 14846 additions and 26654 deletions
+11 -14
View File
@@ -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;
};