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
48960b8f
Commit
48960b8f
authored
Feb 21, 2010
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add zero_extend() function
Originally committed as revision 21947 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
94a5218c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mathops.h
libavcodec/mathops.h
+7
-0
No files found.
libavcodec/mathops.h
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)) {\
...
...
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