c64xint.h 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /********************************************************************
  2. * *
  3. * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
  4. * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
  5. * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
  6. * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
  7. * *
  8. * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007 *
  9. * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
  10. * *
  11. ********************************************************************
  12. function:
  13. last mod: $Id$
  14. ********************************************************************/
  15. #if !defined(_c64x_c64xint_H)
  16. # define _c64x_c64xint_H (1)
  17. # include "../internal.h"
  18. # if defined(OC_C64X_ASM)
  19. # define oc_state_accel_init oc_state_accel_init_c64x
  20. # define oc_frag_copy(_state,_dst,_src,_ystride) \
  21. oc_frag_copy_c64x(_dst,_src,_ystride)
  22. # define oc_frag_copy_list(_state,_dst_frame,_src_frame,_ystride, \
  23. _fragis,_nfragis,_frag_buf_offs) \
  24. oc_frag_copy_list_c64x(_dst_frame,_src_frame,_ystride, \
  25. _fragis,_nfragis,_frag_buf_offs)
  26. # define oc_frag_recon_intra(_state,_dst,_dst_ystride,_residue) \
  27. oc_frag_recon_intra_c64x(_dst,_dst_ystride,_residue)
  28. # define oc_frag_recon_inter(_state,_dst,_src,_ystride,_residue) \
  29. oc_frag_recon_inter_c64x(_dst,_src,_ystride,_residue)
  30. # define oc_frag_recon_inter2(_state,_dst,_src1,_src2,_ystride,_residue) \
  31. oc_frag_recon_inter2_c64x(_dst,_src1,_src2,_ystride,_residue)
  32. # define oc_idct8x8(_state,_y,_x,_last_zzi) \
  33. oc_idct8x8_c64x(_y,_x,_last_zzi)
  34. # define oc_state_frag_recon oc_state_frag_recon_c64x
  35. # define oc_loop_filter_init(_state,_bv,_flimit) \
  36. oc_loop_filter_init_c64x(_bv,_flimit)
  37. # define oc_state_loop_filter_frag_rows oc_state_loop_filter_frag_rows_c64x
  38. # define oc_restore_fpu(_state) do{}while(0)
  39. # endif
  40. # include "../state.h"
  41. void oc_state_accel_init_c64x(oc_theora_state *_state);
  42. void oc_frag_copy_c64x(unsigned char *_dst,
  43. const unsigned char *_src,int _ystride);
  44. void oc_frag_copy_list_c64x(unsigned char *_dst_frame,
  45. const unsigned char *_src_frame,int _ystride,
  46. const ptrdiff_t *_fragis,ptrdiff_t _nfragis,const ptrdiff_t *_frag_buf_offs);
  47. void oc_frag_recon_intra_c64x(unsigned char *_dst,int _ystride,
  48. const ogg_int16_t *_residue);
  49. void oc_frag_recon_inter_c64x(unsigned char *_dst,
  50. const unsigned char *_src,int _ystride,const ogg_int16_t *_residue);
  51. void oc_frag_recon_inter2_c64x(unsigned char *_dst,const unsigned char *_src1,
  52. const unsigned char *_src2,int _ystride,const ogg_int16_t *_residue);
  53. void oc_idct8x8_c64x(ogg_int16_t _y[64],ogg_int16_t _x[64],int _last_zzi);
  54. void oc_state_frag_recon_c64x(const oc_theora_state *_state,ptrdiff_t _fragi,
  55. int _pli,ogg_int16_t _dct_coeffs[128],int _last_zzi,ogg_uint16_t _dc_quant);
  56. void oc_loop_filter_init_c64x(signed char _bv[256],int _flimit);
  57. void oc_state_loop_filter_frag_rows_c64x(const oc_theora_state *_state,
  58. signed char _bv[256],int _refi,int _pli,int _fragy0,int _fragy_end);
  59. #endif