History

move trace related info to interface header

ruil2 committed 12 years ago

Commit 44b048e1 parent 84c1f3a7 files · +20 −22Browse files

Showing the changes to codec/api (2 of 7 files). Show all

Unified · Split

2 files
  1. codec/api/svc/codec_api.h +1 −0
  2. codec/api/svc/codec_app_def.h +12 −0
codec/api/svc/codec_api.h+1−0
@@ -191,6 +191,7 @@ long (*GetOption) (ISVCDecoder*, DECODER_OPTION eOptionId, void* pOption); · 190 unmodified lines
191191 };
192192 #endif
193193
194+typedef void (*WelsTraceCallback) (void* ctx, int level, const char* string);
194195
195196 int WelsCreateSVCEncoder (ISVCEncoder** ppEncoder);
196197 void WelsDestroySVCEncoder (ISVCEncoder* pEncoder);
codec/api/svc/codec_app_def.h+12−0
@@ -231,6 +231,18 @@ typedef enum { · 230 unmodified lines
231231 LEVEL_5_2
232232 } ELevelIdc;
233233
234+
235+enum {
236+ WELS_LOG_QUIET = 0x00, // Quiet mode
237+ WELS_LOG_ERROR = 1 << 0, // Error log iLevel
238+ WELS_LOG_WARNING = 1 << 1, // Warning log iLevel
239+ WELS_LOG_INFO = 1 << 2, // Information log iLevel
240+ WELS_LOG_DEBUG = 1 << 3, // Debug log iLevel
241+ WELS_LOG_RESV = 1 << 4, // Resversed log iLevel
242+ WELS_LOG_LEVEL_COUNT = 5,
243+ WELS_LOG_DEFAULT = WELS_LOG_DEBUG // Default log iLevel in Wels codec
244+};
245+
234246 typedef struct {
235247 SliceModeEnum uiSliceMode; //by default, uiSliceMode will be SM_SINGLE_SLICE
236248 SSliceArgument sSliceArgument;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t