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
1f46b50a
Commit
1f46b50a
authored
Apr 18, 2012
by
hakuya
Committed by
Michael Niedermayer
Apr 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added AVClass for AVSubtitleRect
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fd6eba42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
avcodec.h
libavcodec/avcodec.h
+8
-0
options.c
libavcodec/options.c
+23
-0
No files found.
libavcodec/avcodec.h
View file @
1f46b50a
...
...
@@ -3291,6 +3291,14 @@ const AVClass *avcodec_get_class(void);
*/
const
AVClass
*
avcodec_get_frame_class
(
void
);
/**
* Get the AVClass for AVSubtitleRect. It can be used in combination with
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
*
* @see av_opt_find().
*/
const
AVClass
*
avcodec_get_subtitle_rect_class
(
void
);
/**
* Copy the settings of the source AVCodecContext into the destination
* AVCodecContext. The resulting destination codec context will be
...
...
libavcodec/options.c
View file @
1f46b50a
...
...
@@ -255,3 +255,26 @@ const AVClass *avcodec_get_frame_class(void)
{
return
&
av_frame_class
;
}
#define SROFFSET(x) offsetof(AVSubtitleRect,x)
static
const
AVOption
subtitle_rect_options
[]
=
{
{
"x"
,
""
,
SROFFSET
(
x
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
0
},
{
"y"
,
""
,
SROFFSET
(
y
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
0
},
{
"w"
,
""
,
SROFFSET
(
w
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
0
},
{
"h"
,
""
,
SROFFSET
(
h
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
0
},
{
"type"
,
""
,
SROFFSET
(
type
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
INT_MAX
,
0
},
{
NULL
},
};
static
const
AVClass
av_subtitle_rect_class
=
{
.
class_name
=
"AVSubtitleRect"
,
.
item_name
=
NULL
,
.
option
=
subtitle_rect_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
const
AVClass
*
avcodec_get_subtitle_rect_class
(
void
)
{
return
&
av_subtitle_rect_class
;
}
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