mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 18:13:55 +08:00
* c2 power saving
* clean that up
* that works
* add to hw
* set power
* release files
* add that
* include hw base
* pc joins the party
* util
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49748d5dc1
17 lines
343 B
C++
17 lines
343 B
C++
#pragma once
|
|
#include <cstdlib>
|
|
#include "hardware/hwcomposer_defs.h"
|
|
|
|
bool set_brightness(int brightness);
|
|
|
|
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;
|
|
};
|