openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.

19 lines
345 B

#pragma once
#include <cstdlib>
#include "hardware/hwcomposer_defs.h"
5 years ago
bool set_brightness(int brightness);
5 years ago
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;
};