funkalicious 0.1

postproc_generic.c

Go to the documentation of this file.
00001 /*
00002 ** postproc_generic.c
00003 ** 
00004 ** Made by (Johnny Q. Hacker)
00005 ** Login   <solarion@borkborkbork>
00006 ** 
00007 
00008     Copyright (C) 2010 Joseph Pingenot
00009 
00010     This program is free software: you can redistribute it and/or modify
00011     it under the terms of the GNU Affero General Public License as published by
00012     the Free Software Foundation, either version 3 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU Affero General Public License for more details.
00019 
00020     You should have received a copy of the GNU Affero General Public License
00021     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00022 
00023 ** Started on  Thu Feb 25 15:14:47 2010 Johnny Q. Hacker
00024 ** Last update Sun May 12 01:17:25 2002 Speed Blue
00025 */
00026 
00027 #include "postproc_generic.h"
00028 
00029 
00030 enum postproc_type dotcode_type_to_postproc_type(enum dotcode_type t) {
00031   switch(t) {
00032   case DOTCODE_INT:
00033     return POSTPROC_INT;
00034   case DOTCODE_FLOAT8:
00035     return POSTPROC_DOUBLE;
00036   case DOTCODE_FLOAT4:
00037     return POSTPROC_FLOAT;
00038   default:
00039     return POSTPROC_INVALID_TYPE;
00040   }
00041 }
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines