Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
29160257
Commit
29160257
authored
Nov 09, 2007
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
factorize
Originally committed as revision 10972 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
9abc7e0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
intrax8dsp.c
libavcodec/intrax8dsp.c
+2
-4
No files found.
libavcodec/intrax8dsp.c
View file @
29160257
...
...
@@ -118,15 +118,13 @@ static void x8_setup_spacial_compensation(uint8_t *src, uint8_t *dst, int linesi
}
//now calc the stuff we need
if
(
edges
&
3
){
//mb_x==0 || mb_y==0){
int
avg
=
(
sum
+
4
)
>>
3
;
if
(
edges
&
1
){
//(mb_x==0) {//implies mb_y!=0
int
avg
=
(
sum
+
4
)
>>
3
;
memset
(
dst
+
area1
,
avg
,
8
+
8
+
1
);
//areas 1,2 and 3 are averaged
sum
+=
avg
*
9
;
//8+1(egde pixel)
}
else
{
//implies y==0 x!=0
int
avg
=
(
sum
+
4
)
>>
3
;
memset
(
dst
+
area3
,
avg
,
1
+
16
+
8
);
//areas 3, 4,5,6
sum
+=
avg
*
9
;
}
sum
+=
avg
*
9
;
}
else
{
uint8_t
c
;
c
=*
(
src
-
1
-
linesize
);
//the edge pixel,in the top line and left column
...
...
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