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
b7542dd3
Commit
b7542dd3
authored
Feb 07, 2012
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: fix V plane memory location in bilinear/unscaled RGB/YUYV case.
Fixes bug 221. CC: libav-stable@libav.org
parent
fb90785e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
swscale_template.c
libswscale/x86/swscale_template.c
+12
-12
No files found.
libswscale/x86/swscale_template.c
View file @
b7542dd3
...
...
@@ -688,10 +688,10 @@ static void RENAME(yuv2yuyv422_X)(SwsContext *c, const int16_t *lumFilter,
"1: \n\t"\
"movq (%2, "#index"), %%mm2 \n\t"
/* uvbuf0[eax]*/
\
"movq (%3, "#index"), %%mm3 \n\t"
/* uvbuf1[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm5 \n\t"
/* uvbuf0[eax+2048]*/
\
"movq (%3, "#index"), %%mm4 \n\t"
/* uvbuf1[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"psubw %%mm3, %%mm2 \n\t"
/* uvbuf0[eax] - uvbuf1[eax]*/
\
"psubw %%mm4, %%mm5 \n\t"
/* uvbuf0[eax+2048] - uvbuf1[eax+2048]*/
\
"movq "CHR_MMX_FILTER_OFFSET"+8("#c"), %%mm0 \n\t"\
...
...
@@ -919,10 +919,10 @@ static void RENAME(yuv2rgb565_2)(SwsContext *c, const int16_t *buf[2],
"1: \n\t"\
"movq (%2, "#index"), %%mm2 \n\t"
/* uvbuf0[eax]*/
\
"movq (%3, "#index"), %%mm3 \n\t"
/* uvbuf1[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm5 \n\t"
/* uvbuf0[eax+2048]*/
\
"movq (%3, "#index"), %%mm4 \n\t"
/* uvbuf1[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"psubw %%mm3, %%mm2 \n\t"
/* uvbuf0[eax] - uvbuf1[eax]*/
\
"psubw %%mm4, %%mm5 \n\t"
/* uvbuf0[eax+2048] - uvbuf1[eax+2048]*/
\
"movq "CHR_MMX_FILTER_OFFSET"+8("#c"), %%mm0 \n\t"\
...
...
@@ -974,9 +974,9 @@ static void RENAME(yuv2yuyv422_2)(SwsContext *c, const int16_t *buf[2],
".p2align 4 \n\t"\
"1: \n\t"\
"movq (%2, "#index"), %%mm3 \n\t"
/* uvbuf0[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm4 \n\t"
/* uvbuf0[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"psraw $4, %%mm3 \n\t"
/* uvbuf0[eax] - uvbuf1[eax] >>4*/
\
"psraw $4, %%mm4 \n\t"
/* uvbuf0[eax+2048] - uvbuf1[eax+2048] >>4*/
\
"psubw "U_OFFSET"("#c"), %%mm3 \n\t"
/* (U-128)8*/
\
...
...
@@ -1027,10 +1027,10 @@ static void RENAME(yuv2yuyv422_2)(SwsContext *c, const int16_t *buf[2],
"1: \n\t"\
"movq (%2, "#index"), %%mm2 \n\t"
/* uvbuf0[eax]*/
\
"movq (%3, "#index"), %%mm3 \n\t"
/* uvbuf1[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm5 \n\t"
/* uvbuf0[eax+2048]*/
\
"movq (%3, "#index"), %%mm4 \n\t"
/* uvbuf1[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"paddw %%mm2, %%mm3 \n\t"
/* uvbuf0[eax] + uvbuf1[eax]*/
\
"paddw %%mm5, %%mm4 \n\t"
/* uvbuf0[eax+2048] + uvbuf1[eax+2048]*/
\
"psrlw $5, %%mm3 \n\t"
/*FIXME might overflow*/
\
...
...
@@ -1294,9 +1294,9 @@ static void RENAME(yuv2rgb565_1)(SwsContext *c, const int16_t *buf0,
".p2align 4 \n\t"\
"1: \n\t"\
"movq (%2, "#index"), %%mm3 \n\t"
/* uvbuf0[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm4 \n\t"
/* uvbuf0[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"psraw $7, %%mm3 \n\t" \
"psraw $7, %%mm4 \n\t" \
"movq (%0, "#index", 2), %%mm1 \n\t"
/*buf0[eax]*/
\
...
...
@@ -1312,10 +1312,10 @@ static void RENAME(yuv2rgb565_1)(SwsContext *c, const int16_t *buf0,
"1: \n\t"\
"movq (%2, "#index"), %%mm2 \n\t"
/* uvbuf0[eax]*/
\
"movq (%3, "#index"), %%mm3 \n\t"
/* uvbuf1[eax]*/
\
"add
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"add
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"movq (%2, "#index"), %%mm5 \n\t"
/* uvbuf0[eax+2048]*/
\
"movq (%3, "#index"), %%mm4 \n\t"
/* uvbuf1[eax+2048]*/
\
"sub
"UV_OFF_PX
"("#c"), "#index" \n\t" \
"sub
"UV_OFF_BYTE
"("#c"), "#index" \n\t" \
"paddw %%mm2, %%mm3 \n\t"
/* uvbuf0[eax] + uvbuf1[eax]*/
\
"paddw %%mm5, %%mm4 \n\t"
/* uvbuf0[eax+2048] + uvbuf1[eax+2048]*/
\
"psrlw $8, %%mm3 \n\t" \
...
...
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