Skip to content

Commit

Permalink
[Decode] VPL log enhancement for new codec
Browse files Browse the repository at this point in the history
1. add logs
  • Loading branch information
yawenyan authored and gfxVPLsdm committed Jan 2, 2025
1 parent 3e17a92 commit 68f7beb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion _studio/shared/include/mfx_trace.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ typedef enum
MFX_TXTLOG_LEVEL_API = 4, //include API Func
#else
MFX_TXTLOG_LEVEL_API_AND_PARAMS = 1, //include API Func, API PARAMS
MFX_TXTLOG_LEVEL_API = 2 //include API Func
MFX_TXTLOG_LEVEL_API = 2, //include API Func
MFX_TXTLOG_LEVEL_MAX = 3 //include API Func, API PARAMS and internal Func
#endif
} mfxTxtLogLevel;

Expand Down
7 changes: 4 additions & 3 deletions _studio/shared/mfx_trace/src/mfx_trace.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2010-2020 Intel Corporation
// Copyright (c) 2010-2024 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -327,11 +327,12 @@ inline bool MFXTrace_IsPrintableCategoryAndLevel(mfxTraceU32 m_OutputInitilized,
{
bool logFlag = false;
if (m_OutputInitilized == MFX_TRACE_OUTPUT_TEXTLOG) {
#ifndef NDEBUG

if (g_Level == MFX_TXTLOG_LEVEL_MAX)
{
logFlag = true;
}
#ifndef NDEBUG
else if (g_Level == MFX_TXTLOG_LEVEL_API_AND_INTERNAL)
{
if (level != MFX_TRACE_LEVEL_API_PARAMS)
Expand All @@ -341,7 +342,7 @@ inline bool MFXTrace_IsPrintableCategoryAndLevel(mfxTraceU32 m_OutputInitilized,
}
else if (g_Level == MFX_TXTLOG_LEVEL_API_AND_PARAMS)
#else
if (g_Level == MFX_TXTLOG_LEVEL_API_AND_PARAMS)
else if (g_Level == MFX_TXTLOG_LEVEL_API_AND_PARAMS)
#endif
{
if (level == MFX_TRACE_LEVEL_API_PARAMS || level == MFX_TRACE_LEVEL_API)
Expand Down

0 comments on commit 68f7beb

Please sign in to comment.