Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
d1d28ddf
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,发现更多精彩内容 >>
提交
d1d28ddf
编写于
9月 09, 2006
作者:
K
Kostya Shishkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Cosmetics] Remove some done TODOs/FIXMEs from comments
Originally committed as revision 6208 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
1dc1ce64
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
2 addition
and
15 deletion
+2
-15
libavcodec/vc1.c
libavcodec/vc1.c
+2
-15
未找到文件。
libavcodec/vc1.c
浏览文件 @
d1d28ddf
...
...
@@ -562,7 +562,6 @@ static void decode_colskip(uint8_t* plane, int width, int height, int stride, Ge
* @param v VC-1 context for bit reading and logging
* @return Status
* @fixme FIXME: Optimize
* @todo TODO: Decide if a struct is needed
*/
static
int
bitplane_decoding
(
uint8_t
*
data
,
int
*
raw_flag
,
VC1Context
*
v
)
{
...
...
@@ -734,7 +733,6 @@ static int vop_dquant_decoding(VC1Context *v)
}
/** Put block onto picture
* @todo move to DSPContext
*/
static
void
vc1_put_block
(
VC1Context
*
v
,
DCTELEM
block
[
6
][
64
])
{
...
...
@@ -1442,7 +1440,6 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
//av_log(v->s.avctx, AV_LOG_INFO, "%c Frame: QP=[%i]%i (+%i/2) %i\n",
// (v->s.pict_type == P_TYPE) ? 'P' : ((v->s.pict_type == I_TYPE) ? 'I' : 'B'), pqindex, v->pq, v->halfpq, v->rangeredfrm);
//TODO: complete parsing for P/B/BI frames
switch
(
v
->
s
.
pict_type
)
{
case
P_TYPE
:
if
(
v
->
pq
<
5
)
v
->
tt_index
=
0
;
...
...
@@ -1779,15 +1776,12 @@ static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
/**
* @defgroup block VC-1 Block-level functions
* @see 7.1.4, p91 and 8.1.1.7, p(1)04
* @todo TODO: Integrate to MpegEncContext facilities
* @{
*/
/**
* @def GET_MQUANT
* @brief Get macroblock-level quantizer scale
* @warning XXX: qdiff to the frame quant, not previous quant ?
* @fixme XXX: Don't know how to initialize mquant otherwise in last case
*/
#define GET_MQUANT() \
if (v->dquantfrm) \
...
...
@@ -1828,7 +1822,6 @@ static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
* @see MVDATA decoding from 8.3.5.2, p(1)20
* @param _dmv_x Horizontal differential for decoded MV
* @param _dmv_y Vertical differential for decoded MV
* @todo TODO: Use MpegEncContext arrays to store them
*/
#define GET_MVDATA(_dmv_x, _dmv_y) \
index = 1 + get_vlc2(gb, vc1_mv_diff_vlc[s->mv_table_index].table,\
...
...
@@ -2468,7 +2461,6 @@ static inline int vc1_pred_dc(MpegEncContext *s, int overlap, int pq, int n,
/**
* @defgroup std_mb VC1 Macroblock-level functions in Simple/Main Profiles
* @see 7.1.4, p91 and 8.1.1.7, p(1)04
* @todo TODO: Integrate to MpegEncContext facilities
* @{
*/
...
...
@@ -3243,8 +3235,6 @@ static int vc1_decode_p_block(VC1Context *v, DCTELEM block[64], int n, int mquan
/** Decode one P-frame MB (in Simple/Main profile)
* @todo TODO: Extend to AP
* @fixme FIXME: DC value for inter blocks not set
*/
static
int
vc1_decode_p_mb
(
VC1Context
*
v
)
{
...
...
@@ -3339,7 +3329,6 @@ static int vc1_decode_p_mb(VC1Context *v)
if
(
v
->
rangeredfrm
)
for
(
j
=
0
;
j
<
64
;
j
++
)
s
->
block
[
i
][
j
]
<<=
1
;
for
(
j
=
0
;
j
<
64
;
j
++
)
s
->
block
[
i
][
j
]
+=
128
;
s
->
dsp
.
put_pixels_clamped
(
s
->
block
[
i
],
s
->
dest
[
dst_idx
]
+
off
,
s
->
linesize
>>
((
i
&
4
)
>>
2
));
/* TODO: proper loop filtering */
if
(
v
->
pq
>=
9
&&
v
->
overlap
)
{
if
(
v
->
a_avail
)
s
->
dsp
.
vc1_v_overlap
(
s
->
dest
[
dst_idx
]
+
off
,
s
->
linesize
>>
((
i
&
4
)
>>
2
),
(
i
<
4
)
?
((
i
&
1
)
>>
1
)
:
(
s
->
mb_y
&
1
));
...
...
@@ -3443,7 +3432,6 @@ static int vc1_decode_p_mb(VC1Context *v)
if
(
v
->
rangeredfrm
)
for
(
j
=
0
;
j
<
64
;
j
++
)
s
->
block
[
i
][
j
]
<<=
1
;
for
(
j
=
0
;
j
<
64
;
j
++
)
s
->
block
[
i
][
j
]
+=
128
;
s
->
dsp
.
put_pixels_clamped
(
s
->
block
[
i
],
s
->
dest
[
dst_idx
]
+
off
,
(
i
&
4
)
?
s
->
uvlinesize
:
s
->
linesize
);
/* TODO: proper loop filtering */
if
(
v
->
pq
>=
9
&&
v
->
overlap
)
{
if
(
v
->
a_avail
)
s
->
dsp
.
vc1_v_overlap
(
s
->
dest
[
dst_idx
]
+
off
,
s
->
linesize
>>
((
i
&
4
)
>>
2
),
(
i
<
4
)
?
((
i
&
1
)
>>
1
)
:
(
s
->
mb_y
&
1
));
...
...
@@ -3504,7 +3492,7 @@ static void vc1_decode_b_mb(VC1Context *v)
int
dst_idx
,
off
;
int
skipped
,
direct
;
int
dmv_x
[
2
],
dmv_y
[
2
];
int
bmvtype
=
BMV_TYPE_BACKWARD
;
/* XXX: is it so? */
int
bmvtype
=
BMV_TYPE_BACKWARD
;
mquant
=
v
->
pq
;
/* Loosy initialization */
s
->
mb_intra
=
0
;
...
...
@@ -3711,7 +3699,7 @@ static void vc1_decode_i_blocks(VC1Context *v)
}
vc1_put_block
(
v
,
s
->
block
);
if
(
v
->
pq
>=
9
&&
v
->
overlap
)
{
/* XXX: do proper overlapping insted of loop filter */
if
(
v
->
pq
>=
9
&&
v
->
overlap
)
{
if
(
!
s
->
first_slice_line
)
{
s
->
dsp
.
vc1_v_overlap
(
s
->
dest
[
0
],
s
->
linesize
,
0
);
s
->
dsp
.
vc1_v_overlap
(
s
->
dest
[
0
]
+
8
,
s
->
linesize
,
0
);
...
...
@@ -4136,7 +4124,6 @@ static int vc1_decode_init(AVCodecContext *avctx)
/** Decode a VC1/WMV3 frame
* @todo TODO: Handle VC-1 IDUs (Transport level?)
* @warning Initial try at using MpegEncContext stuff
*/
static
int
vc1_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
data_size
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录