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
3994623d
Commit
3994623d
authored
Oct 02, 2002
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimization
Originally committed as revision 992 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ce5b7c5e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
h263dec.c
libavcodec/h263dec.c
+6
-1
mpeg12.c
libavcodec/mpeg12.c
+4
-1
mpegvideo.c
libavcodec/mpegvideo.c
+9
-3
No files found.
libavcodec/h263dec.c
View file @
3994623d
...
@@ -362,7 +362,12 @@ uint64_t time= rdtsc();
...
@@ -362,7 +362,12 @@ uint64_t time= rdtsc();
h
=
s
->
height
-
y
;
h
=
s
->
height
-
y
;
if
(
h
>
16
)
if
(
h
>
16
)
h
=
16
;
h
=
16
;
offset
=
y
*
s
->
linesize
;
if
(
s
->
pict_type
==
B_TYPE
)
offset
=
0
;
else
offset
=
y
*
s
->
linesize
;
if
(
s
->
pict_type
==
B_TYPE
||
(
!
s
->
has_b_frames
)){
if
(
s
->
pict_type
==
B_TYPE
||
(
!
s
->
has_b_frames
)){
src_ptr
[
0
]
=
s
->
current_picture
[
0
]
+
offset
;
src_ptr
[
0
]
=
s
->
current_picture
[
0
]
+
offset
;
src_ptr
[
1
]
=
s
->
current_picture
[
1
]
+
(
offset
>>
2
);
src_ptr
[
1
]
=
s
->
current_picture
[
1
]
+
(
offset
>>
2
);
...
...
libavcodec/mpeg12.c
View file @
3994623d
...
@@ -1604,7 +1604,10 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
...
@@ -1604,7 +1604,10 @@ static int mpeg_decode_slice(AVCodecContext *avctx,
h
=
s
->
height
-
y
;
h
=
s
->
height
-
y
;
if
(
h
>
16
)
if
(
h
>
16
)
h
=
16
;
h
=
16
;
offset
=
y
*
s
->
linesize
;
if
(
s
->
pict_type
==
B_TYPE
)
offset
=
0
;
else
offset
=
y
*
s
->
linesize
;
if
(
s
->
pict_type
==
B_TYPE
||
(
!
s
->
has_b_frames
)){
if
(
s
->
pict_type
==
B_TYPE
||
(
!
s
->
has_b_frames
)){
src_ptr
[
0
]
=
s
->
current_picture
[
0
]
+
offset
;
src_ptr
[
0
]
=
s
->
current_picture
[
0
]
+
offset
;
src_ptr
[
1
]
=
s
->
current_picture
[
1
]
+
(
offset
>>
2
);
src_ptr
[
1
]
=
s
->
current_picture
[
1
]
+
(
offset
>>
2
);
...
...
libavcodec/mpegvideo.c
View file @
3994623d
...
@@ -1684,9 +1684,15 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
...
@@ -1684,9 +1684,15 @@ void MPV_decode_mb(MpegEncContext *s, DCTELEM block[6][64])
}
}
}
}
dest_y
=
s
->
current_picture
[
0
]
+
(
mb_y
*
16
*
s
->
linesize
)
+
mb_x
*
16
;
if
(
s
->
pict_type
==
B_TYPE
&&
s
->
avctx
->
draw_horiz_band
){
dest_cb
=
s
->
current_picture
[
1
]
+
(
mb_y
*
8
*
s
->
uvlinesize
)
+
mb_x
*
8
;
dest_y
=
s
->
current_picture
[
0
]
+
mb_x
*
16
;
dest_cr
=
s
->
current_picture
[
2
]
+
(
mb_y
*
8
*
s
->
uvlinesize
)
+
mb_x
*
8
;
dest_cb
=
s
->
current_picture
[
1
]
+
mb_x
*
8
;
dest_cr
=
s
->
current_picture
[
2
]
+
mb_x
*
8
;
}
else
{
dest_y
=
s
->
current_picture
[
0
]
+
(
mb_y
*
16
*
s
->
linesize
)
+
mb_x
*
16
;
dest_cb
=
s
->
current_picture
[
1
]
+
(
mb_y
*
8
*
s
->
uvlinesize
)
+
mb_x
*
8
;
dest_cr
=
s
->
current_picture
[
2
]
+
(
mb_y
*
8
*
s
->
uvlinesize
)
+
mb_x
*
8
;
}
if
(
s
->
interlaced_dct
)
{
if
(
s
->
interlaced_dct
)
{
dct_linesize
=
s
->
linesize
*
2
;
dct_linesize
=
s
->
linesize
*
2
;
...
...
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