Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
15f03725
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,发现更多精彩内容 >>
提交
15f03725
编写于
5月 28, 2011
作者:
S
Stefano Sabatini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavfi: add negate filter
This filter is a simple wrapper around the LUT filter.
上级
dd2793c8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
34 addition
and
1 deletion
+34
-1
configure
configure
+1
-0
doc/filters.texi
doc/filters.texi
+7
-0
libavfilter/Makefile
libavfilter/Makefile
+1
-0
libavfilter/allfilters.c
libavfilter/allfilters.c
+1
-0
libavfilter/avfilter.h
libavfilter/avfilter.h
+1
-1
libavfilter/vf_lut.c
libavfilter/vf_lut.c
+23
-0
未找到文件。
configure
浏览文件 @
15f03725
...
...
@@ -1500,6 +1500,7 @@ frei0r_src_filter_deps="frei0r dlopen strtok_r"
hqdn3d_filter_deps
=
"gpl"
movie_filter_deps
=
"avcodec avformat"
mp_filter_deps
=
"gpl avcodec"
negate_filter_deps
=
"lut_filter"
ocv_filter_deps
=
"libopencv"
scale_filter_deps
=
"swscale"
yadif_filter_deps
=
"gpl"
...
...
doc/filters.texi
浏览文件 @
15f03725
...
...
@@ -911,6 +911,13 @@ mp=hue=100:-10
See also mplayer(1), @url{http://www.mplayerhq.hu/}.
@section negate
Negate input video.
This filter accepts an integer in input, if non-zero it negates the
alpha component (if available). The default value in input is 0.
@section noformat
Force libavfilter not to use any of the specified pixel formats for the
...
...
libavfilter/Makefile
浏览文件 @
15f03725
...
...
@@ -42,6 +42,7 @@ OBJS-$(CONFIG_LUT_FILTER) += vf_lut.o
OBJS-$(CONFIG_LUTRGB_FILTER)
+=
vf_lut.o
OBJS-$(CONFIG_LUTYUV_FILTER)
+=
vf_lut.o
OBJS-$(CONFIG_MP_FILTER)
+=
vf_mp.o
OBJS-$(CONFIG_NEGATE_FILTER)
+=
vf_lut.o
OBJS-$(CONFIG_NOFORMAT_FILTER)
+=
vf_format.o
OBJS-$(CONFIG_NULL_FILTER)
+=
vf_null.o
OBJS-$(CONFIG_OCV_FILTER)
+=
vf_libopencv.o
...
...
libavfilter/allfilters.c
浏览文件 @
15f03725
...
...
@@ -58,6 +58,7 @@ void avfilter_register_all(void)
REGISTER_FILTER
(
LUTRGB
,
lutrgb
,
vf
);
REGISTER_FILTER
(
LUTYUV
,
lutyuv
,
vf
);
REGISTER_FILTER
(
MP
,
mp
,
vf
);
REGISTER_FILTER
(
NEGATE
,
negate
,
vf
);
REGISTER_FILTER
(
NOFORMAT
,
noformat
,
vf
);
REGISTER_FILTER
(
NULL
,
null
,
vf
);
REGISTER_FILTER
(
OCV
,
ocv
,
vf
);
...
...
libavfilter/avfilter.h
浏览文件 @
15f03725
...
...
@@ -26,7 +26,7 @@
#include "libavutil/samplefmt.h"
#define LIBAVFILTER_VERSION_MAJOR 2
#define LIBAVFILTER_VERSION_MINOR
19
#define LIBAVFILTER_VERSION_MINOR
20
#define LIBAVFILTER_VERSION_MICRO 0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
...
...
libavfilter/vf_lut.c
浏览文件 @
15f03725
...
...
@@ -67,6 +67,7 @@ typedef struct {
int
is_rgb
,
is_yuv
;
int
rgba_map
[
4
];
int
step
;
int
negate_alpha
;
/* only used by negate */
}
LutContext
;
#define Y 0
...
...
@@ -366,3 +367,25 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir)
DEFINE_LUT_FILTER
(
lut
,
"Compute and apply a lookup table to the RGB/YUV input video."
,
init
);
DEFINE_LUT_FILTER
(
lutyuv
,
"Compute and apply a lookup table to the YUV input video."
,
init
);
DEFINE_LUT_FILTER
(
lutrgb
,
"Compute and apply a lookup table to the RGB input video."
,
init
);
#if CONFIG_NEGATE_FILTER
static
int
negate_init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
void
*
opaque
)
{
LutContext
*
lut
=
ctx
->
priv
;
char
lut_params
[
1024
];
if
(
args
)
sscanf
(
args
,
"%d"
,
&
lut
->
negate_alpha
);
av_log
(
ctx
,
AV_LOG_INFO
,
"negate_alpha:%d
\n
"
,
lut
->
negate_alpha
);
snprintf
(
lut_params
,
sizeof
(
lut_params
),
"c0=negval:c1=negval:c2=negval:a=%s"
,
lut
->
negate_alpha
?
"negval"
:
"val"
);
return
init
(
ctx
,
lut_params
,
opaque
);
}
DEFINE_LUT_FILTER
(
negate
,
"Negate input video."
,
negate_init
);
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录