Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
3161af68
Commit
3161af68
authored
Aug 22, 2016
by
Jean-Marc Valin
Committed by
Jean-Marc Valin
Aug 23, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deringing cleanup: remove DERING_REFINEMENT (always on now)
Change-Id: Ic3a6855799be010e69aeab924b013679282ab191
parent
57fa6267
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
14 deletions
+2
-14
av1/common/dering.c
av1/common/dering.c
+0
-4
av1/common/dering.h
av1/common/dering.h
+0
-1
av1/decoder/decodeframe.c
av1/decoder/decodeframe.c
+1
-1
av1/encoder/bitstream.c
av1/encoder/bitstream.c
+1
-1
av1/encoder/pickdering.c
av1/encoder/pickdering.c
+0
-7
No files found.
av1/common/dering.c
View file @
3161af68
...
...
@@ -101,15 +101,11 @@ void av1_dering_frame(YV12_BUFFER_CONFIG *frame, AV1_COMMON *cm,
for
(
pli
=
0
;
pli
<
3
;
pli
++
)
{
int16_t
dst
[
MAX_MIB_SIZE
*
MAX_MIB_SIZE
*
8
*
8
];
int
threshold
;
#if DERING_REFINEMENT
level
=
compute_level_from_index
(
global_level
,
cm
->
mi_grid_visible
[
MAX_MIB_SIZE
*
sbr
*
cm
->
mi_stride
+
MAX_MIB_SIZE
*
sbc
]
->
mbmi
.
dering_gain
);
#else
level
=
global_level
;
#endif
/* FIXME: This is a temporary hack that uses more conservative
deringing for chroma. */
if
(
pli
)
level
=
(
level
*
5
+
4
)
>>
3
;
...
...
av1/common/dering.h
View file @
3161af68
...
...
@@ -24,7 +24,6 @@ extern "C" {
#define DERING_LEVEL_BITS 6
#define MAX_DERING_LEVEL (1 << DERING_LEVEL_BITS)
#define DERING_REFINEMENT 1
#define DERING_REFINEMENT_BITS 2
#define DERING_REFINEMENT_LEVELS 4
...
...
av1/decoder/decodeframe.c
View file @
3161af68
...
...
@@ -672,7 +672,7 @@ static void decode_partition(AV1Decoder *const pbi, MACROBLOCKD *const xd,
(
bsize
==
BLOCK_8X8
||
partition
!=
PARTITION_SPLIT
))
dec_update_partition_context
(
xd
,
mi_row
,
mi_col
,
subsize
,
num_8x8_wh
);
#if
DERING_REFINEMENT
#if
CONFIG_DERING
if
(
bsize
==
BLOCK_64X64
)
{
if
(
cm
->
dering_level
!=
0
&&
!
sb_all_skip
(
cm
,
mi_row
,
mi_col
))
{
cm
->
mi_grid_visible
[
mi_row
*
cm
->
mi_stride
+
mi_col
]
->
mbmi
.
dering_gain
=
...
...
av1/encoder/bitstream.c
View file @
3161af68
...
...
@@ -910,7 +910,7 @@ static void write_modes_sb(AV1_COMP *cpi, const TileInfo *const tile,
(
bsize
==
BLOCK_8X8
||
partition
!=
PARTITION_SPLIT
))
update_partition_context
(
xd
,
mi_row
,
mi_col
,
subsize
,
bsize
);
#if
DERING_REFINEMENT
#if
CONFIG_DERING
if
(
bsize
==
BLOCK_64X64
&&
cm
->
dering_level
!=
0
&&
!
sb_all_skip
(
cm
,
mi_row
,
mi_col
))
{
aom_write_literal
(
...
...
av1/encoder/pickdering.c
View file @
3161af68
...
...
@@ -118,7 +118,6 @@ int av1_dering_search(YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref,
}
}
}
#if DERING_REFINEMENT
best_level
=
0
;
/* Search for the best global level one value at a time. */
for
(
global_level
=
2
;
global_level
<
MAX_DERING_LEVEL
;
global_level
++
)
{
...
...
@@ -161,12 +160,6 @@ int av1_dering_search(YV12_BUFFER_CONFIG *frame, const YV12_BUFFER_CONFIG *ref,
->
mbmi
.
dering_gain
=
best_gi
;
}
}
#else
best_level
=
0
;
for
(
level
=
0
;
level
<
MAX_DERING_LEVEL
;
level
++
)
{
if
(
tot_mse
[
level
]
<
tot_mse
[
best_level
])
best_level
=
level
;
}
#endif
aom_free
(
src
);
aom_free
(
ref_coeff
);
aom_free
(
bskip
);
...
...
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