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
a35494c5
Commit
a35494c5
authored
Jul 02, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: fix indention of xchg_mb_border()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f27b22b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
h264.c
libavcodec/h264.c
+16
-16
No files found.
libavcodec/h264.c
View file @
a35494c5
...
...
@@ -2230,30 +2230,30 @@ static av_always_inline void xchg_mb_border(H264Context *h, uint8_t *src_y,
XCHG
(
h
->
top_borders
[
top_idx
][
h
->
mb_x
+
1
],
src_y
+
(
17
<<
pixel_shift
),
1
);
}
if
(
simple
||
!
CONFIG_GRAY
||
!
(
h
->
flags
&
CODEC_FLAG_GRAY
))
{
if
(
chroma444
)
{
if
(
deblock_topleft
)
{
XCHG
(
top_border_m1
+
(
24
<<
pixel_shift
),
src_cb
-
(
7
<<
pixel_shift
),
1
);
XCHG
(
top_border_m1
+
(
40
<<
pixel_shift
),
src_cr
-
(
7
<<
pixel_shift
),
1
);
}
XCHG
(
top_border
+
(
16
<<
pixel_shift
),
src_cb
+
(
1
<<
pixel_shift
),
xchg
);
XCHG
(
top_border
+
(
24
<<
pixel_shift
),
src_cb
+
(
9
<<
pixel_shift
),
1
);
XCHG
(
top_border
+
(
32
<<
pixel_shift
),
src_cr
+
(
1
<<
pixel_shift
),
xchg
);
XCHG
(
top_border
+
(
40
<<
pixel_shift
),
src_cr
+
(
9
<<
pixel_shift
),
1
);
if
(
h
->
mb_x
+
1
<
h
->
mb_width
)
{
XCHG
(
h
->
top_borders
[
top_idx
][
h
->
mb_x
+
1
]
+
(
16
<<
pixel_shift
),
src_cb
+
(
17
<<
pixel_shift
),
1
);
XCHG
(
h
->
top_borders
[
top_idx
][
h
->
mb_x
+
1
]
+
(
32
<<
pixel_shift
),
src_cr
+
(
17
<<
pixel_shift
),
1
);
}
}
else
{
if
(
simple
||
!
CONFIG_GRAY
||
!
(
h
->
flags
&
CODEC_FLAG_GRAY
))
{
if
(
chroma444
)
{
if
(
deblock_topleft
)
{
XCHG
(
top_border_m1
+
(
24
<<
pixel_shift
),
src_cb
-
(
7
<<
pixel_shift
),
1
);
XCHG
(
top_border_m1
+
(
40
<<
pixel_shift
),
src_cr
-
(
7
<<
pixel_shift
),
1
);
}
XCHG
(
top_border
+
(
16
<<
pixel_shift
),
src_cb
+
(
1
<<
pixel_shift
),
xchg
);
XCHG
(
top_border
+
(
24
<<
pixel_shift
),
src_cb
+
(
9
<<
pixel_shift
),
1
);
XCHG
(
top_border
+
(
32
<<
pixel_shift
),
src_cr
+
(
1
<<
pixel_shift
),
xchg
);
XCHG
(
top_border
+
(
40
<<
pixel_shift
),
src_cr
+
(
9
<<
pixel_shift
),
1
);
if
(
h
->
mb_x
+
1
<
h
->
mb_width
)
{
XCHG
(
h
->
top_borders
[
top_idx
][
h
->
mb_x
+
1
]
+
(
16
<<
pixel_shift
),
src_cb
+
(
17
<<
pixel_shift
),
1
);
XCHG
(
h
->
top_borders
[
top_idx
][
h
->
mb_x
+
1
]
+
(
32
<<
pixel_shift
),
src_cr
+
(
17
<<
pixel_shift
),
1
);
}
}
else
{
if
(
deblock_topleft
)
{
XCHG
(
top_border_m1
+
(
16
<<
pixel_shift
),
src_cb
-
(
7
<<
pixel_shift
),
1
);
XCHG
(
top_border_m1
+
(
24
<<
pixel_shift
),
src_cr
-
(
7
<<
pixel_shift
),
1
);
}
XCHG
(
top_border
+
(
16
<<
pixel_shift
),
src_cb
+
1
+
pixel_shift
,
1
);
XCHG
(
top_border
+
(
24
<<
pixel_shift
),
src_cr
+
1
+
pixel_shift
,
1
);
}
}
}
}
}
static
av_always_inline
int
dctcoef_get
(
int16_t
*
mb
,
int
high_bit_depth
,
...
...
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