• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 * Copyright (c) 2009-2011 Intel Corporation.  All rights reserved.
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 
18 
19 #include "VideoDecoderTrace.h"
20 
21 #ifdef ENABLE_VIDEO_DECODER_TRACE
22 
TraceVideoDecoder(const char * cat,const char * fun,int line,const char * format,...)23 void TraceVideoDecoder(const char* cat, const char* fun, int line, const char* format, ...)
24 {
25     if (NULL == cat || NULL == fun || NULL == format)
26         return;
27 
28     printf("%s %s(#%d): ", cat, fun, line);
29     va_list args;
30     va_start(args, format);
31     vprintf(format, args);
32     va_end(args);
33     printf("\n");
34 }
35 
36 #endif
37 
38