od_intra.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*Daala video codec
  2. Copyright (c) 2013 Daala project contributors. All rights reserved.
  3. Redistribution and use in source and binary forms, with or without
  4. modification, are permitted provided that the following conditions are met:
  5. - Redistributions of source code must retain the above copyright notice, this
  6. list of conditions and the following disclaimer.
  7. - Redistributions in binary form must reproduce the above copyright notice,
  8. this list of conditions and the following disclaimer in the documentation
  9. and/or other materials provided with the distribution.
  10. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
  11. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  12. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  13. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
  14. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  15. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  16. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  17. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  18. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  19. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
  20. #if !defined(_tools_od_intra_H)
  21. # define _tools_od_intra_H (0)
  22. #include <stdio.h>
  23. #include "od_defs.h"
  24. typedef void (*ne_intra_mult_func)(double *_pred,int _stride,
  25. const od_coeff *_coeff,int _mode);
  26. extern const ne_intra_mult_func NE_INTRA_MULT[OD_NBSIZES];
  27. void od_intra_init();
  28. void od_intra_clear();
  29. extern double NE_PRED_OFFSETS_4x4[OD_INTRA_NMODES][4][4];
  30. extern int NE_PRED_MULTS_4x4[OD_INTRA_NMODES][4][4];
  31. extern double *NE_PRED_WEIGHTS_4x4[OD_INTRA_NMODES];
  32. extern int *NE_PRED_INDEX_4x4[OD_INTRA_NMODES];
  33. extern double NE_PRED_OFFSETS_8x8[OD_INTRA_NMODES][8][8];
  34. extern int NE_PRED_MULTS_8x8[OD_INTRA_NMODES][8][8];
  35. extern double *NE_PRED_WEIGHTS_8x8[OD_INTRA_NMODES];
  36. extern int *NE_PRED_INDEX_8x8[OD_INTRA_NMODES];
  37. extern double NE_PRED_OFFSETS_16x16[OD_INTRA_NMODES][16][16];
  38. extern int NE_PRED_MULTS_16x16[OD_INTRA_NMODES][16][16];
  39. extern double *NE_PRED_WEIGHTS_16x16[OD_INTRA_NMODES];
  40. extern int *NE_PRED_INDEX_16x16[OD_INTRA_NMODES];
  41. void update_predictors(int _mode,double *_beta_0,double *_beta_1,int *_mask);
  42. void print_predictors(FILE *_fp);
  43. #endif