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
5abd509a
Commit
5abd509a
authored
Nov 12, 2002
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* init table once
Originally committed as revision 1203 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
45553457
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
dsputil.c
libavcodec/dsputil.c
+11
-7
No files found.
libavcodec/dsputil.c
View file @
5abd509a
...
...
@@ -1344,8 +1344,10 @@ static void clear_blocks_c(DCTELEM *blocks)
void
dsputil_init
(
DSPContext
*
c
,
unsigned
mask
)
{
static
int
init_done
=
0
;
int
i
;
if
(
!
init_done
)
{
for
(
i
=
0
;
i
<
256
;
i
++
)
cropTbl
[
i
+
MAX_NEG_CROP
]
=
i
;
for
(
i
=
0
;
i
<
MAX_NEG_CROP
;
i
++
)
{
cropTbl
[
i
]
=
0
;
...
...
@@ -1355,6 +1357,8 @@ void dsputil_init(DSPContext* c, unsigned mask)
for
(
i
=
0
;
i
<
512
;
i
++
)
{
squareTbl
[
i
]
=
(
i
-
256
)
*
(
i
-
256
);
}
init_done
=
1
;
}
c
->
get_pixels
=
get_pixels_c
;
c
->
diff_pixels
=
diff_pixels_c
;
...
...
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