Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
cedb83a6
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,发现更多精彩内容 >>
提交
cedb83a6
编写于
12月 03, 2007
作者:
D
Diego Biurrun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
colour --> color in variable names
Originally committed as revision 11159 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
9aa8ed9d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
18 deletion
+18
-18
libavcodec/dvbsubdec.c
libavcodec/dvbsubdec.c
+14
-14
libavcodec/xsubdec.c
libavcodec/xsubdec.c
+2
-2
libavformat/matroska.h
libavformat/matroska.h
+1
-1
libavformat/matroskadec.c
libavformat/matroskadec.c
+1
-1
未找到文件。
libavcodec/dvbsubdec.c
浏览文件 @
cedb83a6
...
...
@@ -172,8 +172,8 @@ typedef struct DVBSubObjectDisplay {
int
x_pos
;
int
y_pos
;
int
fgcolo
u
r
;
int
bgcolo
u
r
;
int
fgcolor
;
int
bgcolor
;
struct
DVBSubObjectDisplay
*
region_list_next
;
struct
DVBSubObjectDisplay
*
object_list_next
;
...
...
@@ -206,7 +206,7 @@ typedef struct DVBSubRegion {
int
depth
;
int
clut
;
int
bgcolo
u
r
;
int
bgcolor
;
uint8_t
*
pbuf
;
int
buf_size
;
...
...
@@ -844,7 +844,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
DVBSubObjectDisplay
*
display
;
int
top_field_len
,
bottom_field_len
;
int
coding_method
,
non_modifying_colo
u
r
;
int
coding_method
,
non_modifying_color
;
object_id
=
AV_RB16
(
buf
);
buf
+=
2
;
...
...
@@ -855,7 +855,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
return
;
coding_method
=
((
*
buf
)
>>
2
)
&
3
;
non_modifying_colo
u
r
=
((
*
buf
++
)
>>
1
)
&
1
;
non_modifying_color
=
((
*
buf
++
)
>>
1
)
&
1
;
if
(
coding_method
==
0
)
{
top_field_len
=
AV_RB16
(
buf
);
...
...
@@ -872,7 +872,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
block
=
buf
;
dvbsub_parse_pixel_data_block
(
avctx
,
display
,
block
,
top_field_len
,
0
,
non_modifying_colo
u
r
);
non_modifying_color
);
if
(
bottom_field_len
>
0
)
block
=
buf
+
top_field_len
;
...
...
@@ -880,7 +880,7 @@ static void dvbsub_parse_object_segment(AVCodecContext *avctx,
bottom_field_len
=
top_field_len
;
dvbsub_parse_pixel_data_block
(
avctx
,
display
,
block
,
bottom_field_len
,
1
,
non_modifying_colo
u
r
);
non_modifying_color
);
}
/* } else if (coding_method == 1) {*/
...
...
@@ -1035,14 +1035,14 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
region
->
clut
=
*
buf
++
;
if
(
region
->
depth
==
8
)
region
->
bgcolo
u
r
=
*
buf
++
;
region
->
bgcolor
=
*
buf
++
;
else
{
buf
+=
1
;
if
(
region
->
depth
==
4
)
region
->
bgcolo
u
r
=
(((
*
buf
++
)
>>
4
)
&
15
);
region
->
bgcolor
=
(((
*
buf
++
)
>>
4
)
&
15
);
else
region
->
bgcolo
u
r
=
(((
*
buf
++
)
>>
2
)
&
3
);
region
->
bgcolor
=
(((
*
buf
++
)
>>
2
)
&
3
);
}
#ifdef DEBUG
...
...
@@ -1050,9 +1050,9 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
#endif
if
(
fill
)
{
memset
(
region
->
pbuf
,
region
->
bgcolo
u
r
,
region
->
buf_size
);
memset
(
region
->
pbuf
,
region
->
bgcolor
,
region
->
buf_size
);
#ifdef DEBUG
av_log
(
avctx
,
AV_LOG_INFO
,
"Fill region (%d)
\n
"
,
region
->
bgcolo
u
r
);
av_log
(
avctx
,
AV_LOG_INFO
,
"Fill region (%d)
\n
"
,
region
->
bgcolor
);
#endif
}
...
...
@@ -1085,8 +1085,8 @@ static void dvbsub_parse_region_segment(AVCodecContext *avctx,
buf
+=
2
;
if
((
object
->
type
==
1
||
object
->
type
==
2
)
&&
buf
+
1
<
buf_end
)
{
display
->
fgcolo
u
r
=
*
buf
++
;
display
->
bgcolo
u
r
=
*
buf
++
;
display
->
fgcolor
=
*
buf
++
;
display
->
bgcolor
=
*
buf
++
;
}
display
->
region_list_next
=
region
->
display_list
;
...
...
libavcodec/xsubdec.c
浏览文件 @
cedb83a6
...
...
@@ -108,11 +108,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
for
(
x
=
0
;
x
<
w
;
)
{
int
log2
=
ff_log2_tab
[
show_bits
(
&
gb
,
8
)];
int
run
=
get_bits
(
&
gb
,
14
-
4
*
(
log2
>>
1
));
int
colo
u
r
=
get_bits
(
&
gb
,
2
);
int
color
=
get_bits
(
&
gb
,
2
);
run
=
FFMIN
(
run
,
w
-
x
);
// run length 0 means till end of row
if
(
!
run
)
run
=
w
-
x
;
memset
(
bitmap
,
colo
u
r
,
run
);
memset
(
bitmap
,
color
,
run
);
bitmap
+=
run
;
x
+=
run
;
}
...
...
libavformat/matroska.h
浏览文件 @
cedb83a6
...
...
@@ -98,7 +98,7 @@
#define MATROSKA_ID_VIDEOFLAGINTERLACED 0x9A
#define MATROSKA_ID_VIDEOSTEREOMODE 0x53B9
#define MATROSKA_ID_VIDEOASPECTRATIO 0x54B3
#define MATROSKA_ID_VIDEOCOLO
U
RSPACE 0x2EB524
#define MATROSKA_ID_VIDEOCOLORSPACE 0x2EB524
/* IDs in the trackaudio master */
#define MATROSKA_ID_AUDIOSAMPLINGFREQ 0xB5
...
...
libavformat/matroskadec.c
浏览文件 @
cedb83a6
...
...
@@ -1201,7 +1201,7 @@ matroska_add_stream (MatroskaDemuxContext *matroska)
/* colorspace (only matters for raw video)
* fourcc */
case
MATROSKA_ID_VIDEOCOLO
U
RSPACE
:
{
case
MATROSKA_ID_VIDEOCOLORSPACE
:
{
uint64_t
num
;
if
((
res
=
ebml_read_uint
(
matroska
,
&
id
,
&
num
))
<
0
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录