Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
acf80c8c
Commit
acf80c8c
authored
2 years ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
minor changes
parent
315ce82b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!11
decompression/compression for non-imagette data
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/cmp_support.h
+1
-1
1 addition, 1 deletion
include/cmp_support.h
lib/cmp_support.c
+4
-14
4 additions, 14 deletions
lib/cmp_support.c
with
5 additions
and
15 deletions
include/cmp_support.h
+
1
−
1
View file @
acf80c8c
...
@@ -153,7 +153,7 @@ struct cmp_cfg {
...
@@ -153,7 +153,7 @@ struct cmp_cfg {
uint32_t
rdcu_new_model_adr
;
/* RDCU updated model start address, the address in the RDCU SRAM where the updated model is stored */
uint32_t
rdcu_new_model_adr
;
/* RDCU updated model start address, the address in the RDCU SRAM where the updated model is stored */
uint32_t
rdcu_buffer_adr
;
/* RDCU compressed data start address, the first output data address in the RDCU SRAM */
uint32_t
rdcu_buffer_adr
;
/* RDCU compressed data start address, the first output data address in the RDCU SRAM */
enum
cmp_data_type
data_type
;
/* Compression Data Product Types */
enum
cmp_data_type
data_type
;
/* Compression Data Product Types */
uint32_t
cmp_mode
;
/* 0: raw mode
enum
cmp_mode
cmp_mode
;
/* 0: raw mode
* 1: model mode with zero escape symbol mechanism
* 1: model mode with zero escape symbol mechanism
* 2: 1d differencing mode without input model with zero escape symbol mechanism
* 2: 1d differencing mode without input model with zero escape symbol mechanism
* 3: model mode with multi escape symbol mechanism
* 3: model mode with multi escape symbol mechanism
...
...
This diff is collapsed.
Click to expand it.
lib/cmp_support.c
+
4
−
14
View file @
acf80c8c
...
@@ -149,6 +149,7 @@ int rdcu_supported_cmp_mode_is_used(enum cmp_mode cmp_mode)
...
@@ -149,6 +149,7 @@ int rdcu_supported_cmp_mode_is_used(enum cmp_mode cmp_mode)
case
CMP_MODE_MODEL_MULTI
:
case
CMP_MODE_MODEL_MULTI
:
case
CMP_MODE_DIFF_MULTI
:
case
CMP_MODE_DIFF_MULTI
:
return
1
;
return
1
;
case
CMP_MODE_STUFF
:
default:
default:
return
0
;
return
0
;
}
}
...
@@ -250,17 +251,7 @@ int multi_escape_mech_is_used(enum cmp_mode cmp_mode)
...
@@ -250,17 +251,7 @@ int multi_escape_mech_is_used(enum cmp_mode cmp_mode)
int
cmp_imagette_data_type_is_used
(
enum
cmp_data_type
data_type
)
int
cmp_imagette_data_type_is_used
(
enum
cmp_data_type
data_type
)
{
{
switch
(
data_type
)
{
return
rdcu_supported_data_type_is_used
(
data_type
);
case
DATA_TYPE_IMAGETTE
:
case
DATA_TYPE_IMAGETTE_ADAPTIVE
:
case
DATA_TYPE_SAT_IMAGETTE
:
case
DATA_TYPE_SAT_IMAGETTE_ADAPTIVE
:
case
DATA_TYPE_F_CAM_IMAGETTE
:
case
DATA_TYPE_F_CAM_IMAGETTE_ADAPTIVE
:
return
1
;
default:
return
0
;
}
}
}
...
@@ -487,7 +478,7 @@ int cmp_cfg_icu_gen_par_is_valid(const struct cmp_cfg *cfg)
...
@@ -487,7 +478,7 @@ int cmp_cfg_icu_gen_par_is_valid(const struct cmp_cfg *cfg)
}
}
if
(
cfg
->
cmp_mode
>
CMP_MODE_STUFF
)
{
if
(
cfg
->
cmp_mode
>
CMP_MODE_STUFF
)
{
debug_print
(
"Error: selected cmp_mode: %
u
is not supported.
\n
"
,
cfg
->
cmp_mode
);
debug_print
(
"Error: selected cmp_mode: %
i
is not supported.
\n
"
,
cfg
->
cmp_mode
);
cfg_invalid
++
;
cfg_invalid
++
;
}
}
...
@@ -594,7 +585,6 @@ int cmp_cfg_icu_buffers_is_valid(const struct cmp_cfg *cfg)
...
@@ -594,7 +585,6 @@ int cmp_cfg_icu_buffers_is_valid(const struct cmp_cfg *cfg)
* @param cmp_par compression parameter
* @param cmp_par compression parameter
* @param spill spillover threshold parameter
* @param spill spillover threshold parameter
* @param cmp_mode compression mode
* @param cmp_mode compression mode
* @param data_type compression data type
* @param par_name string describing the use of the compression par. for
* @param par_name string describing the use of the compression par. for
* debug messages (can be NULL)
* debug messages (can be NULL)
*
*
...
@@ -891,7 +881,7 @@ void print_cmp_cfg(const struct cmp_cfg *cfg)
...
@@ -891,7 +881,7 @@ void print_cmp_cfg(const struct cmp_cfg *cfg)
{
{
size_t
i
;
size_t
i
;
printf
(
"cmp_mode: %
u
\n
"
,
cfg
->
cmp_mode
);
printf
(
"cmp_mode: %
i
\n
"
,
cfg
->
cmp_mode
);
printf
(
"golomb_par: %u
\n
"
,
cfg
->
golomb_par
);
printf
(
"golomb_par: %u
\n
"
,
cfg
->
golomb_par
);
printf
(
"spill: %u
\n
"
,
cfg
->
spill
);
printf
(
"spill: %u
\n
"
,
cfg
->
spill
);
printf
(
"model_value: %u
\n
"
,
cfg
->
model_value
);
printf
(
"model_value: %u
\n
"
,
cfg
->
model_value
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment