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
ea15df80
Commit
ea15df80
authored
Nov 12, 2005
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use sse16_sse2() in nsse
Originally committed as revision 4688 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a0ed075b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dsputil_mmx.c
libavcodec/i386/dsputil_mmx.c
+5
-2
No files found.
libavcodec/i386/dsputil_mmx.c
View file @
ea15df80
...
@@ -1165,8 +1165,11 @@ static int hf_noise16_mmx(uint8_t * pix1, int line_size, int h) {
...
@@ -1165,8 +1165,11 @@ static int hf_noise16_mmx(uint8_t * pix1, int line_size, int h) {
static
int
nsse16_mmx
(
void
*
p
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
{
static
int
nsse16_mmx
(
void
*
p
,
uint8_t
*
pix1
,
uint8_t
*
pix2
,
int
line_size
,
int
h
)
{
MpegEncContext
*
c
=
p
;
MpegEncContext
*
c
=
p
;
int
score1
=
sse16_mmx
(
c
,
pix1
,
pix2
,
line_size
,
h
);
int
score1
,
score2
;
int
score2
=
hf_noise16_mmx
(
pix1
,
line_size
,
h
)
-
hf_noise16_mmx
(
pix2
,
line_size
,
h
);
if
(
c
)
score1
=
c
->
dsp
.
sse
[
0
](
c
,
pix1
,
pix2
,
line_size
,
h
);
else
score1
=
sse16_mmx
(
c
,
pix1
,
pix2
,
line_size
,
h
);
score2
=
hf_noise16_mmx
(
pix1
,
line_size
,
h
)
-
hf_noise16_mmx
(
pix2
,
line_size
,
h
);
if
(
c
)
return
score1
+
ABS
(
score2
)
*
c
->
avctx
->
nsse_weight
;
if
(
c
)
return
score1
+
ABS
(
score2
)
*
c
->
avctx
->
nsse_weight
;
else
return
score1
+
ABS
(
score2
)
*
8
;
else
return
score1
+
ABS
(
score2
)
*
8
;
...
...
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