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
48960b8f
Commit
48960b8f
authored
15 years ago
by
Måns Rullgård
Browse files
Options
Downloads
Patches
Plain Diff
Add zero_extend() function
Originally committed as revision 21947 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
94a5218c
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
libavcodec/mathops.h
+7
-0
7 additions, 0 deletions
libavcodec/mathops.h
with
7 additions
and
0 deletions
libavcodec/mathops.h
+
7
−
0
View file @
48960b8f
...
...
@@ -122,6 +122,13 @@ static inline av_const int sign_extend(int val, unsigned bits)
}
#endif
#ifndef zero_extend
static
inline
av_const
unsigned
zero_extend
(
unsigned
val
,
unsigned
bits
)
{
return
(
val
<<
(
INT_BIT
-
bits
))
>>
(
INT_BIT
-
bits
);
}
#endif
#ifndef COPY3_IF_LT
#define COPY3_IF_LT(x, y, a, b, c, d)\
if ((y) < (x)) {\
...
...
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