Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
d349afb0
Commit
d349afb0
authored
Jun 18, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dv: cosmetics, reindent
parent
650dee63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
dv.c
libavcodec/dv.c
+37
-37
No files found.
libavcodec/dv.c
View file @
d349afb0
...
...
@@ -181,53 +181,53 @@ int ff_dv_init_dynamic_tables(DVVideoContext *ctx, const DVprofile *d)
uint32_t
*
factor1
,
*
factor2
;
const
int
*
iweight1
,
*
iweight2
;
p
=
i
=
0
;
for
(
c
=
0
;
c
<
d
->
n_difchan
;
c
++
)
{
for
(
s
=
0
;
s
<
d
->
difseg_size
;
s
++
)
{
p
+=
6
;
for
(
j
=
0
;
j
<
27
;
j
++
)
{
p
+=
!
(
j
%
3
);
if
(
!
(
DV_PROFILE_IS_1080i50
(
d
)
&&
c
!=
0
&&
s
==
11
)
&&
!
(
DV_PROFILE_IS_720p50
(
d
)
&&
s
>
9
))
{
dv_calc_mb_coordinates
(
d
,
c
,
s
,
j
,
&
ctx
->
work_chunks
[
i
].
mb_coordinates
[
0
]);
ctx
->
work_chunks
[
i
++
].
buf_offset
=
p
;
}
p
+=
5
;
p
=
i
=
0
;
for
(
c
=
0
;
c
<
d
->
n_difchan
;
c
++
)
{
for
(
s
=
0
;
s
<
d
->
difseg_size
;
s
++
)
{
p
+=
6
;
for
(
j
=
0
;
j
<
27
;
j
++
)
{
p
+=
!
(
j
%
3
);
if
(
!
(
DV_PROFILE_IS_1080i50
(
d
)
&&
c
!=
0
&&
s
==
11
)
&&
!
(
DV_PROFILE_IS_720p50
(
d
)
&&
s
>
9
))
{
dv_calc_mb_coordinates
(
d
,
c
,
s
,
j
,
&
ctx
->
work_chunks
[
i
].
mb_coordinates
[
0
]);
ctx
->
work_chunks
[
i
++
].
buf_offset
=
p
;
}
p
+=
5
;
}
}
}
factor1
=
&
ctx
->
idct_factor
[
0
];
factor2
=
&
ctx
->
idct_factor
[
DV_PROFILE_IS_HD
(
d
)
?
4096
:
2816
];
if
(
d
->
height
==
720
)
{
iweight1
=
&
ff_dv_iweight_720_y
[
0
];
iweight2
=
&
ff_dv_iweight_720_c
[
0
];
}
else
{
iweight1
=
&
ff_dv_iweight_1080_y
[
0
];
iweight2
=
&
ff_dv_iweight_1080_c
[
0
];
}
if
(
DV_PROFILE_IS_HD
(
d
))
{
for
(
c
=
0
;
c
<
4
;
c
++
)
{
for
(
s
=
0
;
s
<
16
;
s
++
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
{
*
factor1
++
=
(
dv100_qstep
[
s
]
<<
(
c
+
9
))
*
iweight1
[
i
];
*
factor2
++
=
(
dv100_qstep
[
s
]
<<
(
c
+
9
))
*
iweight2
[
i
];
}
factor1
=
&
ctx
->
idct_factor
[
0
];
factor2
=
&
ctx
->
idct_factor
[
DV_PROFILE_IS_HD
(
d
)
?
4096
:
2816
];
if
(
d
->
height
==
720
)
{
iweight1
=
&
ff_dv_iweight_720_y
[
0
];
iweight2
=
&
ff_dv_iweight_720_c
[
0
];
}
else
{
iweight1
=
&
ff_dv_iweight_1080_y
[
0
];
iweight2
=
&
ff_dv_iweight_1080_c
[
0
];
}
if
(
DV_PROFILE_IS_HD
(
d
))
{
for
(
c
=
0
;
c
<
4
;
c
++
)
{
for
(
s
=
0
;
s
<
16
;
s
++
)
{
for
(
i
=
0
;
i
<
64
;
i
++
)
{
*
factor1
++
=
(
dv100_qstep
[
s
]
<<
(
c
+
9
))
*
iweight1
[
i
];
*
factor2
++
=
(
dv100_qstep
[
s
]
<<
(
c
+
9
))
*
iweight2
[
i
];
}
}
}
else
{
iweight1
=
&
ff_dv_iweight_88
[
0
];
for
(
j
=
0
;
j
<
2
;
j
++
,
iweight1
=
&
ff_dv_iweight_248
[
0
])
{
for
(
s
=
0
;
s
<
22
;
s
++
)
{
for
(
i
=
c
=
0
;
c
<
4
;
c
++
)
{
for
(;
i
<
dv_quant_areas
[
c
];
i
++
)
{
*
factor1
=
iweight1
[
i
]
<<
(
ff_dv_quant_shifts
[
s
][
c
]
+
1
);
*
factor2
++
=
(
*
factor1
++
)
<<
1
;
}
}
}
else
{
iweight1
=
&
ff_dv_iweight_88
[
0
];
for
(
j
=
0
;
j
<
2
;
j
++
,
iweight1
=
&
ff_dv_iweight_248
[
0
]
)
{
for
(
s
=
0
;
s
<
22
;
s
++
)
{
for
(
i
=
c
=
0
;
c
<
4
;
c
++
)
{
for
(;
i
<
dv_quant_areas
[
c
];
i
++
)
{
*
factor1
=
iweight1
[
i
]
<<
(
ff_dv_quant_shifts
[
s
][
c
]
+
1
)
;
*
factor2
++
=
(
*
factor1
++
)
<<
1
;
}
}
}
}
}
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment