Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mccipc
JPEG
Commits
8d0ce53d
Commit
8d0ce53d
authored
Jul 07, 2021
by
changsheng gao
Browse files
main
parent
678a3abf
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/CommonPic.cpp
View file @
8d0ce53d
...
...
@@ -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_uiPic
Width
/
CUSIZE
;
col
++
)
for
(
UInt
col
=
0
;
col
<
m_uiPic
Height
/
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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment