Showing the changes to codec/api (2 of 7 files). Show all
Unified · Split
| @@ -191,6 +191,7 @@ long (*GetOption) (ISVCDecoder*, DECODER_OPTION eOptionId, void* pOption); · 190 unmodified lines | ||
| 191 | 191 | }; |
| 192 | 192 | #endif |
| 193 | 193 | |
| 194 | +typedef void (*WelsTraceCallback) (void* ctx, int level, const char* string); | |
| 194 | 195 | |
| 195 | 196 | int WelsCreateSVCEncoder (ISVCEncoder** ppEncoder); |
| 196 | 197 | void WelsDestroySVCEncoder (ISVCEncoder* pEncoder); |
| @@ -231,6 +231,18 @@ typedef enum { · 230 unmodified lines | ||
| 231 | 231 | LEVEL_5_2 |
| 232 | 232 | } ELevelIdc; |
| 233 | 233 | |
| 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 | + | |
| 234 | 246 | typedef struct { |
| 235 | 247 | SliceModeEnum uiSliceMode; //by default, uiSliceMode will be SM_SINGLE_SLICE |
| 236 | 248 | SSliceArgument sSliceArgument; |