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  

idct_mlib.c

Go to the documentation of this file.
00001 /*
00002  * idct_mlib.c
00003  * Copyright (C) 1999-2002 Håkan Hjort <d95hjort@dtek.chalmers.se>
00004  *
00005  * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
00006  * See http://libmpeg2.sourceforge.net/ for updates.
00007  *
00008  * mpeg2dec is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * mpeg2dec is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021  */
00022 
00023 #include "config.h"
00024 
00025 #ifdef LIBMPEG2_MLIB
00026 
00027 #include <mlib_types.h>
00028 #include <mlib_status.h>
00029 #include <mlib_sys.h>
00030 #include <mlib_video.h>
00031 #include <string.h>
00032 #include <inttypes.h>
00033 
00034 #include "mpeg2.h"
00035 #include "mpeg2_internal.h"
00036 
00037 void mpeg2_idct_add_mlib (const int last, int16_t * const block,
00038                           uint8_t * const dest, const int stride)
00039 {
00040     mlib_VideoIDCT_IEEE_S16_S16 (block, block);
00041     mlib_VideoAddBlock_U8_S16 (dest, block, stride);
00042     memset (block, 0, 64 * sizeof (uint16_t));
00043 }
00044 
00045 void mpeg2_idct_copy_mlib_non_ieee (int16_t * const block,
00046                                     uint8_t * const dest, const int stride)
00047 {
00048     mlib_VideoIDCT8x8_U8_S16 (dest, block, stride);
00049     memset (block, 0, 64 * sizeof (uint16_t));
00050 }
00051 
00052 void mpeg2_idct_add_mlib_non_ieee (const int last, int16_t * const block,
00053                                    uint8_t * const dest, const int stride)
00054 {
00055     mlib_VideoIDCT8x8_S16_S16 (block, block);
00056     mlib_VideoAddBlock_U8_S16 (dest, block, stride);
00057     memset (block, 0, 64 * sizeof (uint16_t));
00058 }
00059 
00060 #endif
 

Powered by Plone

This site conforms to the following standards: