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
03df9720
Commit
03df9720
authored
Dec 12, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg1video: support multi threaded slice encoding.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f18c873a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mpeg12enc.c
libavcodec/mpeg12enc.c
+2
-2
No files found.
libavcodec/mpeg12enc.c
View file @
03df9720
...
...
@@ -472,7 +472,7 @@ static av_always_inline void mpeg1_encode_mb_internal(MpegEncContext *s,
}
if
(
cbp
==
0
&&
!
first_mb
&&
s
->
mv_type
==
MV_TYPE_16X16
&&
(
mb_x
!=
s
->
mb_width
-
1
||
(
mb_y
!=
s
->
mb_height
-
1
&&
s
->
codec_id
==
AV_CODEC_ID_MPEG1VIDEO
))
&&
(
mb_x
!=
s
->
mb_width
-
1
||
(
mb_y
!=
s
->
end_mb_y
-
1
&&
s
->
codec_id
==
AV_CODEC_ID_MPEG1VIDEO
))
&&
((
s
->
pict_type
==
AV_PICTURE_TYPE_P
&&
(
motion_x
|
motion_y
)
==
0
)
||
(
s
->
pict_type
==
AV_PICTURE_TYPE_B
&&
s
->
mv_dir
==
s
->
last_mv_dir
&&
(((
s
->
mv_dir
&
MV_DIR_FORWARD
)
?
((
s
->
mv
[
0
][
0
][
0
]
-
s
->
last_mv
[
0
][
0
][
0
])
|
(
s
->
mv
[
0
][
0
][
1
]
-
s
->
last_mv
[
0
][
0
][
1
]))
:
0
)
|
((
s
->
mv_dir
&
MV_DIR_BACKWARD
)
?
((
s
->
mv
[
1
][
0
][
0
]
-
s
->
last_mv
[
1
][
0
][
0
])
|
(
s
->
mv
[
1
][
0
][
1
]
-
s
->
last_mv
[
1
][
0
][
1
]))
:
0
))
==
0
)))
{
...
...
@@ -985,7 +985,7 @@ AVCodec ff_mpeg1video_encoder = {
.
supported_framerates
=
ff_mpeg12_frame_rate_tab
+
1
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[]){
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
},
.
capabilities
=
CODEC_CAP_DELAY
,
.
capabilities
=
CODEC_CAP_DELAY
|
CODEC_CAP_SLICE_THREADS
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"MPEG-1 video"
),
.
priv_class
=
&
mpeg1_class
,
};
...
...
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