mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 04:53:53 +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>
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;
|
|
};
|