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
d25c033d
Commit
d25c033d
authored
Oct 12, 2015
by
Rostislav Pehlivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aaccoder_twoloop.h: simplify and comment ff_pns_bits()
parent
5f760da6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
aaccoder_twoloop.h
libavcodec/aaccoder_twoloop.h
+3
-7
No files found.
libavcodec/aaccoder_twoloop.h
View file @
d25c033d
...
@@ -56,14 +56,10 @@
...
@@ -56,14 +56,10 @@
#define sclip(x) av_clip(x,60,218)
#define sclip(x) av_clip(x,60,218)
/* Reflects the cost to change codebooks */
static
av_always_inline
int
ff_pns_bits
(
const
SingleChannelElement
*
sce
,
int
w
,
int
g
)
static
inline
int
ff_pns_bits
(
SingleChannelElement
*
sce
,
int
w
,
int
g
)
{
{
if
(
!
g
||
!
sce
->
zeroes
[
w
*
16
+
g
-
1
]
||
!
sce
->
can_pns
[
w
*
16
+
g
-
1
])
{
return
(
!
g
||
!
sce
->
zeroes
[
w
*
16
+
g
-
1
]
||
!
sce
->
can_pns
[
w
*
16
+
g
-
1
])
?
9
:
5
;
return
9
;
}
else
{
return
5
;
}
}
}
/**
/**
...
...
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