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
2c2b3130
Commit
2c2b3130
authored
Aug 23, 2007
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PowerPC/CELL/Altivec pointers
Originally committed as revision 10197 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
a677e0cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
22 deletions
+12
-22
optimization.txt
doc/optimization.txt
+11
-0
ffplay.c
ffplay.c
+1
-22
No files found.
doc/optimization.txt
View file @
2c2b3130
...
...
@@ -158,6 +158,17 @@ http://www.arm.com/community/academy/resources.html
Instructions timings and optimization guide for ARM9E:
http://www.arm.com/pdfs/DDI0222B_9EJS_r1p2.pdf
PowerPC-specific:
PowerPC32/Altivec PIM:
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPEM.pdf
PowerPC32/Altivec PEM:
www.freescale.com/files/32bit/doc/ref_manual/ALTIVECPIM.pdf
CELL/SPU:
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/30B3520C93F437AB87257060006FFE5E/$file/Language_Extensions_for_CBEA_2.4.pdf
http://www-01.ibm.com/chips/techlib/techlib.nsf/techdocs/9F820A5FFA3ECE8C8725716A0062585F/$file/CBE_Handbook_v1.1_24APR2007_pub.pdf
SPARC-specific:
SPARC Joint Programming Specification (JPS1): Commonality
...
...
ffplay.c
View file @
2c2b3130
...
...
@@ -1871,7 +1871,7 @@ static int decode_thread(void *arg)
{
VideoState
*
is
=
arg
;
AVFormatContext
*
ic
;
int
err
,
i
,
ret
,
video_index
,
audio_index
,
use_play
;
int
err
,
i
,
ret
,
video_index
,
audio_index
;
AVPacket
pkt1
,
*
pkt
=
&
pkt1
;
AVFormatParameters
params
,
*
ap
=
&
params
;
...
...
@@ -1885,8 +1885,6 @@ static int decode_thread(void *arg)
url_set_interrupt_cb
(
decode_interrupt_cb
);
memset
(
ap
,
0
,
sizeof
(
*
ap
));
ap
->
initial_pause
=
1
;
/* we force a pause when starting an RTSP
stream */
ap
->
width
=
frame_width
;
ap
->
height
=
frame_height
;
...
...
@@ -1900,16 +1898,10 @@ static int decode_thread(void *arg)
goto
fail
;
}
is
->
ic
=
ic
;
#ifdef CONFIG_RTSP_DEMUXER
use_play
=
(
ic
->
iformat
==
&
rtsp_demuxer
);
#else
use_play
=
0
;
#endif
if
(
genpts
)
ic
->
flags
|=
AVFMT_FLAG_GENPTS
;
if
(
!
use_play
)
{
err
=
av_find_stream_info
(
ic
);
if
(
err
<
0
)
{
fprintf
(
stderr
,
"%s: could not find codec parameters
\n
"
,
is
->
filename
);
...
...
@@ -1917,7 +1909,6 @@ static int decode_thread(void *arg)
goto
fail
;
}
ic
->
pb
.
eof_reached
=
0
;
//FIXME hack, ffplay maybe should not use url_feof() to test for the end
}
/* if seeking requested, we execute it */
if
(
start_time
!=
AV_NOPTS_VALUE
)
{
...
...
@@ -1934,18 +1925,6 @@ static int decode_thread(void *arg)
}
}
/* now we can begin to play (RTSP stream only) */
av_read_play
(
ic
);
if
(
use_play
)
{
err
=
av_find_stream_info
(
ic
);
if
(
err
<
0
)
{
fprintf
(
stderr
,
"%s: could not find codec parameters
\n
"
,
is
->
filename
);
ret
=
-
1
;
goto
fail
;
}
}
for
(
i
=
0
;
i
<
ic
->
nb_streams
;
i
++
)
{
AVCodecContext
*
enc
=
ic
->
streams
[
i
]
->
codec
;
switch
(
enc
->
codec_type
)
{
...
...
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