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
ef4c82cb
Commit
ef4c82cb
authored
Jun 17, 2007
by
Ramiro Polla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Indentation
Originally committed as revision 9347 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e4d86a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
imlib2.c
vhook/imlib2.c
+9
-9
No files found.
vhook/imlib2.c
View file @
ef4c82cb
...
...
@@ -268,13 +268,13 @@ int Configure(void **ctxp, int argc, char *argv[])
}
if
(
ci
->
text
||
ci
->
file
)
{
ci
->
fn
=
imlib_load_font
(
font
);
if
(
!
ci
->
fn
)
{
fprintf
(
stderr
,
"Failed to load font '%s'
\n
"
,
font
);
return
-
1
;
}
imlib_context_set_font
(
ci
->
fn
);
imlib_context_set_direction
(
IMLIB_TEXT_TO_RIGHT
);
ci
->
fn
=
imlib_load_font
(
font
);
if
(
!
ci
->
fn
)
{
fprintf
(
stderr
,
"Failed to load font '%s'
\n
"
,
font
);
return
-
1
;
}
imlib_context_set_font
(
ci
->
fn
);
imlib_context_set_direction
(
IMLIB_TEXT_TO_RIGHT
);
}
if
(
color
)
{
...
...
@@ -334,7 +334,7 @@ int Configure(void **ctxp, int argc, char *argv[])
}
if
(
!
ci
->
eval_colors
)
imlib_context_set_color
(
ci
->
r
,
ci
->
g
,
ci
->
b
,
255
);
imlib_context_set_color
(
ci
->
r
,
ci
->
g
,
ci
->
b
,
255
);
/* load the image (for example, credits for a movie) */
if
(
ci
->
fileImage
)
{
...
...
@@ -401,7 +401,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
imlib_context_set_image
(
image
);
data
=
imlib_image_get_data
();
avpicture_fill
(
&
picture1
,
(
uint8_t
*
)
data
,
PIX_FMT_RGB32
,
width
,
height
);
avpicture_fill
(
&
picture1
,
(
uint8_t
*
)
data
,
PIX_FMT_RGB32
,
width
,
height
);
// if we already got a SWS context, let's realloc if is not re-useable
ci
->
toRGB_convert_ctx
=
sws_getCachedContext
(
ci
->
toRGB_convert_ctx
,
...
...
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