Commit 8d0ce53d authored by changsheng gao's avatar changsheng gao
Browse files

main

parent 678a3abf
......@@ -7,9 +7,10 @@ Void CommonPic::compressPic()
{
for (UInt ch = COMPONENT_Y; ch < MAX_NUM_COMPONENT; ch++)
{
for (UInt row = 0; row < m_uiPicWidth / CUSIZE; row++)
UInt uiScale = (ch == COMPONENT_Y) ? 1 : 2;
for (UInt row = 0; row < m_uiPicWidth / uiScale / CUSIZE; row++)
{
for (UInt col = 0; col < m_uiPicWidth / CUSIZE; col++)
for (UInt col = 0; col < m_uiPicHeight /uiScale / CUSIZE; col++)
{
CodingUnit rcCu;
rcCu.create();
......@@ -25,9 +26,10 @@ Void CommonPic::encodePic()
{
for (UInt ch = COMPONENT_Y; ch < MAX_NUM_COMPONENT; ch++)
{
for (UInt row = 0; row < m_uiPicWidth/CUSIZE; row++)
{
for (UInt col = 0; col < m_uiPicWidth/CUSIZE; col++)
UInt uiScale = (ch == COMPONENT_Y) ? 1 : 2;
for (UInt row = 0; row < m_uiPicWidth / uiScale / CUSIZE; row++)
{
for (UInt col = 0; col < m_uiPicHeight / uiScale / CUSIZE; col++)
{
CodingUnit rcCu;
rcCu.create();
......
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