Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
129cb23c
Commit
129cb23c
authored
Apr 08, 2014
by
Dmitry Kovalev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding vp9_ssim.h file.
Change-Id: Ib3b3864a6018c62ac1ea18e30795af74464596cd
parent
e8e380f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
14 deletions
+36
-14
vp9/encoder/vp9_onyx_if.c
vp9/encoder/vp9_onyx_if.c
+3
-13
vp9/encoder/vp9_ssim.c
vp9/encoder/vp9_ssim.c
+2
-1
vp9/encoder/vp9_ssim.h
vp9/encoder/vp9_ssim.h
+30
-0
vp9/vp9cx.mk
vp9/vp9cx.mk
+1
-0
No files found.
vp9/encoder/vp9_onyx_if.c
View file @
129cb23c
...
...
@@ -41,6 +41,9 @@
#include "vp9/encoder/vp9_rdopt.h"
#include "vp9/encoder/vp9_segmentation.h"
#include "vp9/encoder/vp9_speed_features.h"
#if CONFIG_INTERNAL_STATS
#include "vp9/encoder/vp9_ssim.h"
#endif
#include "vp9/encoder/vp9_temporal_filter.h"
#include "vp9/encoder/vp9_resize.h"
#include "vp9/encoder/vp9_svc_layercontext.h"
...
...
@@ -63,19 +66,6 @@ void vp9_coef_tree_initialize();
#define MAX_MB_RATE 250
#define MAXRATE_1080P 2025000
#if CONFIG_INTERNAL_STATS
extern
double
vp9_calc_ssim
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
,
int
lumamask
,
double
*
weight
);
extern
double
vp9_calc_ssimg
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
,
double
*
ssim_y
,
double
*
ssim_u
,
double
*
ssim_v
);
#endif
// #define OUTPUT_YUV_REC
#ifdef OUTPUT_YUV_SRC
...
...
vp9/encoder/vp9_ssim.c
View file @
129cb23c
...
...
@@ -8,8 +8,9 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "./vp9_rtcd.h"
#include "vp9/encoder/vp9_
onyx_int
.h"
#include "vp9/encoder/vp9_
ssim
.h"
void
vp9_ssim_parms_16x16_c
(
uint8_t
*
s
,
int
sp
,
uint8_t
*
r
,
int
rp
,
unsigned
long
*
sum_s
,
unsigned
long
*
sum_r
,
...
...
vp9/encoder/vp9_ssim.h
0 → 100644
View file @
129cb23c
/*
* Copyright (c) 2014 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 VP9_ENCODER_VP9_SSIM_H_
#define VP9_ENCODER_VP9_SSIM_H_
#ifdef __cplusplus
extern
"C"
{
#endif
#include "vpx_scale/yv12config.h"
double
vp9_calc_ssim
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
,
int
lumamask
,
double
*
weight
);
double
vp9_calc_ssimg
(
YV12_BUFFER_CONFIG
*
source
,
YV12_BUFFER_CONFIG
*
dest
,
double
*
ssim_y
,
double
*
ssim_u
,
double
*
ssim_v
);
#ifdef __cplusplus
}
// extern "C"
#endif
#endif // VP9_ENCODER_VP9_SSIM_H_
vp9/vp9cx.mk
View file @
129cb23c
...
...
@@ -68,6 +68,7 @@ VP9_CX_SRCS-yes += encoder/vp9_svc_layercontext.c
VP9_CX_SRCS-yes
+=
encoder/vp9_resize.c
VP9_CX_SRCS-yes
+=
encoder/vp9_resize.h
VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS)
+=
encoder/vp9_ssim.c
VP9_CX_SRCS-$(CONFIG_INTERNAL_STATS)
+=
encoder/vp9_ssim.h
VP9_CX_SRCS-yes
+=
encoder/vp9_tokenize.c
VP9_CX_SRCS-yes
+=
encoder/vp9_treewriter.c
VP9_CX_SRCS-yes
+=
encoder/vp9_variance.c
...
...
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