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
3a2bed1f
Commit
3a2bed1f
authored
Dec 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale/yuv2rgb: Fix width % 4 != 0 with bgr4_byte/rgb4_byte
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3848512d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
yuv2rgb.c
libswscale/yuv2rgb.c
+17
-1
No files found.
libswscale/yuv2rgb.c
View file @
3a2bed1f
...
...
@@ -608,7 +608,23 @@ YUV2RGBFUNC(yuv2rgb_c_4b_ordered_dither, uint8_t, 0)
LOADCHROMA
(
3
);
PUTRGB4DB
(
dst_2
,
py_2
,
3
,
6
+
8
);
PUTRGB4DB
(
dst_1
,
py_1
,
3
,
6
);
CLOSEYUV2RGBFUNC
(
8
)
ENDYUV2RGBLINE
(
8
,
0
)
const
uint8_t
*
d64
=
ff_dither_8x8_73
[
y
&
7
];
const
uint8_t
*
d128
=
ff_dither_8x8_220
[
y
&
7
];
LOADCHROMA
(
0
);
PUTRGB4DB
(
dst_1
,
py_1
,
0
,
0
);
PUTRGB4DB
(
dst_2
,
py_2
,
0
,
0
+
8
);
LOADCHROMA
(
1
);
PUTRGB4DB
(
dst_2
,
py_2
,
1
,
2
+
8
);
PUTRGB4DB
(
dst_1
,
py_1
,
1
,
2
);
ENDYUV2RGBLINE
(
8
,
1
)
const
uint8_t
*
d64
=
ff_dither_8x8_73
[
y
&
7
];
const
uint8_t
*
d128
=
ff_dither_8x8_220
[
y
&
7
];
LOADCHROMA
(
0
);
PUTRGB4DB
(
dst_1
,
py_1
,
0
,
0
);
PUTRGB4DB
(
dst_2
,
py_2
,
0
,
0
+
8
);
ENDYUV2RGBFUNC
()
YUV2RGBFUNC
(
yuv2rgb_c_1_ordered_dither
,
uint8_t
,
0
)
const
uint8_t
*
d128
=
ff_dither_8x8_220
[
y
&
7
];
...
...
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