87 : m_rbspBuffer(new uint8_t[m_rbspBufferSize])
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")
380 LOG(VB_RECORD, LOG_DEBUG,
381 QString(
"VUI unitsInTick %1 timeScale %2 fixedRate %3")
403 aspect *= 1.0909090909090908;
407 aspect *= 0.90909090909090906;
411 aspect *= 1.4545454545454546;
415 aspect *= 1.2121212121212122;
419 aspect *= 2.1818181818181817;
423 aspect *= 1.8181818181818181;
427 aspect *= 2.9090909090909092;
431 aspect *= 2.4242424242424243;
435 aspect *= 1.6363636363636365;
439 aspect *= 1.3636363636363635;
443 aspect *= 1.9393939393939394;
447 aspect *= 1.6161616161616161;
451 aspect *= 1.3333333333333333;
470 static constexpr
double eps = 1E-5;
473 if (fabs(aspect - 1.3333333333333333) < eps)
475 if (fabs(aspect - 1.7777777777777777) < eps)
477 if (fabs(aspect - 2.21) < eps)
480 return aspect * 1000000;