Commit 5222b8f4 authored by AlexandrX Konovalov's avatar AlexandrX Konovalov Committed by Oleg Nabiullin

mjpege: drop unused code

(cherry picked from commit afea2a0d)
parent f2b7da41
......@@ -2796,20 +2796,6 @@ JERRCODE CJPEGEncoder::ProcessBuffer(uint32_t rowMCU, uint32_t colMCU, uint32_t
else
{
return JPEG_NOT_IMPLEMENTED;
/*pSrc16u = (uint16_t*)((uint8_t*)m_src.p.Data16s[c] + rowMCU * curr_comp->m_ss_height * srcStep) + 8 * colMCU * curr_comp->m_hsampling;
copyHeight = curr_comp->m_ss_height;
if(rowMCU == (uint32_t)m_numyMCU - 1)
{
yPadd = m_yPadding;
copyHeight -= m_yPadding;
}
roi.width = (maxMCU - colMCU) * 8 * curr_comp->m_hsampling;
roi.height = copyHeight;
pDst16u = (uint16_t*)curr_comp->GetSSBufferPtr(0);//thread_id);
status = mfxiCopy_16s_C1R((int16_t*)pSrc16u,srcStep,(int16_t*)pDst16u,curr_comp->m_ss_step,roi);*/
}
if(ippStsNoErr != status)
......@@ -2822,8 +2808,6 @@ JERRCODE CJPEGEncoder::ProcessBuffer(uint32_t rowMCU, uint32_t colMCU, uint32_t
if(m_curr_scan.xPadding)
{
for(i = 0; i < curr_comp->m_ss_height; i++)
{
if(m_src.precision <= 8)
{
int width;
......@@ -2846,18 +2830,6 @@ JERRCODE CJPEGEncoder::ProcessBuffer(uint32_t rowMCU, uint32_t colMCU, uint32_t
p[width - xPadd + j] = val;
}
}
else // 16 bit only 444 sampling
{
uint16_t* p16;
uint16_t v16;
p16 = (uint16_t*)(curr_comp->GetSSBufferPtr(0/*thread_id*/) + i * curr_comp->m_ss_step);
v16 = p16[(maxMCU - colMCU) * m_curr_scan.mcuWidth / curr_comp->m_h_factor - 1];//8 * curr_comp->m_hsampling;
for(j = 0; j < m_curr_scan.xPadding; j++)
{
p16[(maxMCU - colMCU) * m_curr_scan.mcuWidth / curr_comp->m_h_factor + j] = v16;//8 * curr_comp->m_hsampling;
}
}
}
}
// expand bottom edge only for last MCU row
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment