hevcpred.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * HEVC video Decoder
  3. *
  4. * Copyright (C) 2012 - 2013 Guillaume Martres
  5. *
  6. * This file is part of FFmpeg.
  7. *
  8. * FFmpeg is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * FFmpeg is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with FFmpeg; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. #ifndef AVCODEC_HEVCPRED_H
  23. #define AVCODEC_HEVCPRED_H
  24. #include <stddef.h>
  25. #include <stdint.h>
  26. struct HEVCContext;
  27. typedef struct HEVCPredContext {
  28. void (*intra_pred[4])(struct HEVCContext *s, int x0, int y0, int c_idx);
  29. void (*pred_planar[4])(uint8_t *src, const uint8_t *top,
  30. const uint8_t *left, ptrdiff_t stride);
  31. void (*pred_dc)(uint8_t *src, const uint8_t *top, const uint8_t *left,
  32. ptrdiff_t stride, int log2_size, int c_idx);
  33. void (*pred_angular[4])(uint8_t *src, const uint8_t *top,
  34. const uint8_t *left, ptrdiff_t stride,
  35. int c_idx, int mode);
  36. } HEVCPredContext;
  37. void ff_hevc_pred_init(HEVCPredContext *hpc, int bit_depth);
  38. void ff_hevc_pred_init_mips(HEVCPredContext *hpc, int bit_depth);
  39. #endif /* AVCODEC_HEVCPRED_H */