mediacodec_sw_buffer.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Android MediaCodec software buffer copy functions
  3. *
  4. * Copyright (c) 2015-2016 Matthieu Bouron <matthieu.bouron stupeflix.com>
  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_MEDIACODEC_SW_BUFFER_H
  23. #define AVCODEC_MEDIACODEC_SW_BUFFER_H
  24. #include <sys/types.h>
  25. #include "libavutil/frame.h"
  26. #include "avcodec.h"
  27. #include "mediacodec_wrapper.h"
  28. #include "mediacodecdec_common.h"
  29. void ff_mediacodec_sw_buffer_copy_yuv420_planar(AVCodecContext *avctx,
  30. MediaCodecDecContext *s,
  31. uint8_t *data,
  32. size_t size,
  33. FFAMediaCodecBufferInfo *info,
  34. AVFrame *frame);
  35. void ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(AVCodecContext *avctx,
  36. MediaCodecDecContext *s,
  37. uint8_t *data,
  38. size_t size,
  39. FFAMediaCodecBufferInfo *info,
  40. AVFrame *frame);
  41. void ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(AVCodecContext *avctx,
  42. MediaCodecDecContext *s,
  43. uint8_t *data,
  44. size_t size,
  45. FFAMediaCodecBufferInfo *info,
  46. AVFrame *frame);
  47. void ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(AVCodecContext *avctx,
  48. MediaCodecDecContext *s,
  49. uint8_t *data,
  50. size_t size,
  51. FFAMediaCodecBufferInfo *info,
  52. AVFrame *frame);
  53. #endif /* AVCODEC_MEDIACODEC_SW_BUFFER_H */