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
911406f2
Commit
911406f2
authored
Apr 07, 2007
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typo
Originally committed as revision 22932 to
svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent
f5bccd85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
swscale.c
libswscale/swscale.c
+1
-1
swscale_internal.h
libswscale/swscale_internal.h
+1
-1
swscale_template.c
libswscale/swscale_template.c
+1
-1
No files found.
libswscale/swscale.c
View file @
911406f2
...
...
@@ -2050,7 +2050,7 @@ SwsContext *sws_getContext(int srcW, int srcH, int srcFormat, int dstW, int dstH
c
->
chrIntHSubSample
=
c
->
chrDstHSubSample
;
c
->
chrIntVSubSample
=
c
->
chrSrcVSubSample
;
//
note the -((-x)>>y) is so that we allways round toward +inf
//
Note the -((-x)>>y) is so that we always round toward +inf.
c
->
chrSrcW
=
-
((
-
srcW
)
>>
c
->
chrSrcHSubSample
);
c
->
chrSrcH
=
-
((
-
srcH
)
>>
c
->
chrSrcVSubSample
);
c
->
chrDstW
=
-
((
-
dstW
)
>>
c
->
chrDstHSubSample
);
...
...
libswscale/swscale_internal.h
View file @
911406f2
...
...
@@ -54,7 +54,7 @@ typedef struct SwsContext{
int
chrSrcW
,
chrSrcH
,
chrDstW
,
chrDstH
;
int
lumXInc
,
chrXInc
;
int
lumYInc
,
chrYInc
;
int
dstFormat
,
srcFormat
;
///< format 4:2:0 type is al
l
ways YV12
int
dstFormat
,
srcFormat
;
///< format 4:2:0 type is always YV12
int
origDstFormat
,
origSrcFormat
;
///< format
int
chrSrcHSubSample
,
chrSrcVSubSample
;
int
chrIntHSubSample
,
chrIntVSubSample
;
...
...
libswscale/swscale_template.c
View file @
911406f2
...
...
@@ -2317,7 +2317,7 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW
{
#ifdef HAVE_MMX
assert
(
filterSize
%
4
==
0
&&
filterSize
>
0
);
if
(
filterSize
==
4
)
//
allways true for upscaling, sometimes for down too
if
(
filterSize
==
4
)
//
Always true for upscaling, sometimes for down, too.
{
long
counter
=
-
2
*
dstW
;
filter
-=
counter
*
2
;
...
...
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