Skip to content

Commit 6ecf101

Browse files
author
Louis Fréneau
committed
Config verification new handle lowDelayBitstream experimental feature
1 parent 9c273e8 commit 6ecf101

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/lib/uvgvpcc.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,16 @@ void verifyConfig() {
231231
throw std::runtime_error("The refineSegmentationMaxNNVoxelDistanceLUT (" + std::to_string(p_->refineSegmentationMaxNNVoxelDistanceLUT) +
232232
") needs to be smaller or equal to the size of the adjacentPointsSearch array (" + std::to_string(adjacentPointsSearch.size()) + ").");
233233
}
234+
235+
if (p_->lowDelayBitstream && !p_->encoderInfoSEI) {
236+
throw std::runtime_error("Low delay bitstream (lowDelayBitstream=true) is an experimental feature. It needs the library parameter 'encoderInfoSEI=true' to work properly.");
237+
}
238+
239+
if (p_->lowDelayBitstream && p_->encoderInfoSEI) {
240+
uvgvpcc_enc::Logger::log<uvgvpcc_enc::LogLevel::WARNING>(
241+
"VERIFY CONFIG",
242+
"Low delay bitstream (lowDelayBitstream=true) is an experimental feature. The generated bitstream will probably not be decoded by TMC2.\n");
243+
}
234244
}
235245

236246
void setInputGeoPrecision() {

0 commit comments

Comments
 (0)