IQ.Pilot Release Commit @ 0798119
This commit is contained in:
20
msgq_repo/msgq/visionipc/visionbuf.cc
Normal file
20
msgq_repo/msgq/visionipc/visionbuf.cc
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "msgq/visionipc/visionbuf.h"
|
||||
|
||||
void VisionBuf::init_yuv(size_t init_width, size_t init_height, size_t init_stride, size_t init_uv_offset){
|
||||
this->width = init_width;
|
||||
this->height = init_height;
|
||||
this->stride = init_stride;
|
||||
this->uv_offset = init_uv_offset;
|
||||
|
||||
this->y = (uint8_t *)this->addr;
|
||||
this->uv = this->y + this->uv_offset;
|
||||
}
|
||||
|
||||
|
||||
uint64_t VisionBuf::get_frame_id() {
|
||||
return *frame_id;
|
||||
}
|
||||
|
||||
void VisionBuf::set_frame_id(uint64_t id) {
|
||||
*frame_id = id;
|
||||
}
|
||||
Reference in New Issue
Block a user