/*
- * ***** BEGIN GPL LICENSE BLOCK *****
- *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
*
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved.
- *
- * The Original Code is: all of this file.
- *
- * Contributor(s): none yet.
- *
- * ***** END GPL LICENSE BLOCK *****
*/
-/** \file blender/avi/intern/avi_codecs.c
- * \ingroup avi
+/** \file \ingroup avi
*
* This is external code. Identify and convert different avi-files.
*/
#include "avi_mjpeg.h"
#include "avi_rgb32.h"
-void *avi_format_convert(AviMovie *movie, int stream, void *buffer, AviFormat from, AviFormat to, int *size)
+void *avi_format_convert(AviMovie *movie, int stream, void *buffer, AviFormat from, AviFormat to, size_t *size)
{
if (from == to)
return buffer;
case AVI_FORMAT_AVI_RGB:
case AVI_FORMAT_MJPEG:
return FCC("vids");
- break;
default:
return 0;
- break;
}
}
case AVI_FORMAT_RGB32:
case AVI_FORMAT_AVI_RGB:
return FCC("DIB ");
- break;
case AVI_FORMAT_MJPEG:
return FCC("MJPG");
- break;
default:
return 0;
- break;
}
}
case AVI_FORMAT_RGB32:
case AVI_FORMAT_AVI_RGB:
return 0;
- break;
case AVI_FORMAT_MJPEG:
return FCC("MJPG");
- break;
default:
return 0;
- break;
}
}