mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
* cleanup include path * continue * format includes * fix testraw.cc * remove include path from SConstruct * regroup * rebase master * almost done * apply review * rename FileReader.xx to filereader.xx * rename Unlogger.x->unlogger.x * rename FrameReader.xx -> framereader.xx * apply reviews * ui.h * continue * fix framebuffer.cc build error:mv util.h up * full path to msm_media_info * fix qcom2 camerad Co-authored-by: Comma Device <device@comma.ai>
19 lines
345 B
C++
19 lines
345 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;
|
|
};
|