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
7ae6ae34
Commit
7ae6ae34
authored
Oct 20, 2016
by
Jingning Han
Committed by
Gerrit Code Review
Oct 20, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Add 2x2 directional intra predictors" into nextgenv2
parents
9cce4369
03b35140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
158 additions
and
0 deletions
+158
-0
aom_dsp/aom_dsp_rtcd_defs.pl
aom_dsp/aom_dsp_rtcd_defs.pl
+30
-0
aom_dsp/intrapred.c
aom_dsp/intrapred.c
+128
-0
No files found.
aom_dsp/aom_dsp_rtcd_defs.pl
View file @
7ae6ae34
...
...
@@ -65,6 +65,36 @@ specialize qw/aom_h_predictor_2x2/;
add_proto
qw/void aom_tm_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_tm_predictor_2x2/
;
add_proto
qw/void aom_he_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_he_predictor_2x2/
;
add_proto
qw/void aom_ve_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_ve_predictor_2x2/
;
add_proto
qw/void aom_d207_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d207_predictor_2x2/
;
add_proto
qw/void aom_d63_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d63_predictor_2x2/
;
add_proto
qw/void aom_d63f_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d63f_predictor_2x2/
;
add_proto
qw/void aom_d45_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d45_predictor_2x2/
;
add_proto
qw/void aom_d45e_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d45e_predictor_2x2/
;
add_proto
qw/void aom_d117_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d117_predictor_2x2/
;
add_proto
qw/void aom_d135_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d135_predictor_2x2/
;
add_proto
qw/void aom_d153_predictor_2x2/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d153_predictor_2x2/
;
add_proto
qw/void aom_d207_predictor_4x4/
,
"
uint8_t *dst, ptrdiff_t y_stride, const uint8_t *above, const uint8_t *left
";
specialize
qw/aom_d207_predictor_4x4 sse2/
;
...
...
aom_dsp/intrapred.c
View file @
7ae6ae34
...
...
@@ -321,6 +321,134 @@ static INLINE void dc_predictor(uint8_t *dst, ptrdiff_t stride, int bs,
}
}
void
aom_he_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
H
=
above
[
-
1
];
const
int
I
=
left
[
0
];
const
int
J
=
left
[
1
];
const
int
K
=
left
[
2
];
memset
(
dst
+
stride
*
0
,
AVG3
(
H
,
I
,
J
),
2
);
memset
(
dst
+
stride
*
1
,
AVG3
(
I
,
J
,
K
),
2
);
}
void
aom_ve_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
H
=
above
[
-
1
];
const
int
I
=
above
[
0
];
const
int
J
=
above
[
1
];
const
int
K
=
above
[
2
];
dst
[
0
]
=
AVG3
(
H
,
I
,
J
);
dst
[
1
]
=
AVG3
(
I
,
J
,
K
);
memcpy
(
dst
+
stride
*
1
,
dst
,
2
);
}
void
aom_d207_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
I
=
left
[
0
];
const
int
J
=
left
[
1
];
const
int
K
=
left
[
2
];
const
int
L
=
left
[
3
];
(
void
)
above
;
DST
(
0
,
0
)
=
AVG2
(
I
,
J
);
DST
(
0
,
1
)
=
AVG2
(
J
,
K
);
DST
(
1
,
0
)
=
AVG3
(
I
,
J
,
K
);
DST
(
1
,
1
)
=
AVG3
(
J
,
K
,
L
);
}
void
aom_d63_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
const
int
C
=
above
[
2
];
const
int
D
=
above
[
3
];
(
void
)
left
;
DST
(
0
,
0
)
=
AVG2
(
A
,
B
);
DST
(
1
,
0
)
=
AVG2
(
B
,
C
);
DST
(
0
,
1
)
=
AVG3
(
A
,
B
,
C
);
DST
(
1
,
1
)
=
AVG3
(
B
,
C
,
D
);
}
void
aom_d63f_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
const
int
C
=
above
[
2
];
const
int
D
=
above
[
3
];
(
void
)
left
;
DST
(
0
,
0
)
=
AVG2
(
A
,
B
);
DST
(
1
,
0
)
=
AVG2
(
B
,
C
);
DST
(
0
,
1
)
=
AVG3
(
A
,
B
,
C
);
DST
(
1
,
1
)
=
AVG3
(
B
,
C
,
D
);
}
void
aom_d45_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
const
int
C
=
above
[
2
];
const
int
D
=
above
[
3
];
const
int
E
=
above
[
4
];
(
void
)
stride
;
(
void
)
left
;
DST
(
0
,
0
)
=
AVG3
(
A
,
B
,
C
);
DST
(
1
,
0
)
=
DST
(
0
,
1
)
=
AVG3
(
B
,
C
,
D
);
DST
(
1
,
1
)
=
AVG3
(
C
,
D
,
E
);
}
void
aom_d45e_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
const
int
C
=
above
[
2
];
const
int
D
=
above
[
3
];
const
int
E
=
above
[
4
];
(
void
)
stride
;
(
void
)
left
;
DST
(
0
,
0
)
=
AVG3
(
A
,
B
,
C
);
DST
(
1
,
0
)
=
DST
(
0
,
1
)
=
AVG3
(
B
,
C
,
D
);
DST
(
1
,
1
)
=
AVG3
(
C
,
D
,
E
);
}
void
aom_d117_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
I
=
left
[
0
];
const
int
X
=
above
[
-
1
];
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
DST
(
0
,
0
)
=
AVG2
(
X
,
A
);
DST
(
1
,
0
)
=
AVG2
(
A
,
B
);
DST
(
0
,
1
)
=
AVG3
(
I
,
X
,
A
);
DST
(
1
,
1
)
=
AVG3
(
X
,
A
,
B
);
}
void
aom_d135_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
I
=
left
[
0
];
const
int
J
=
left
[
1
];
const
int
X
=
above
[
-
1
];
const
int
A
=
above
[
0
];
const
int
B
=
above
[
1
];
(
void
)
stride
;
DST
(
0
,
1
)
=
AVG3
(
X
,
I
,
J
);
DST
(
1
,
1
)
=
DST
(
0
,
0
)
=
AVG3
(
A
,
X
,
I
);
DST
(
1
,
0
)
=
AVG3
(
B
,
A
,
X
);
}
void
aom_d153_predictor_2x2_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
I
=
left
[
0
];
const
int
J
=
left
[
1
];
const
int
X
=
above
[
-
1
];
const
int
A
=
above
[
0
];
DST
(
0
,
0
)
=
AVG2
(
I
,
X
);
DST
(
0
,
1
)
=
AVG2
(
J
,
I
);
DST
(
1
,
0
)
=
AVG3
(
I
,
X
,
A
);
DST
(
1
,
1
)
=
AVG3
(
J
,
I
,
X
);
}
void
aom_he_predictor_4x4_c
(
uint8_t
*
dst
,
ptrdiff_t
stride
,
const
uint8_t
*
above
,
const
uint8_t
*
left
)
{
const
int
H
=
above
[
-
1
];
...
...
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