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

libavcodec/diracdsp.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2010 David Conrad
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 #ifndef AVCODEC_DIRACDSP_H
00022 #define AVCODEC_DIRACDSP_H
00023 
00024 #include <stdint.h>
00025 
00026 typedef void (*dirac_weight_func)(uint8_t *block, int stride, int log2_denom, int weight, int h);
00027 typedef void (*dirac_biweight_func)(uint8_t *dst, uint8_t *src, int stride, int log2_denom, int weightd, int weights, int h);
00028 
00029 typedef struct {
00030     void (*dirac_hpel_filter)(uint8_t *dsth, uint8_t *dstv, uint8_t *dstc, uint8_t *src, int stride, int width, int height);
00041     void (*put_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h);
00042     void (*avg_dirac_pixels_tab[3][4])(uint8_t *dst, const uint8_t *src[5], int stride, int h);
00043 
00044     void (*put_signed_rect_clamped)(uint8_t *dst/*align 16*/, int dst_stride, const int16_t *src/*align 16*/, int src_stride, int width, int height/*mod 2*/);
00045     void (*put_rect_clamped)(uint8_t *dst/*align 16*/, int dst_stride, const int16_t *src/*align 16*/, int src_stride, int width, int height/*mod 2*/);
00046     void (*add_rect_clamped)(uint8_t *dst/*align 16*/, const uint16_t *src/*align 16*/, int stride, const int16_t *idwt/*align 16*/, int idwt_stride, int width, int height/*mod 2*/);
00047     void (*add_dirac_obmc[3])(uint16_t *dst, const uint8_t *src, int stride, const uint8_t *obmc_weight, int yblen);
00048 
00049     dirac_weight_func weight_dirac_pixels_tab[3];
00050     dirac_biweight_func biweight_dirac_pixels_tab[3];
00051 } DiracDSPContext;
00052 
00053 #define DECL_DIRAC_PIXOP(PFX, EXT)                                      \
00054     void ff_ ## PFX ## _dirac_pixels8_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h); \
00055     void ff_ ## PFX ## _dirac_pixels16_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h); \
00056     void ff_ ## PFX ## _dirac_pixels32_ ## EXT(uint8_t *dst, const uint8_t *src[5], int stride, int h)
00057 
00058 DECL_DIRAC_PIXOP(put, c);
00059 DECL_DIRAC_PIXOP(avg, c);
00060 DECL_DIRAC_PIXOP(put, l2_c);
00061 DECL_DIRAC_PIXOP(avg, l2_c);
00062 DECL_DIRAC_PIXOP(put, l4_c);
00063 DECL_DIRAC_PIXOP(avg, l4_c);
00064 
00065 void ff_diracdsp_init(DiracDSPContext *c);
00066 
00067 #endif /* AVCODEC_DIRACDSP_H */
Generated on Fri Feb 1 2013 14:34:32 for FFmpeg by doxygen 1.7.1