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
cf1d794a
Commit
cf1d794a
authored
Jan 25, 2011
by
Diego Elio Pettenò
Committed by
Janne Grunau
Jan 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ff_ass_subtitle_header static to ass.c
Signed-off-by:
Janne Grunau
<
janne-ffmpeg@jannau.net
>
parent
d625a32d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
26 deletions
+20
-26
ass.c
libavcodec/ass.c
+20
-5
ass.h
libavcodec/ass.h
+0
-21
No files found.
libavcodec/ass.c
View file @
cf1d794a
...
...
@@ -22,11 +22,26 @@
#include "avcodec.h"
#include "ass.h"
int
ff_ass_subtitle_header
(
AVCodecContext
*
avctx
,
const
char
*
font
,
int
font_size
,
int
color
,
int
back_color
,
int
bold
,
int
italic
,
int
underline
,
int
alignment
)
/**
* Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
*
* @param avctx pointer to the AVCodecContext
* @param font name of the default font face to use
* @param font_size default font size to use
* @param color default text color to use (ABGR)
* @param back_color default background color to use (ABGR)
* @param bold 1 for bold text, 0 for normal text
* @param italic 1 for italic text, 0 for normal text
* @param underline 1 for underline text, 0 for normal text
* @param alignment position of the text (left, center, top...), defined after
* the layout of the numpad (1-3 sub, 4-6 mid, 7-9 top)
* @return >= 0 on success otherwise an error code <0
*/
static
int
ff_ass_subtitle_header
(
AVCodecContext
*
avctx
,
const
char
*
font
,
int
font_size
,
int
color
,
int
back_color
,
int
bold
,
int
italic
,
int
underline
,
int
alignment
)
{
char
header
[
512
];
...
...
libavcodec/ass.h
View file @
cf1d794a
...
...
@@ -39,27 +39,6 @@
#define ASS_DEFAULT_ALIGNMENT 2
/** @} */
/**
* Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS.
*
* @param avctx pointer to the AVCodecContext
* @param font name of the default font face to use
* @param font_size default font size to use
* @param color default text color to use (ABGR)
* @param back_color default background color to use (ABGR)
* @param bold 1 for bold text, 0 for normal text
* @param italic 1 for italic text, 0 for normal text
* @param underline 1 for underline text, 0 for normal text
* @param alignment position of the text (left, center, top...), defined after
* the layout of the numpad (1-3 sub, 4-6 mid, 7-9 top)
* @return >= 0 on success otherwise an error code <0
*/
int
ff_ass_subtitle_header
(
AVCodecContext
*
avctx
,
const
char
*
font
,
int
font_size
,
int
color
,
int
back_color
,
int
bold
,
int
italic
,
int
underline
,
int
alignment
);
/**
* Generate a suitable AVCodecContext.subtitle_header for SUBTITLE_ASS
* with default style.
...
...
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