Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
opencv
Commits
0a3aca23
Commit
0a3aca23
authored
Mar 04, 2014
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Mar 04, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2436 from ilya-lavrenov:tapi_dft_fix
parents
c9d8025f
be5b5a04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dxt.cpp
modules/core/src/dxt.cpp
+4
-3
No files found.
modules/core/src/dxt.cpp
View file @
0a3aca23
...
...
@@ -1500,7 +1500,8 @@ class PlanCache
{
FftPlan
(
const
Size
&
_dft_size
,
int
_src_step
,
int
_dst_step
,
bool
_doubleFP
,
bool
_inplace
,
int
_flags
,
FftType
_fftType
)
:
dft_size
(
_dft_size
),
src_step
(
_src_step
),
dst_step
(
_dst_step
),
doubleFP
(
_doubleFP
),
inplace
(
_inplace
),
flags
(
_flags
),
fftType
(
_fftType
),
plHandle
(
0
)
doubleFP
(
_doubleFP
),
inplace
(
_inplace
),
flags
(
_flags
),
fftType
(
_fftType
),
context
((
cl_context
)
ocl
::
Context
::
getDefault
().
ptr
()),
plHandle
(
0
)
{
bool
dft_inverse
=
(
flags
&
DFT_INVERSE
)
!=
0
;
bool
dft_scale
=
(
flags
&
DFT_SCALE
)
!=
0
;
...
...
@@ -1544,7 +1545,6 @@ class PlanCache
clStridesIn
[
2
]
=
dft_rows
?
clStridesIn
[
1
]
:
dft_size
.
width
*
clStridesIn
[
1
];
clStridesOut
[
2
]
=
dft_rows
?
clStridesOut
[
1
]
:
dft_size
.
width
*
clStridesOut
[
1
];
// TODO remove all plans if context changed
CLAMDDFT_Assert
(
clAmdFftCreateDefaultPlan
(
&
plHandle
,
(
cl_context
)
ocl
::
Context
::
getDefault
().
ptr
(),
dim
,
clLengthsIn
))
// setting plan properties
...
...
@@ -1595,9 +1595,10 @@ public:
{
cl_context
currentContext
=
(
cl_context
)
ocl
::
Context
::
getDefault
().
ptr
();
for
(
size_t
i
=
0
,
size
=
planStorage
.
size
();
i
<
size
;
i
++
)
for
(
size_t
i
=
0
,
size
=
planStorage
.
size
();
i
<
size
;
++
i
)
{
const
FftPlan
*
const
plan
=
planStorage
[
i
];
if
(
plan
->
dft_size
==
dft_size
&&
plan
->
flags
==
flags
&&
plan
->
src_step
==
src_step
&&
...
...
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