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
7c971233
Commit
7c971233
authored
Mar 18, 2007
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indentation
Originally committed as revision 8437 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ab475795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
36 deletions
+36
-36
vc1.c
libavcodec/vc1.c
+36
-36
No files found.
libavcodec/vc1.c
View file @
7c971233
...
...
@@ -821,17 +821,17 @@ static void vc1_mc_1mv(VC1Context *v, int dir)
uvsrc_x
=
s
->
mb_x
*
8
+
(
uvmx
>>
2
);
uvsrc_y
=
s
->
mb_y
*
8
+
(
uvmy
>>
2
);
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
srcY
+=
src_y
*
s
->
linesize
+
src_x
;
srcU
+=
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
...
...
@@ -951,13 +951,13 @@ static void vc1_mc_4mv_luma(VC1Context *v, int n)
src_x
=
s
->
mb_x
*
16
+
(
n
&
1
)
*
8
+
(
mx
>>
2
);
src_y
=
s
->
mb_y
*
16
+
(
n
&
2
)
*
4
+
(
my
>>
2
);
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
}
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
}
srcY
+=
src_y
*
s
->
linesize
+
src_x
;
...
...
@@ -1083,13 +1083,13 @@ static void vc1_mc_4mv_chroma(VC1Context *v)
uvsrc_x
=
s
->
mb_x
*
8
+
(
uvmx
>>
2
);
uvsrc_y
=
s
->
mb_y
*
8
+
(
uvmy
>>
2
);
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
srcU
=
s
->
last_picture
.
data
[
1
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
srcV
=
s
->
last_picture
.
data
[
2
]
+
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
...
...
@@ -2139,17 +2139,17 @@ static void vc1_interp_mc(VC1Context *v)
uvsrc_x
=
s
->
mb_x
*
8
+
(
uvmx
>>
2
);
uvsrc_y
=
s
->
mb_y
*
8
+
(
uvmy
>>
2
);
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
if
(
v
->
profile
!=
PROFILE_ADVANCED
){
src_x
=
av_clip
(
src_x
,
-
16
,
s
->
mb_width
*
16
);
src_y
=
av_clip
(
src_y
,
-
16
,
s
->
mb_height
*
16
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
mb_width
*
8
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
mb_height
*
8
);
}
else
{
src_x
=
av_clip
(
src_x
,
-
17
,
s
->
avctx
->
coded_width
);
src_y
=
av_clip
(
src_y
,
-
18
,
s
->
avctx
->
coded_height
+
1
);
uvsrc_x
=
av_clip
(
uvsrc_x
,
-
8
,
s
->
avctx
->
coded_width
>>
1
);
uvsrc_y
=
av_clip
(
uvsrc_y
,
-
8
,
s
->
avctx
->
coded_height
>>
1
);
}
srcY
+=
src_y
*
s
->
linesize
+
src_x
;
srcU
+=
uvsrc_y
*
s
->
uvlinesize
+
uvsrc_x
;
...
...
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