135 bool found_start_code)
141 required_size = ((required_size / 188) + 1) * 188;
144 auto *new_buffer =
new uint8_t[required_size];
146 if (new_buffer ==
nullptr)
149 LOG(VB_GENERAL, LOG_ERR,
150 "H2645Parser::fillRBSP: FAILED to allocate RBSP buffer!");
193 if (found_start_code)
204 LOG(VB_GENERAL, LOG_ERR,
205 QString(
"H2645Parser::fillRBSP: Found start code, rbsp_index "
206 "is %1 but it should be >4")
329 LOG(VB_RECORD, LOG_DEBUG,
330 QString(
"sarWidth %1 sarHeight %2")
378 LOG(VB_RECORD, LOG_DEBUG,
379 QString(
"VUI unitsInTick %1 timeScale %2 fixedRate %3")
401 aspect *= 1.0909090909090908;
405 aspect *= 0.90909090909090906;
409 aspect *= 1.4545454545454546;
413 aspect *= 1.2121212121212122;
417 aspect *= 2.1818181818181817;
421 aspect *= 1.8181818181818181;
425 aspect *= 2.9090909090909092;
429 aspect *= 2.4242424242424243;
433 aspect *= 1.6363636363636365;
437 aspect *= 1.3636363636363635;
441 aspect *= 1.9393939393939394;
445 aspect *= 1.6161616161616161;
449 aspect *= 1.3333333333333333;
468 static constexpr
double eps = 1E-5;
471 if (fabs(aspect - 1.3333333333333333) < eps)
473 if (fabs(aspect - 1.7777777777777777) < eps)
475 if (fabs(aspect - 2.21) < eps)
478 return aspect * 1000000;