mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-23 19:33:52 +08:00
* fix camera config * typos * oops * more typo * lambless * forget to send * visualize hist * more typo * 0xC000 * simple * data loss prevention, clean up later * loggerd * back up code * backup * fixed memory leak * fix vsync * upload ecam * WB * 3stream * fix OMX crash on loggerd rotation * rewritten debayer kernel * update viewer * improved AE * no artifact lines/grids * standard trigger * cleanups * CCM * cleanups * slight tweak * upd push sock * build all these * update tele fl * update cereal * upd viewer * DualCameraState -> MultiCameraState * cameras_open * disable frame zmq push by default * more cleanup * no apks * fix submodule error * wat * clean up trash * remove junk * only build on qcom2 * no need to check these * update cereal * some more minor cleanup * bump panda * add todo * minor typo * Revert "minor typo" This reverts commit 9233a1df7cac214fae6827cdae3a10cb3bd060d9. * not care * use consistent hdr * some cleanup * Update selfdrive/camerad/main.cc Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> * more cleanups * remove irrelevant stuff * this too * cleanup * rerun ci Co-authored-by: ZwX1616 <zwx1616@gmail.com> Co-authored-by: Tici <robbe@comma.ai> Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
#include <stdio.h>
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
|
|
#include "camera_qcom.h"
|
|
// TODO: add qcom2 test
|
|
|
|
bool do_exit = false;
|
|
|
|
void cloudlog_e(int levelnum, const char* filename, int lineno, const char* func,
|
|
const char* fmt, ...) {
|
|
va_list args;
|
|
va_start(args, fmt);
|
|
vprintf(fmt, args);
|
|
printf("\n");
|
|
}
|
|
|
|
void set_thread_name(const char* name) {
|
|
}
|
|
|
|
// tbuffers
|
|
|
|
void tbuffer_init2(TBuffer *tb, int num_bufs, const char* name,
|
|
void (*release_cb)(void* c, int idx),
|
|
void* cb_cookie) {
|
|
printf("tbuffer_init2\n");
|
|
}
|
|
|
|
void tbuffer_dispatch(TBuffer *tb, int idx) {
|
|
printf("tbuffer_dispatch\n");
|
|
}
|
|
|
|
void tbuffer_stop(TBuffer *tb) {
|
|
printf("tbuffer_stop\n");
|
|
}
|
|
|
|
int main() {
|
|
MultiCameraState s={};
|
|
cameras_init(&s);
|
|
VisionBuf camera_bufs_rear[0x10] = {0};
|
|
VisionBuf camera_bufs_focus[0x10] = {0};
|
|
VisionBuf camera_bufs_stats[0x10] = {0};
|
|
VisionBuf camera_bufs_front[0x10] = {0};
|
|
cameras_open(&s,
|
|
camera_bufs_rear, camera_bufs_focus,
|
|
camera_bufs_stats, camera_bufs_front);
|
|
cameras_close(&s);
|
|
}
|
|
|