Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
x264
Commits
67813bbf
Commit
67813bbf
authored
Apr 13, 2008
by
Loren Merritt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more hpel fixes
parent
0acaad1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
common/frame.c
common/frame.c
+5
-4
common/x86/mc-c.c
common/x86/mc-c.c
+1
-1
No files found.
common/frame.c
View file @
67813bbf
...
...
@@ -237,19 +237,20 @@ void x264_frame_expand_border( x264_t *h, x264_frame_t *frame, int mb_y, int b_e
void
x264_frame_expand_border_filtered
(
x264_t
*
h
,
x264_frame_t
*
frame
,
int
mb_y
,
int
b_end
)
{
/* during filtering, 8 extra pixels were filtered on each edge.
/* during filtering, 8 extra pixels were filtered on each edge,
* but up to 3 of the horizontal ones may be wrong.
we want to expand border from the last filtered pixel */
int
b_start
=
!
mb_y
;
int
stride
=
frame
->
i_stride
[
0
];
int
width
=
16
*
h
->
sps
->
i_mb_width
+
16
;
int
width
=
16
*
h
->
sps
->
i_mb_width
+
8
;
int
height
=
b_end
?
(
16
*
(
h
->
sps
->
i_mb_height
-
mb_y
)
>>
h
->
sh
.
b_mbaff
)
+
16
:
16
;
int
padh
=
PADH
-
8
;
int
padh
=
PADH
-
4
;
int
padv
=
PADV
-
8
;
int
i
;
for
(
i
=
1
;
i
<
4
;
i
++
)
{
// buffer: 8 luma, to match the hpel filter
uint8_t
*
pix
=
frame
->
filtered
[
i
]
+
(
16
*
mb_y
-
(
8
<<
h
->
sh
.
b_mbaff
))
*
stride
-
8
;
uint8_t
*
pix
=
frame
->
filtered
[
i
]
+
(
16
*
mb_y
-
(
8
<<
h
->
sh
.
b_mbaff
))
*
stride
-
4
;
if
(
h
->
sh
.
b_mbaff
)
{
plane_expand_border
(
pix
,
stride
*
2
,
width
,
height
,
padh
,
padv
,
b_start
,
b_end
);
...
...
common/x86/mc-c.c
View file @
67813bbf
...
...
@@ -178,7 +178,7 @@ void x264_hpel_filter_##cpu( uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, uint8_
dstc -= realign;\
dsth -= realign;\
width += realign;\
buf = x264_malloc((
(
width+
2*align-1)&-align
)*sizeof(int16_t));\
buf = x264_malloc((width+
16
)*sizeof(int16_t));\
while( height-- )\
{\
x264_hpel_filter_v_##cpuv( dstv, src, buf+8, stride, width );\
...
...
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