#pragma once #include struct http_worker_s; struct buffer_s; // M-JPEG void http_snapshot(struct http_worker_s *worker, FILE *stream); void http_stream(struct http_worker_s *worker, FILE *stream); void http_jpeg_capture(struct buffer_s *buf); void http_jpeg_lowres_capture(struct buffer_s *buf); bool http_jpeg_needs_buffer(); void http_option(struct http_worker_s *worker, FILE *stream); // H264 bool http_h264_needs_buffer(); void http_h264_capture(struct buffer_s *buf); void http_h264_lowres_capture(struct buffer_s *buf); void http_h264_video(struct http_worker_s *worker, FILE *stream); bool h264_is_key_frame(struct buffer_s *buf); void http_mkv_video(struct http_worker_s *worker, FILE *stream); void http_mp4_video(struct http_worker_s *worker, FILE *stream); void http_mov_video(struct http_worker_s *worker, FILE *stream); #define HTTP_LOW_RES_PARAM "res=low"