Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
FreeType
FreeType Demo Programs
Commits
57d79ab8
Commit
57d79ab8
authored
Jan 14, 2021
by
Alexei Podtelezhnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* graph/gblamy.h (*): Blend a bit faster.
parent
acb1b022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
26 deletions
+30
-26
ChangeLog
ChangeLog
+6
-2
graph/gblany.h
graph/gblany.h
+24
-24
No files found.
ChangeLog
View file @
57d79ab8
2021-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/gblamy.h (*): Blend a bit faster.
2021-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
[graph] Check blending cache earlier.
...
...
@@ -7,9 +11,9 @@
to keep the direct span rendering light.
* graph/gblany.h (*): Move the cache check from here...
* graph/gblblit.c (gblender_blit_init, grSetTargetPenBrush): ... to
* graph/gblblit.c (gblender_blit_init, grSetTargetPenBrush): ... to
here.
* graph/gblender.h (GBLANDER_VARS, GBLENDER_CHANNEL_VARS): Restore old
* graph/gblender.h (GBLANDER_VARS, GBLENDER_CHANNEL_VARS): Restore old
macros.
2021-01-14 Alexei Podtelezhnikov <apodtele@gmail.com>
...
...
graph/gblany.h
View file @
57d79ab8
...
...
@@ -102,13 +102,13 @@ GCONCAT( _gblender_blit_gray8_, GDST_TYPE )( GBlenderBlit blit,
GBLENDER_VARS
(
blender
,
pix
);
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
(
blit
->
src_x
)
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
@@ -163,13 +163,13 @@ GCONCAT( _gblender_blit_hrgb_, GDST_TYPE )( GBlenderBlit blit,
GBLENDER_CHANNEL_VARS
(
blender
,
r
,
g
,
b
);
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
*
3
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
blit
->
src_x
*
3
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
@@ -248,13 +248,13 @@ GCONCAT( _gblender_blit_hbgr_, GDST_TYPE )( GBlenderBlit blit,
GBLENDER_CHANNEL_VARS
(
blender
,
r
,
g
,
b
);
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
*
3
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
blit
->
src_x
*
3
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
@@ -333,14 +333,14 @@ GCONCAT( _gblender_blit_vrgb_, GDST_TYPE )( GBlenderBlit blit,
GBLENDER_CHANNEL_VARS
(
blender
,
r
,
g
,
b
);
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
int
src_pitch
=
blit
->
src_pitch
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
blit
->
src_x
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
@@ -419,14 +419,14 @@ GCONCAT( _gblender_blit_vbgr_, GDST_TYPE )( GBlenderBlit blit,
GBLENDER_CHANNEL_VARS
(
blender
,
r
,
g
,
b
);
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
int
src_pitch
=
blit
->
src_pitch
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
blit
->
src_x
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
@@ -501,13 +501,13 @@ GCONCAT( _gblender_blit_bgra_, GDST_TYPE )( GBlenderBlit blit,
(
void
)
color
;
/* unused */
int
h
=
blit
->
height
;
const
unsigned
char
*
src_line
=
blit
->
src_line
;
unsigned
char
*
dst_line
=
blit
->
dst_line
;
const
unsigned
char
*
src_line
=
blit
->
src_line
+
blit
->
src_x
*
4
;
unsigned
char
*
dst_line
=
blit
->
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
do
{
const
unsigned
char
*
src
=
src_line
+
blit
->
src_x
*
4
;
unsigned
char
*
dst
=
dst_line
+
blit
->
dst_x
*
GDST_INCR
;
const
unsigned
char
*
src
=
src_line
;
unsigned
char
*
dst
=
dst_line
;
int
w
=
blit
->
width
;
do
...
...
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