You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8KB

  1. /*
  2. * Image format
  3. * Copyright (c) 2014 Michael Niedermayer
  4. *
  5. * This file is part of FFmpeg.
  6. *
  7. * FFmpeg is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * FFmpeg is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with FFmpeg; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. #ifndef AVFORMAT_IMG2_H
  22. #define AVFORMAT_IMG2_H
  23. #include <stdint.h>
  24. #include "avformat.h"
  25. #if HAVE_GLOB
  26. #include <glob.h>
  27. #endif
  28. typedef struct {
  29. const AVClass *class; /**< Class for private options. */
  30. int img_first;
  31. int img_last;
  32. int img_number;
  33. int64_t pts;
  34. int img_count;
  35. int is_pipe;
  36. int split_planes; /**< use independent file for each Y, U, V plane */
  37. char path[1024];
  38. char *pixel_format; /**< Set by a private option. */
  39. int width, height; /**< Set by a private option. */
  40. AVRational framerate; /**< Set by a private option. */
  41. int loop;
  42. enum { PT_GLOB_SEQUENCE, PT_GLOB, PT_SEQUENCE } pattern_type;
  43. int use_glob;
  44. #if HAVE_GLOB
  45. glob_t globstate;
  46. #endif
  47. int start_number;
  48. int start_number_range;
  49. int frame_size;
  50. int ts_from_file;
  51. } VideoDemuxData;
  52. int ff_img_read_header(AVFormatContext *s1);
  53. int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt);
  54. #endif