Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
3ed8fe87
Commit
3ed8fe87
authored
Feb 17, 2011
by
John Koleszar
Browse files
remove unused vp8_predict_dc function
Change-Id: I64fa47889c54cfed094a674c49ef0996d49bdd42
parent
d371ca93
Changes
8
Hide whitespace changes
Inline
Side-by-side
vp8/common/predictdc.c
deleted
100644 → 0
View file @
d371ca93
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include <stdlib.h>
#include "blockd.h"
void
vp8_predict_dc
(
short
*
lastdc
,
short
*
thisdc
,
short
quant
,
short
*
cons
)
{
int
diff
;
int
sign
;
int
last_dc
=
*
lastdc
;
int
this_dc
=
*
thisdc
;
if
(
*
cons
>
DCPREDCNTTHRESH
)
{
this_dc
+=
last_dc
;
}
diff
=
abs
(
last_dc
-
this_dc
);
sign
=
(
last_dc
>>
31
)
^
(
this_dc
>>
31
);
sign
|=
(
!
last_dc
|
!
this_dc
);
if
(
sign
)
{
*
cons
=
0
;
}
else
{
if
(
diff
<=
DCPREDSIMTHRESH
*
quant
)
(
*
cons
)
++
;
}
*
thisdc
=
this_dc
;
*
lastdc
=
this_dc
;
}
vp8/common/predictdc.h
deleted
100644 → 0
View file @
d371ca93
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef __PREDICTDC_H
#define __PREDICTDC_H
void
uvvp8_predict_dc
(
short
*
lastdc
,
short
*
thisdc
,
short
quant
,
short
*
cons
);
void
vp8_predict_dc
(
short
*
lastdc
,
short
*
thisdc
,
short
quant
,
short
*
cons
);
#endif
vp8/decoder/arm/dequantize_arm.c
View file @
3ed8fe87
...
...
@@ -11,7 +11,6 @@
#include "vpx_ports/config.h"
#include "vp8/decoder/dequantize.h"
#include "vp8/common/predictdc.h"
#include "vp8/common/idct.h"
#include "vpx_mem/vpx_mem.h"
...
...
vp8/decoder/decodframe.c
View file @
3ed8fe87
...
...
@@ -30,7 +30,6 @@
#include "vpx_mem/vpx_mem.h"
#include "vp8/common/idct.h"
#include "dequantize.h"
#include "vp8/common/predictdc.h"
#include "vp8/common/threading.h"
#include "decoderthreading.h"
#include "dboolhuff.h"
...
...
vp8/decoder/dequantize.c
View file @
3ed8fe87
...
...
@@ -11,7 +11,6 @@
#include "vpx_ports/config.h"
#include "dequantize.h"
#include "vp8/common/predictdc.h"
#include "vp8/common/idct.h"
#include "vpx_mem/vpx_mem.h"
...
...
vp8/encoder/arm/quantize_arm.c
View file @
3ed8fe87
...
...
@@ -14,7 +14,6 @@
#include "vp8/encoder/quantize.h"
#include "vp8/common/entropy.h"
#include "vp8/common/predictdc.h"
DECLARE_ALIGNED
(
16
,
const
short
,
vp8_rvsplus1_default_zig_zag1d
[
16
])
=
{
...
...
vp8/encoder/quantize.c
View file @
3ed8fe87
...
...
@@ -14,7 +14,6 @@
#include "quantize.h"
#include "vp8/common/entropy.h"
#include "vp8/common/predictdc.h"
#define EXACT_QUANT
...
...
vp8/vp8_common.mk
View file @
3ed8fe87
...
...
@@ -45,7 +45,6 @@ VP8_COMMON_SRCS-yes += common/loopfilter.h
VP8_COMMON_SRCS-yes
+=
common/modecont.h
VP8_COMMON_SRCS-yes
+=
common/mv.h
VP8_COMMON_SRCS-yes
+=
common/onyxc_int.h
VP8_COMMON_SRCS-yes
+=
common/predictdc.h
VP8_COMMON_SRCS-yes
+=
common/quant_common.h
VP8_COMMON_SRCS-yes
+=
common/recon.h
VP8_COMMON_SRCS-yes
+=
common/reconinter.h
...
...
@@ -63,7 +62,6 @@ VP8_COMMON_SRCS-yes += common/loopfilter_filters.c
VP8_COMMON_SRCS-yes
+=
common/mbpitch.c
VP8_COMMON_SRCS-yes
+=
common/modecont.c
VP8_COMMON_SRCS-yes
+=
common/modecontext.c
VP8_COMMON_SRCS-yes
+=
common/predictdc.c
VP8_COMMON_SRCS-yes
+=
common/quant_common.c
VP8_COMMON_SRCS-yes
+=
common/recon.c
VP8_COMMON_SRCS-yes
+=
common/reconinter.c
...
...
Write
Preview
Supports
Markdown
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