Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
3309b040
Commit
3309b040
authored
11 years ago
by
Dmitry Kovalev
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Consistent names for FDCT functions."
parents
86528586
fc82dbb4
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp9/encoder/vp9_dct.c
+25
-25
vp9/encoder/vp9_dct.c
with
25 additions
and
25 deletions
vp9/encoder/vp9_dct.c
+
25
−
25
View file @
3309b040
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include
"vp9/common/vp9_blockd.h"
#include
"vp9/common/vp9_blockd.h"
#include
"vp9/common/vp9_idct.h"
#include
"vp9/common/vp9_idct.h"
static
void
fdct4
_1d
(
int16_t
*
input
,
int16_t
*
output
)
{
static
void
fdct4
(
int16_t
*
input
,
int16_t
*
output
)
{
int16_t
step
[
4
];
int16_t
step
[
4
];
int
temp1
,
temp2
;
int
temp1
,
temp2
;
...
@@ -102,7 +102,7 @@ void vp9_short_fdct4x4_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -102,7 +102,7 @@ void vp9_short_fdct4x4_c(int16_t *input, int16_t *output, int pitch) {
}
}
}
}
static
void
fadst4
_1d
(
int16_t
*
input
,
int16_t
*
output
)
{
static
void
fadst4
(
int16_t
*
input
,
int16_t
*
output
)
{
int
x0
,
x1
,
x2
,
x3
;
int
x0
,
x1
,
x2
,
x3
;
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
...
@@ -143,10 +143,10 @@ static void fadst4_1d(int16_t *input, int16_t *output) {
...
@@ -143,10 +143,10 @@ static void fadst4_1d(int16_t *input, int16_t *output) {
}
}
static
const
transform_2d
FHT_4
[]
=
{
static
const
transform_2d
FHT_4
[]
=
{
{
fdct4
_1d
,
fdct4
_1d
},
// DCT_DCT = 0
{
fdct4
,
fdct4
},
// DCT_DCT = 0
{
fadst4
_1d
,
fdct4
_1d
},
// ADST_DCT = 1
{
fadst4
,
fdct4
},
// ADST_DCT = 1
{
fdct4
_1d
,
fadst4
_1d
},
// DCT_ADST = 2
{
fdct4
,
fadst4
},
// DCT_ADST = 2
{
fadst4
_1d
,
fadst4
_1d
}
// ADST_ADST = 3
{
fadst4
,
fadst4
}
// ADST_ADST = 3
};
};
void
vp9_short_fht4x4_c
(
int16_t
*
input
,
int16_t
*
output
,
void
vp9_short_fht4x4_c
(
int16_t
*
input
,
int16_t
*
output
,
...
@@ -183,7 +183,7 @@ void vp9_short_fdct8x4_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -183,7 +183,7 @@ void vp9_short_fdct8x4_c(int16_t *input, int16_t *output, int pitch) {
vp9_short_fdct4x4_c
(
input
+
4
,
output
+
16
,
pitch
);
vp9_short_fdct4x4_c
(
input
+
4
,
output
+
16
,
pitch
);
}
}
static
void
fdct8
_1d
(
int16_t
*
input
,
int16_t
*
output
)
{
static
void
fdct8
(
int16_t
*
input
,
int16_t
*
output
)
{
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
/*canbe16*/
int
x0
,
x1
,
x2
,
x3
;
/*canbe16*/
int
x0
,
x1
,
x2
,
x3
;
...
@@ -198,7 +198,7 @@ static void fdct8_1d(int16_t *input, int16_t *output) {
...
@@ -198,7 +198,7 @@ static void fdct8_1d(int16_t *input, int16_t *output) {
s6
=
input
[
1
]
-
input
[
6
];
s6
=
input
[
1
]
-
input
[
6
];
s7
=
input
[
0
]
-
input
[
7
];
s7
=
input
[
0
]
-
input
[
7
];
// fdct4
_1d
(step, step);
// fdct4(step, step);
x0
=
s0
+
s3
;
x0
=
s0
+
s3
;
x1
=
s1
+
s2
;
x1
=
s1
+
s2
;
x2
=
s1
-
s2
;
x2
=
s1
-
s2
;
...
@@ -259,7 +259,7 @@ void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int pitch) {
...
@@ -259,7 +259,7 @@ void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int pitch) {
s6
=
(
input
[
1
*
stride
]
-
input
[
6
*
stride
])
*
4
;
s6
=
(
input
[
1
*
stride
]
-
input
[
6
*
stride
])
*
4
;
s7
=
(
input
[
0
*
stride
]
-
input
[
7
*
stride
])
*
4
;
s7
=
(
input
[
0
*
stride
]
-
input
[
7
*
stride
])
*
4
;
// fdct4
_1d
(step, step);
// fdct4(step, step);
x0
=
s0
+
s3
;
x0
=
s0
+
s3
;
x1
=
s1
+
s2
;
x1
=
s1
+
s2
;
x2
=
s1
-
s2
;
x2
=
s1
-
s2
;
...
@@ -301,7 +301,7 @@ void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int pitch) {
...
@@ -301,7 +301,7 @@ void vp9_short_fdct8x8_c(int16_t *input, int16_t *final_output, int pitch) {
// Rows
// Rows
for
(
i
=
0
;
i
<
8
;
++
i
)
{
for
(
i
=
0
;
i
<
8
;
++
i
)
{
fdct8
_1d
(
&
intermediate
[
i
*
8
],
&
final_output
[
i
*
8
]);
fdct8
(
&
intermediate
[
i
*
8
],
&
final_output
[
i
*
8
]);
for
(
j
=
0
;
j
<
8
;
++
j
)
for
(
j
=
0
;
j
<
8
;
++
j
)
final_output
[
j
+
i
*
8
]
/=
2
;
final_output
[
j
+
i
*
8
]
/=
2
;
}
}
...
@@ -368,7 +368,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -368,7 +368,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
step1
[
6
]
=
((
in
[
1
*
16
]
+
1
)
>>
2
)
-
((
in
[
14
*
16
]
+
1
)
>>
2
);
step1
[
6
]
=
((
in
[
1
*
16
]
+
1
)
>>
2
)
-
((
in
[
14
*
16
]
+
1
)
>>
2
);
step1
[
7
]
=
((
in
[
0
*
16
]
+
1
)
>>
2
)
-
((
in
[
15
*
16
]
+
1
)
>>
2
);
step1
[
7
]
=
((
in
[
0
*
16
]
+
1
)
>>
2
)
-
((
in
[
15
*
16
]
+
1
)
>>
2
);
}
}
// Work on the first eight values; fdct8
_1d
(input, even_results);
// Work on the first eight values; fdct8(input, even_results);
{
{
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
...
@@ -384,7 +384,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -384,7 +384,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
s6
=
input
[
1
]
-
input
[
6
];
s6
=
input
[
1
]
-
input
[
6
];
s7
=
input
[
0
]
-
input
[
7
];
s7
=
input
[
0
]
-
input
[
7
];
// fdct4
_1d
(step, step);
// fdct4(step, step);
x0
=
s0
+
s3
;
x0
=
s0
+
s3
;
x1
=
s1
+
s2
;
x1
=
s1
+
s2
;
x2
=
s1
-
s2
;
x2
=
s1
-
s2
;
...
@@ -486,7 +486,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -486,7 +486,7 @@ void vp9_short_fdct16x16_c(int16_t *input, int16_t *output, int pitch) {
}
}
}
}
static
void
fadst8
_1d
(
int16_t
*
input
,
int16_t
*
output
)
{
static
void
fadst8
(
int16_t
*
input
,
int16_t
*
output
)
{
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
int
x0
=
input
[
7
];
int
x0
=
input
[
7
];
...
@@ -558,10 +558,10 @@ static void fadst8_1d(int16_t *input, int16_t *output) {
...
@@ -558,10 +558,10 @@ static void fadst8_1d(int16_t *input, int16_t *output) {
}
}
static
const
transform_2d
FHT_8
[]
=
{
static
const
transform_2d
FHT_8
[]
=
{
{
fdct8
_1d
,
fdct8
_1d
},
// DCT_DCT = 0
{
fdct8
,
fdct8
},
// DCT_DCT = 0
{
fadst8
_1d
,
fdct8
_1d
},
// ADST_DCT = 1
{
fadst8
,
fdct8
},
// ADST_DCT = 1
{
fdct8
_1d
,
fadst8
_1d
},
// DCT_ADST = 2
{
fdct8
,
fadst8
},
// DCT_ADST = 2
{
fadst8
_1d
,
fadst8
_1d
}
// ADST_ADST = 3
{
fadst8
,
fadst8
}
// ADST_ADST = 3
};
};
void
vp9_short_fht8x8_c
(
int16_t
*
input
,
int16_t
*
output
,
void
vp9_short_fht8x8_c
(
int16_t
*
input
,
int16_t
*
output
,
...
@@ -654,7 +654,7 @@ void vp9_short_walsh8x4_c(int16_t *input, int16_t *output, int pitch) {
...
@@ -654,7 +654,7 @@ void vp9_short_walsh8x4_c(int16_t *input, int16_t *output, int pitch) {
// Rewrote to use same algorithm as others.
// Rewrote to use same algorithm as others.
static
void
fdct16
_1d
(
int16_t
in
[
16
],
int16_t
out
[
16
])
{
static
void
fdct16
(
int16_t
in
[
16
],
int16_t
out
[
16
])
{
/*canbe16*/
int
step1
[
8
];
/*canbe16*/
int
step1
[
8
];
/*canbe16*/
int
step2
[
8
];
/*canbe16*/
int
step2
[
8
];
/*canbe16*/
int
step3
[
8
];
/*canbe16*/
int
step3
[
8
];
...
@@ -680,7 +680,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
...
@@ -680,7 +680,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
step1
[
6
]
=
in
[
1
]
-
in
[
14
];
step1
[
6
]
=
in
[
1
]
-
in
[
14
];
step1
[
7
]
=
in
[
0
]
-
in
[
15
];
step1
[
7
]
=
in
[
0
]
-
in
[
15
];
// fdct8
_1d
(step, step);
// fdct8(step, step);
{
{
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*canbe16*/
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
/*needs32*/
int
t0
,
t1
,
t2
,
t3
;
...
@@ -696,7 +696,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
...
@@ -696,7 +696,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
s6
=
input
[
1
]
-
input
[
6
];
s6
=
input
[
1
]
-
input
[
6
];
s7
=
input
[
0
]
-
input
[
7
];
s7
=
input
[
0
]
-
input
[
7
];
// fdct4
_1d
(step, step);
// fdct4(step, step);
x0
=
s0
+
s3
;
x0
=
s0
+
s3
;
x1
=
s1
+
s2
;
x1
=
s1
+
s2
;
x2
=
s1
-
s2
;
x2
=
s1
-
s2
;
...
@@ -795,7 +795,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
...
@@ -795,7 +795,7 @@ static void fdct16_1d(int16_t in[16], int16_t out[16]) {
out
[
15
]
=
dct_const_round_shift
(
temp2
);
out
[
15
]
=
dct_const_round_shift
(
temp2
);
}
}
void
fadst16
_1d
(
int16_t
*
input
,
int16_t
*
output
)
{
void
fadst16
(
int16_t
*
input
,
int16_t
*
output
)
{
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
,
s8
,
s9
,
s10
,
s11
,
s12
,
s13
,
s14
,
s15
;
int
s0
,
s1
,
s2
,
s3
,
s4
,
s5
,
s6
,
s7
,
s8
,
s9
,
s10
,
s11
,
s12
,
s13
,
s14
,
s15
;
int
x0
=
input
[
15
];
int
x0
=
input
[
15
];
...
@@ -958,10 +958,10 @@ void fadst16_1d(int16_t *input, int16_t *output) {
...
@@ -958,10 +958,10 @@ void fadst16_1d(int16_t *input, int16_t *output) {
}
}
static
const
transform_2d
FHT_16
[]
=
{
static
const
transform_2d
FHT_16
[]
=
{
{
fdct16
_1d
,
fdct16
_1d
},
// DCT_DCT = 0
{
fdct16
,
fdct16
},
// DCT_DCT = 0
{
fadst16
_1d
,
fdct16
_1d
},
// ADST_DCT = 1
{
fadst16
,
fdct16
},
// ADST_DCT = 1
{
fdct16
_1d
,
fadst16
_1d
},
// DCT_ADST = 2
{
fdct16
,
fadst16
},
// DCT_ADST = 2
{
fadst16
_1d
,
fadst16
_1d
}
// ADST_ADST = 3
{
fadst16
,
fadst16
}
// ADST_ADST = 3
};
};
void
vp9_short_fht16x16_c
(
int16_t
*
input
,
int16_t
*
output
,
void
vp9_short_fht16x16_c
(
int16_t
*
input
,
int16_t
*
output
,
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets