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
dc54bd4e
Commit
dc54bd4e
authored
Dec 15, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/utils: factor (d + 1 < 4) out
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
61edda9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utils.c
libswscale/utils.c
+4
-4
No files found.
libswscale/utils.c
View file @
dc54bd4e
...
@@ -781,10 +781,10 @@ static av_cold int init_hscaler_mmxext(int dstW, int xInc, uint8_t *filterCode,
...
@@ -781,10 +781,10 @@ static av_cold int init_hscaler_mmxext(int dstW, int xInc, uint8_t *filterCode,
int
c
=
((
xpos
+
xInc
*
2
)
>>
16
)
-
xx
;
int
c
=
((
xpos
+
xInc
*
2
)
>>
16
)
-
xx
;
int
d
=
((
xpos
+
xInc
*
3
)
>>
16
)
-
xx
;
int
d
=
((
xpos
+
xInc
*
3
)
>>
16
)
-
xx
;
int
inc
=
(
d
+
1
<
4
);
int
inc
=
(
d
+
1
<
4
);
uint8_t
*
fragment
=
(
d
+
1
<
4
)
?
fragmentB
:
fragmentA
;
uint8_t
*
fragment
=
inc
?
fragmentB
:
fragmentA
;
x86_reg
imm8OfPShufW1
=
(
d
+
1
<
4
)
?
imm8OfPShufW1B
:
imm8OfPShufW1A
;
x86_reg
imm8OfPShufW1
=
inc
?
imm8OfPShufW1B
:
imm8OfPShufW1A
;
x86_reg
imm8OfPShufW2
=
(
d
+
1
<
4
)
?
imm8OfPShufW2B
:
imm8OfPShufW2A
;
x86_reg
imm8OfPShufW2
=
inc
?
imm8OfPShufW2B
:
imm8OfPShufW2A
;
x86_reg
fragmentLength
=
(
d
+
1
<
4
)
?
fragmentLengthB
:
fragmentLengthA
;
x86_reg
fragmentLength
=
inc
?
fragmentLengthB
:
fragmentLengthA
;
int
maxShift
=
3
-
(
d
+
inc
);
int
maxShift
=
3
-
(
d
+
inc
);
int
shift
=
0
;
int
shift
=
0
;
...
...
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