comparison mjpeg.c @ 76:0b09bd08ef4b libavcodec

win32 fixes
author glantau
date Wed, 15 Aug 2001 22:33:03 +0000
parents 99cc25b48e24
children 5784987c3940
comparison
equal deleted inserted replaced
75:bb7d6fe159ad 76:0b09bd08ef4b
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */ 18 */
19 //#define DEBUG
19 #include "avcodec.h" 20 #include "avcodec.h"
20 #include "dsputil.h" 21 #include "dsputil.h"
21 #include "mpegvideo.h" 22 #include "mpegvideo.h"
22 23
23 typedef struct MJpegContext { 24 typedef struct MJpegContext {
416 } 417 }
417 } 418 }
418 419
419 /******************************************/ 420 /******************************************/
420 /* decoding */ 421 /* decoding */
421
422 //#define DEBUG
423
424 #ifndef CONFIG_WIN32
425
426 #ifdef DEBUG
427 #define dprintf(fmt,args...) printf(fmt, ## args)
428 #else
429 #define dprintf(fmt,args...)
430 #endif
431
432 #else
433
434 inline void dprintf(const char* fmt,...) {}
435
436 #endif
437 422
438 /* compressed picture size */ 423 /* compressed picture size */
439 #define PICTURE_BUFFER_SIZE 100000 424 #define PICTURE_BUFFER_SIZE 100000
440 425
441 #define MAX_COMPONENTS 4 426 #define MAX_COMPONENTS 4