-
Notifications
You must be signed in to change notification settings - Fork 39
/
ngx_http_video_thumbextractor_module.h
34 lines (26 loc) · 1.41 KB
/
ngx_http_video_thumbextractor_module.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_H_
#define NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_H_
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
typedef struct {
ngx_http_complex_value_t *video_filename;
ngx_http_complex_value_t *video_second;
ngx_http_complex_value_t *image_width;
ngx_http_complex_value_t *image_height;
ngx_uint_t jpeg_baseline;
ngx_uint_t jpeg_progressive_mode;
ngx_uint_t jpeg_optimize;
ngx_uint_t jpeg_smooth;
ngx_uint_t jpeg_quality;
ngx_uint_t jpeg_dpi;
ngx_flag_t enabled;
} ngx_http_video_thumbextractor_loc_conf_t;
static ngx_int_t ngx_http_video_thumbextractor_handler(ngx_http_request_t *r);
static ngx_str_t NGX_HTTP_VIDEO_THUMBEXTRACTOR_CONTENT_TYPE = ngx_string("image/jpeg");
#define NGX_HTTP_VIDEO_THUMBEXTRACTOR_VARIABLE_REQUIRED(variable, log, msg) \
if (variable.len == 0) { \
ngx_log_error(NGX_LOG_ERR, log, 0, "video thumb extractor module: %s", msg); \
return NGX_HTTP_BAD_REQUEST; \
}
#endif /* NGX_HTTP_VIDEO_THUMBEXTRACTOR_MODULE_H_ */