Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
90bc36b0
Commit
90bc36b0
authored
Apr 26, 2010
by
Ronald S. Bultje
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent after r22968.
Originally committed as revision 22969 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ad640896
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
common.h
libavutil/common.h
+4
-4
No files found.
libavutil/common.h
View file @
90bc36b0
...
@@ -119,7 +119,7 @@ static inline av_const int av_clip(int a, int amin, int amax)
...
@@ -119,7 +119,7 @@ static inline av_const int av_clip(int a, int amin, int amax)
static
inline
av_const
uint8_t
av_clip_uint8
(
int
a
)
static
inline
av_const
uint8_t
av_clip_uint8
(
int
a
)
{
{
if
(
a
&
(
~
0xFF
))
return
(
-
a
)
>>
31
;
if
(
a
&
(
~
0xFF
))
return
(
-
a
)
>>
31
;
else
return
a
;
else
return
a
;
}
}
/**
/**
...
@@ -130,7 +130,7 @@ static inline av_const uint8_t av_clip_uint8(int a)
...
@@ -130,7 +130,7 @@ static inline av_const uint8_t av_clip_uint8(int a)
static
inline
av_const
uint16_t
av_clip_uint16
(
int
a
)
static
inline
av_const
uint16_t
av_clip_uint16
(
int
a
)
{
{
if
(
a
&
(
~
0xFFFF
))
return
(
-
a
)
>>
31
;
if
(
a
&
(
~
0xFFFF
))
return
(
-
a
)
>>
31
;
else
return
a
;
else
return
a
;
}
}
/**
/**
...
@@ -141,7 +141,7 @@ static inline av_const uint16_t av_clip_uint16(int a)
...
@@ -141,7 +141,7 @@ static inline av_const uint16_t av_clip_uint16(int a)
static
inline
av_const
int16_t
av_clip_int16
(
int
a
)
static
inline
av_const
int16_t
av_clip_int16
(
int
a
)
{
{
if
((
a
+
0x8000
)
&
~
0xFFFF
)
return
(
a
>>
31
)
^
0x7FFF
;
if
((
a
+
0x8000
)
&
~
0xFFFF
)
return
(
a
>>
31
)
^
0x7FFF
;
else
return
a
;
else
return
a
;
}
}
/**
/**
...
@@ -152,7 +152,7 @@ static inline av_const int16_t av_clip_int16(int a)
...
@@ -152,7 +152,7 @@ static inline av_const int16_t av_clip_int16(int a)
static
inline
av_const
int32_t
av_clipl_int32
(
int64_t
a
)
static
inline
av_const
int32_t
av_clipl_int32
(
int64_t
a
)
{
{
if
((
a
+
0x80000000u
)
&
~
UINT64_C
(
0xFFFFFFFF
))
return
(
a
>>
63
)
^
0x7FFFFFFF
;
if
((
a
+
0x80000000u
)
&
~
UINT64_C
(
0xFFFFFFFF
))
return
(
a
>>
63
)
^
0x7FFFFFFF
;
else
return
a
;
else
return
a
;
}
}
/**
/**
...
...
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