Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

convert.h

Go to the documentation of this file.
00001 /*
00002  * convert.h
00003  * Copyright (C) 2000-2002 Michel Lespinasse <walken@zoy.org>
00004  * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma@ess.engr.uvic.ca>
00005  *
00006  * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
00007  * See http://libmpeg2.sourceforge.net/ for updates.
00008  *
00009  * mpeg2dec is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * mpeg2dec is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022  */
00023 
00024 #ifndef CONVERT_H
00025 #define CONVERT_H
00026 
00027 #define CONVERT_FRAME 0
00028 #define CONVERT_TOP_FIELD 1
00029 #define CONVERT_BOTTOM_FIELD 2
00030 #define CONVERT_BOTH_FIELDS 3
00031 
00032 typedef struct convert_init_s {
00033     void * id;
00034     int id_size;
00035     int buf_size[3];
00036     void (* start) (void * id, uint8_t * const * dest, int flags);
00037     void (* copy) (void * id, uint8_t * const * src, unsigned int v_offset);
00038 } convert_init_t;
00039 
00040 typedef void convert_t (int width, int height, uint32_t accel, void * arg,
00041                         convert_init_t * result);
00042 
00043 convert_t convert_rgb32;
00044 convert_t convert_rgb24;
00045 convert_t convert_rgb16;
00046 convert_t convert_rgb15;
00047 convert_t convert_bgr32;
00048 convert_t convert_bgr24;
00049 convert_t convert_bgr16;
00050 convert_t convert_bgr15;
00051 
00052 #define CONVERT_RGB 0
00053 #define CONVERT_BGR 1
00054 convert_t * convert_rgb (int order, int bpp);
00055 
00056 #endif /* CONVERT_H */
 

Powered by Plone

This site conforms to the following standards: