mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
@@ -91,7 +91,7 @@ LogCameraInfo cameras_logged[LOG_CAMERA_ID_MAX] = {
|
||||
[LOG_CAMERA_ID_QCAMERA] = {
|
||||
.filename = "qcamera.ts",
|
||||
.fps = MAIN_FPS,
|
||||
.bitrate = 128000,
|
||||
.bitrate = 256000,
|
||||
.is_h265 = false,
|
||||
.downscale = true,
|
||||
#ifndef QCOM2
|
||||
|
||||
@@ -259,12 +259,18 @@ OmxEncoder::OmxEncoder(const char* filename, int width, int height, int fps, int
|
||||
avc.nBFrames = 0;
|
||||
avc.nPFrames = 15;
|
||||
|
||||
avc.eProfile = OMX_VIDEO_AVCProfileBaseline;
|
||||
avc.eProfile = OMX_VIDEO_AVCProfileHigh;
|
||||
avc.eLevel = OMX_VIDEO_AVCLevel31;
|
||||
|
||||
avc.nAllowedPictureTypes |= OMX_VIDEO_PictureTypeB;
|
||||
avc.eLoopFilterMode = OMX_VIDEO_AVCLoopFilterEnable;
|
||||
|
||||
avc.nRefFrames = 1;
|
||||
avc.bUseHadamard = OMX_TRUE;
|
||||
avc.bEntropyCodingCABAC = OMX_TRUE;
|
||||
avc.bWeightedPPrediction = OMX_TRUE;
|
||||
avc.bconstIpred = OMX_TRUE;
|
||||
|
||||
OMX_CHECK(OMX_SetParameter(this->handle, OMX_IndexParamVideoAvc, &avc));
|
||||
}
|
||||
|
||||
|
||||
@@ -23,14 +23,14 @@ if EON:
|
||||
CAMERAS = [
|
||||
("fcamera.hevc", 20, FULL_SIZE),
|
||||
("dcamera.hevc", 10, 770920),
|
||||
("qcamera.ts", 20, 38533),
|
||||
("qcamera.ts", 20, 77066),
|
||||
]
|
||||
else:
|
||||
CAMERAS = [
|
||||
("fcamera.hevc", 20, FULL_SIZE),
|
||||
("dcamera.hevc", 20, FULL_SIZE),
|
||||
("ecamera.hevc", 20, FULL_SIZE),
|
||||
("qcamera.ts", 20, 38533),
|
||||
("qcamera.ts", 20, 77066),
|
||||
]
|
||||
|
||||
# we check frame count, so we don't have to be too strict on size
|
||||
|
||||
Reference in New Issue
Block a user