Loading services/camera/libcameraservice/api2/HeicCompositeStream.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -441,6 +441,10 @@ void HeicCompositeStream::onHeicFormatChanged(sp<AMessage>& newFormat) { newFormat->setInt32(KEY_TILE_HEIGHT, mGridHeight); newFormat->setInt32(KEY_GRID_ROWS, mGridRows); newFormat->setInt32(KEY_GRID_COLUMNS, mGridCols); int32_t left, top, right, bottom; if (newFormat->findRect("crop", &left, &top, &right, &bottom)) { newFormat->setRect("crop", 0, 0, mOutputWidth - 1, mOutputHeight - 1); } } } newFormat->setInt32(KEY_IS_DEFAULT, 1 /*isPrimary*/); Loading Loading
services/camera/libcameraservice/api2/HeicCompositeStream.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -441,6 +441,10 @@ void HeicCompositeStream::onHeicFormatChanged(sp<AMessage>& newFormat) { newFormat->setInt32(KEY_TILE_HEIGHT, mGridHeight); newFormat->setInt32(KEY_GRID_ROWS, mGridRows); newFormat->setInt32(KEY_GRID_COLUMNS, mGridCols); int32_t left, top, right, bottom; if (newFormat->findRect("crop", &left, &top, &right, &bottom)) { newFormat->setRect("crop", 0, 0, mOutputWidth - 1, mOutputHeight - 1); } } } newFormat->setInt32(KEY_IS_DEFAULT, 1 /*isPrimary*/); Loading