• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavcodec/bfin/config_bfin.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2007 Marc Hoffman <marc.hoffman@analog.com>
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * FFmpeg is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with FFmpeg; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00019  */
00020 /*
00021    low level assembler interface wrapper
00022 
00023 DEFUN(put_pixels_clamped,mL1,
00024         (DCTELEM *block, uint8_t *dest, int line_size)):
00025 
00026       body
00027 
00028       rts;
00029 */
00030 
00031 #ifndef AVCODEC_BFIN_CONFIG_BFIN_H
00032 #define AVCODEC_BFIN_CONFIG_BFIN_H
00033 
00034 #ifndef DEFUN
00035 
00036 #define mL3 .text
00037 #ifndef mL1
00038 #ifdef __FDPIC__
00039 #define mL1 .l1.text
00040 #else
00041 #define mL1 mL3
00042 #endif
00043 #endif
00044 
00045 #define DEFUN(fname,where,interface) \
00046         .section where;              \
00047         .global _ff_bfin_ ## fname ; \
00048         .type _ff_bfin_ ## fname, STT_FUNC; \
00049         .align 8;                    \
00050         _ff_bfin_ ## fname
00051 
00052 #define DEFUN_END(fname) \
00053         .size _ff_bfin_ ## fname, . - _ff_bfin_ ## fname
00054 
00055 #ifdef __FDPIC__
00056 #define RELOC(reg,got,obj) reg = [got + obj@GOT17M4]
00057 #else
00058 #define RELOC(reg,got,obj) reg.L = obj; reg.H = obj
00059 #endif
00060 
00061 #endif
00062 
00063 #endif /* AVCODEC_BFIN_CONFIG_BFIN_H */

Generated on Sat Feb 16 2013 09:23:11 for ffmpeg by  doxygen 1.7.1