Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
c5a44f57
Commit
c5a44f57
authored
19 years ago
by
Diego Biurrun
Browse files
Options
Downloads
Patches
Plain Diff
spelling/phrasing fixes, mostly by Mans
Originally committed as revision 4378 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
79cc8267
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/optimization.txt
+9
-8
9 additions, 8 deletions
doc/optimization.txt
with
9 additions
and
8 deletions
doc/optimization.txt
+
9
−
8
View file @
c5a44f57
optimization Tips (for libavcodec):
optimization Tips (for libavcodec):
What to optimize:
What to optimize:
If you plan to do non-x86 architecture specific optimiztions (SIMD normally)
If you plan to do non-x86 architecture specific optimiz
a
tions (SIMD normally)
,
then take a look in the i386/ directory, as most important functions are
then take a look in the i386/ directory, as most important functions are
already optimized for MMX.
already optimized for MMX.
...
@@ -14,10 +14,11 @@ As many functions, like the C ones tend to be a bit unreadable currently
...
@@ -14,10 +14,11 @@ As many functions, like the C ones tend to be a bit unreadable currently
because of optimizations it is difficult to understand them (and write
because of optimizations it is difficult to understand them (and write
architecture specific versions, or optimize the C functions further) it is
architecture specific versions, or optimize the C functions further) it is
recommended to look at older CVS versions of the interesting files (just use
recommended to look at older CVS versions of the interesting files (just use
ViewCVS at http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/?cvsroot=FFMpeg)
ViewCVS at http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/?cvsroot=FFMpeg).
or perhaps look into the other architecture-specific versions in i386/, ppc/,
Alternatively, look into the other architecture-specific versions in the i386/,
alpha/, ... Even if you don't understand the instructions exactly it could
ppc/, alpha/ subdirectories. Even if you don't exactly understand the
help understanding the functions & how they can be optimized.
instructions, it could help understanding the functions and how they
can be optimized.
NOTE: If you still don't understand some function, ask at our mailing list!!!
NOTE: If you still don't understand some function, ask at our mailing list!!!
(http://www1.mplayerhq.hu/mailman/listinfo/ffmpeg-devel)
(http://www1.mplayerhq.hu/mailman/listinfo/ffmpeg-devel)
...
@@ -33,7 +34,7 @@ put(_no_rnd)_pixels{,_x2,_y2,_xy2}
...
@@ -33,7 +34,7 @@ put(_no_rnd)_pixels{,_x2,_y2,_xy2}
avg_pixels{,_x2,_y2,_xy2}
avg_pixels{,_x2,_y2,_xy2}
Used in motion compensation of B-frames.
Used in motion compensation of B-frames.
These are less important th
e
n the put*pixels functions.
These are less important th
a
n the put*pixels functions.
avg_no_rnd_pixels*
avg_no_rnd_pixels*
unused
unused
...
@@ -43,7 +44,7 @@ pix_abs16x16{,_x2,_y2,_xy2}
...
@@ -43,7 +44,7 @@ pix_abs16x16{,_x2,_y2,_xy2}
pix_abs8x8{,_x2,_y2,_xy2}
pix_abs8x8{,_x2,_y2,_xy2}
Used in motion estimation (encoding) with SAD of MPEG-4 4MV only.
Used in motion estimation (encoding) with SAD of MPEG-4 4MV only.
These are less important th
e
n the pix_abs16x16* functions.
These are less important th
a
n the pix_abs16x16* functions.
put_mspel8_mc* / wmv2_mspel8*
put_mspel8_mc* / wmv2_mspel8*
Used only in WMV2.
Used only in WMV2.
...
@@ -128,7 +129,7 @@ BTW, most of these functions are in dsputil.c/.h, some are in mpegvideo.c/.h.
...
@@ -128,7 +129,7 @@ BTW, most of these functions are in dsputil.c/.h, some are in mpegvideo.c/.h.
Alignment:
Alignment:
Some instructions on some architectures have strict alignment restrictions,
Some instructions on some architectures have strict alignment restrictions,
for example most SSE/SSE2 in
c
tructios on x86.
for example most SSE/SSE2 in
s
tructio
n
s on x86.
The minimum guaranteed alignment is written in the .h files, for example:
The minimum guaranteed alignment is written in the .h files, for example:
void (*put_pixels_clamped)(const DCTELEM *block/*align 16*/, UINT8 *pixels/*align 8*/, int line_size);
void (*put_pixels_clamped)(const DCTELEM *block/*align 16*/, UINT8 *pixels/*align 8*/, int line_size);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment