Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IceT
IceT
Commits
22a3d186
Commit
22a3d186
authored
Oct 31, 2017
by
Kenneth Moreland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues with unused variables
parent
819eaf0e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
src/ice-t/image.c
src/ice-t/image.c
+0
-6
src/strategies/radixk.c
src/strategies/radixk.c
+4
-4
No files found.
src/ice-t/image.c
View file @
22a3d186
...
...
@@ -2241,8 +2241,6 @@ void icetDecompressSubImageCorrectBackground(
IceTImage
image
)
{
IceTBoolean
need_correction
;
const
IceTFloat
*
background_color
;
const
IceTUByte
*
background_color_word
;
icetGetBooleanv
(
ICET_NEED_BACKGROUND_CORRECTION
,
&
need_correction
);
if
(
!
need_correction
)
{
...
...
@@ -2253,10 +2251,6 @@ void icetDecompressSubImageCorrectBackground(
ICET_TEST_IMAGE_HEADER
(
image
);
ICET_TEST_SPARSE_IMAGE_HEADER
(
compressed_image
);
background_color
=
icetUnsafeStateGetFloat
(
ICET_TRUE_BACKGROUND_COLOR
);
background_color_word
=
(
IceTUByte
*
)
icetUnsafeStateGetInteger
(
ICET_TRUE_BACKGROUND_COLOR_WORD
);
#define INPUT_SPARSE_IMAGE compressed_image
#define OUTPUT_IMAGE image
#define TIME_DECOMPRESSION
...
...
src/strategies/radixk.c
View file @
22a3d186
...
...
@@ -438,9 +438,11 @@ static radixkPartnerInfo *radixkGetPartners(const radixkRoundInfo *round_info,
=
icetSparseImageSplitPartitionNumPixels
(
start_size
,
current_k
,
remaining_partitions
);
/* Always send when splitting. */
sending_data
=
ICET_TRUE
;
}
else
{
partition_num_pixels
=
start_size
;
/* Not splitting. Only send if receiving. */
sending_data
=
!
receiving_data
;
}
sparse_image_size
=
icetSparseImageBufferSize
(
partition_num_pixels
,
1
);
...
...
@@ -450,8 +452,7 @@ static radixkPartnerInfo *radixkGetPartners(const radixkRoundInfo *round_info,
}
else
{
recv_buf_pool
=
NULL
;
}
if
(
round_info
->
split
)
{
/* Only need send buff when splitting, always need when splitting. */
if
(
sending_data
)
{
send_buf_pool
=
icetGetStateBuffer
(
RADIXK_SEND_BUFFER
,
sparse_image_size
*
current_k
);
}
else
{
...
...
@@ -476,8 +477,7 @@ static radixkPartnerInfo *radixkGetPartners(const radixkRoundInfo *round_info,
p
->
receiveBuffer
=
NULL
;
}
if
(
round_info
->
split
)
{
/* Only need send buff when splitting, always need when splitting.*/
if
(
sending_data
)
{
send_buffer
=
((
IceTByte
*
)
send_buf_pool
+
i
*
sparse_image_size
);
p
->
sendImage
=
icetSparseImageAssignBuffer
(
send_buffer
,
partition_num_pixels
,
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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