v4l2_fmt.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * V4L2 format helper functions
  3. *
  4. * Copyright (C) 2017 Alexis Ballier <aballier@gentoo.org>
  5. * Copyright (C) 2017 Jorge Ramirez <jorge.ramirez-ortiz@linaro.org>
  6. *
  7. * This file is part of FFmpeg.
  8. *
  9. * FFmpeg is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 2.1 of the License, or (at your option) any later version.
  13. *
  14. * FFmpeg is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with FFmpeg; if not, write to the Free Software
  21. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  22. */
  23. #ifndef AVCODEC_V4L2_FMT_H
  24. #define AVCODEC_V4L2_FMT_H
  25. #include "libavcodec/avcodec.h"
  26. #include "libavutil/pixfmt.h"
  27. enum AVPixelFormat ff_v4l2_format_v4l2_to_avfmt(uint32_t v4l2_fmt, enum AVCodecID avcodec);
  28. uint32_t ff_v4l2_format_avcodec_to_v4l2(enum AVCodecID avcodec);
  29. uint32_t ff_v4l2_format_avfmt_to_v4l2(enum AVPixelFormat avfmt);
  30. #endif /* AVCODEC_V4L2_FMT_H*/