Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
d61617a5
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d61617a5
编写于
10月 17, 2013
作者:
S
Stefano Sabatini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavu/parseutils: add av_get_known_color_name()
上级
1e5271a9
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
32 addition
and
3 deletion
+32
-3
doc/APIchanges
doc/APIchanges
+3
-1
libavutil/parseutils.c
libavutil/parseutils.c
+14
-0
libavutil/parseutils.h
libavutil/parseutils.h
+13
-0
libavutil/version.h
libavutil/version.h
+2
-2
未找到文件。
doc/APIchanges
浏览文件 @
d61617a5
...
...
@@ -15,7 +15,9 @@ libavutil: 2012-10-22
API changes, most recent first:
libavutil 52.47.100
2013-10-27 - xxxxxxx - lavu 52.48.100 - parseutils.h
Add av_get_known_color_name().
2013-10-17 - xxxxxxx - lavu 52.47.100 - opt.h
Add AV_OPT_TYPE_CHANNEL_LAYOUT and channel layout option handlers
av_opt_get_channel_layout() and av_opt_set_channel_layout().
...
...
libavutil/parseutils.c
浏览文件 @
d61617a5
...
...
@@ -420,6 +420,20 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen,
return
0
;
}
const
char
*
av_get_known_color_name
(
int
color_idx
,
const
uint8_t
**
rgbp
)
{
const
ColorEntry
*
color
;
if
((
unsigned
)
color_idx
>=
FF_ARRAY_ELEMS
(
color_table
))
return
NULL
;
color
=
&
color_table
[
color_idx
];
if
(
rgbp
)
*
rgbp
=
color
->
rgb_color
;
return
color
->
name
;
}
/* get a positive number between n_min and n_max, for a maximum length
of len_max. Return -1 if error. */
static
int
date_get_num
(
const
char
**
pp
,
...
...
libavutil/parseutils.h
浏览文件 @
d61617a5
...
...
@@ -98,6 +98,19 @@ int av_parse_video_rate(AVRational *rate, const char *str);
int
av_parse_color
(
uint8_t
*
rgba_color
,
const
char
*
color_string
,
int
slen
,
void
*
log_ctx
);
/**
* Get the name of a color from the internal table of hard-coded named
* colors.
*
* This function is meant to enumerate the color names recognized by
* av_parse_color().
*
* @param color_idx index of the requested color, starting from 0
* @param rgbp if not NULL, will point to a 3-elements array with the color value in RGB
* @return the color name string or NULL if color_idx is not in the array
*/
const
char
*
av_get_known_color_name
(
int
color_idx
,
const
uint8_t
**
rgb
);
/**
* Parse timestr and return in *time a corresponding number of
* microseconds.
...
...
libavutil/version.h
浏览文件 @
d61617a5
...
...
@@ -75,8 +75,8 @@
*/
#define LIBAVUTIL_VERSION_MAJOR 52
#define LIBAVUTIL_VERSION_MINOR 4
7
#define LIBAVUTIL_VERSION_MICRO 10
1
#define LIBAVUTIL_VERSION_MINOR 4
8
#define LIBAVUTIL_VERSION_MICRO 10
0
#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
LIBAVUTIL_VERSION_MINOR, \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录