mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-28 03:34:06 +00:00
Separate strategyselector debug prints from _DEBUG.
- I only want to see the strategy stuff.
This commit is contained in:
parent
1c97a10a6d
commit
3f00592b96
|
@ -100,9 +100,9 @@ int strategyselector_register(void * const opaque, const char * const type, cons
|
||||||
new_strategy->priority = priority;
|
new_strategy->priority = priority;
|
||||||
new_strategy->fptr = fptr;
|
new_strategy->fptr = fptr;
|
||||||
}
|
}
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG_STRATEGYSELECTOR
|
||||||
fprintf(stderr, "Registered strategy %s:%s with priority %d (%p)\n", type, strategy_name, priority, fptr);
|
fprintf(stderr, "Registered strategy %s:%s with priority %d (%p)\n", type, strategy_name, priority, fptr);
|
||||||
#endif //_DEBUG
|
#endif //DEBUG_STRATEGYSELECTOR
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ static void* strategyselector_choose_for(const strategy_list * const strategies,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG_STRATEGYSELECTOR
|
||||||
fprintf(stderr, "Choosing strategy for %s:\n", strategy_type);
|
fprintf(stderr, "Choosing strategy for %s:\n", strategy_type);
|
||||||
for (i=0; i < strategies->count; ++i) {
|
for (i=0; i < strategies->count; ++i) {
|
||||||
if (strcmp(strategies->strategies[i].type, strategy_type) == 0) {
|
if (strcmp(strategies->strategies[i].type, strategy_type) == 0) {
|
||||||
|
@ -150,7 +150,7 @@ static void* strategyselector_choose_for(const strategy_list * const strategies,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //_DEBUG
|
#endif //DEBUG_STRATEGYSELECTOR
|
||||||
|
|
||||||
|
|
||||||
if (max_priority_i == -1) {
|
if (max_priority_i == -1) {
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* along with Kvazaar. If not, see <http://www.gnu.org/licenses/>.
|
* along with Kvazaar. If not, see <http://www.gnu.org/licenses/>.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#if defined(_DEBUG) && !defined(DEBUG_STRATEGYSELECTOR)
|
||||||
|
# define DEBUG_STRATEGYSELECTOR
|
||||||
|
#endif
|
||||||
|
|
||||||
//Hardware data (abstraction of defines). Extend for other compilers
|
//Hardware data (abstraction of defines). Extend for other compilers
|
||||||
|
|
||||||
#if defined(_M_IX86) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__)
|
#if defined(_M_IX86) || defined(__i586__) || defined(__i686__) || defined(_M_X64) || defined(_M_AMD64) || defined(__amd64__) || defined(__x86_64__)
|
||||||
|
|
Loading…
Reference in a new issue