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
c7084182
Commit
c7084182
authored
Feb 28, 2012
by
Phil Barrett
Committed by
Kostya Shishkov
Feb 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proresenc: correct edge emulation
Signed-off-by:
Kostya Shishkov
<
kostya.shishkov@gmail.com
>
parent
235d6932
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
proresenc.c
libavcodec/proresenc.c
+7
-7
No files found.
libavcodec/proresenc.c
View file @
c7084182
...
@@ -189,24 +189,24 @@ static void get_slice_data(ProresContext *ctx, const uint16_t *src,
...
@@ -189,24 +189,24 @@ static void get_slice_data(ProresContext *ctx, const uint16_t *src,
elinesize
=
linesize
;
elinesize
=
linesize
;
}
else
{
}
else
{
int
bw
,
bh
,
pix
;
int
bw
,
bh
,
pix
;
const
int
estride
=
16
/
sizeof
(
*
ctx
->
emu_buf
);
esrc
=
ctx
->
emu_buf
;
esrc
=
ctx
->
emu_buf
;
elinesize
=
16
;
elinesize
=
16
*
sizeof
(
*
ctx
->
emu_buf
)
;
bw
=
FFMIN
(
w
-
x
,
mb_width
);
bw
=
FFMIN
(
w
-
x
,
mb_width
);
bh
=
FFMIN
(
h
-
y
,
16
);
bh
=
FFMIN
(
h
-
y
,
16
);
for
(
j
=
0
;
j
<
bh
;
j
++
)
{
for
(
j
=
0
;
j
<
bh
;
j
++
)
{
memcpy
(
ctx
->
emu_buf
+
j
*
estride
,
src
+
j
*
linesize
,
memcpy
(
ctx
->
emu_buf
+
j
*
16
,
(
const
uint8_t
*
)
src
+
j
*
linesize
,
bw
*
sizeof
(
*
src
));
bw
*
sizeof
(
*
src
));
pix
=
ctx
->
emu_buf
[
j
*
estride
+
bw
-
1
];
pix
=
ctx
->
emu_buf
[
j
*
16
+
bw
-
1
];
for
(
k
=
bw
;
k
<
mb_width
;
k
++
)
for
(
k
=
bw
;
k
<
mb_width
;
k
++
)
ctx
->
emu_buf
[
j
*
estride
+
k
]
=
pix
;
ctx
->
emu_buf
[
j
*
16
+
k
]
=
pix
;
}
}
for
(;
j
<
16
;
j
++
)
for
(;
j
<
16
;
j
++
)
memcpy
(
ctx
->
emu_buf
+
j
*
estride
,
memcpy
(
ctx
->
emu_buf
+
j
*
16
,
ctx
->
emu_buf
+
(
bh
-
1
)
*
estride
,
ctx
->
emu_buf
+
(
bh
-
1
)
*
16
,
mb_width
*
sizeof
(
*
ctx
->
emu_buf
));
mb_width
*
sizeof
(
*
ctx
->
emu_buf
));
}
}
if
(
!
is_chroma
)
{
if
(
!
is_chroma
)
{
...
...
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