Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
b2eef2f0
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,发现更多精彩内容 >>
提交
b2eef2f0
编写于
1月 31, 2005
作者:
R
Roberto Togni
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add 32bit RGB support
Originally committed as revision 3912 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
e993bc03
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
2 deletion
+13
-2
libavcodec/tscc.c
libavcodec/tscc.c
+13
-2
未找到文件。
libavcodec/tscc.c
浏览文件 @
b2eef2f0
...
...
@@ -116,7 +116,7 @@ static int decode_rle(CamtasiaContext *c, unsigned int srcsize)
}
pos
+=
p2
;
}
else
{
//Run of pixels
int
pix
[
3
];
//original pixel
int
pix
[
4
];
//original pixel
switch
(
c
->
bpp
){
case
8
:
pix
[
0
]
=
*
src
++
;
break
;
...
...
@@ -127,6 +127,11 @@ static int decode_rle(CamtasiaContext *c, unsigned int srcsize)
pix
[
1
]
=
*
src
++
;
pix
[
2
]
=
*
src
++
;
break
;
case
32
:
pix
[
0
]
=
*
src
++
;
pix
[
1
]
=
*
src
++
;
pix
[
2
]
=
*
src
++
;
pix
[
3
]
=
*
src
++
;
break
;
}
if
(
output
+
p1
*
(
c
->
bpp
/
8
)
>
output_end
)
continue
;
...
...
@@ -141,6 +146,11 @@ static int decode_rle(CamtasiaContext *c, unsigned int srcsize)
*
output
++
=
pix
[
1
];
*
output
++
=
pix
[
2
];
break
;
case
32
:
*
output
++
=
pix
[
0
];
*
output
++
=
pix
[
1
];
*
output
++
=
pix
[
2
];
*
output
++
=
pix
[
3
];
break
;
}
}
pos
+=
p1
;
...
...
@@ -252,9 +262,10 @@ static int decode_init(AVCodecContext *avctx)
switch
(
avctx
->
bits_per_sample
){
case
8
:
avctx
->
pix_fmt
=
PIX_FMT_PAL8
;
break
;
case
16
:
avctx
->
pix_fmt
=
PIX_FMT_RGB555
;
break
;
case
24
:
av_log
(
avctx
,
AV_LOG_ERROR
,
"Camtasia warning: RGB24 is just guessed
\n
"
);
case
24
:
avctx
->
pix_fmt
=
PIX_FMT_BGR24
;
break
;
case
32
:
avctx
->
pix_fmt
=
PIX_FMT_RGBA32
;
break
;
default:
av_log
(
avctx
,
AV_LOG_ERROR
,
"Camtasia error: unknown depth %i bpp
\n
"
,
avctx
->
bits_per_sample
);
return
-
1
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录