1/*
2 * Copyright (C) 2011 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef VIDEO_EDITOR_LOGGING_H
18#define VIDEO_EDITOR_LOGGING_H
19
20//#define VIDEOEDIT_LOGGING_ENABLED
21
22#define VIDEOEDIT_LOG_INDENTATION                       (3)
23
24#define VIDEOEDIT_LOG_ERROR                             __android_log_print
25#define VIDEOEDIT_LOG_EXCEPTION                         __android_log_print
26
27#ifdef VIDEOEDIT_LOGGING_ENABLED
28
29#define VIDEOEDIT_LOG_ALLOCATION                        __android_log_print
30#define VIDEOEDIT_LOG_API                               __android_log_print
31#define VIDEOEDIT_LOG_FUNCTION                          __android_log_print
32#define VIDEOEDIT_LOG_RESULT(x,y, ...)                     ALOGI(y, __VA_ARGS__ )
33#define VIDEOEDIT_LOG_SETTING                           __android_log_print
34#define VIDEOEDIT_LOG_EDIT_SETTINGS(m_settings)         videoEditClasses_logEditSettings\
35                                               (m_settings, VIDEOEDIT_LOG_INDENTATION)
36#define VIDEOEDIT_PROP_LOG_PROPERTIES(m_properties)          videoEditPropClass_logProperties\
37                                                  (m_properties, VIDEOEDIT_LOG_INDENTATION)
38#define VIDEOEDIT_PROP_LOG_RESULT                            __android_log_print
39
40#else
41
42#define VIDEOEDIT_LOG_ALLOCATION                        (void)
43#define VIDEOEDIT_LOG_API                               (void)
44#define VIDEOEDIT_LOG_FUNCTION                          (void)
45#define VIDEOEDIT_LOG_RESULT                            (void)
46#define VIDEOEDIT_LOG_SETTING                           (void)
47#define VIDEOEDIT_LOG_EDIT_SETTINGS(m_settings)         (void)m_settings
48#define VIDEOEDIT_PROP_LOG_PROPERTIES(m_properties)          (void)m_properties
49#define VIDEOEDIT_PROP_LOG_RESULT                            (void)
50
51#endif
52
53#endif // VIDEO_EDITOR_LOGGING_H
54
55