Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Variables
ngx_http_mp4_module.c File Reference
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
Include dependency graph for ngx_http_mp4_module.c:

Go to the source code of this file.

Data Structures

struct  ngx_http_mp4_conf_t
struct  ngx_mp4_stsc_entry_t
struct  ngx_http_mp4_trak_t
struct  ngx_http_mp4_file_t
struct  ngx_http_mp4_atom_handler_t
struct  ngx_mp4_atom_header_t
struct  ngx_mp4_atom_header64_t
struct  ngx_mp4_mvhd_atom_t
struct  ngx_mp4_mvhd64_atom_t
struct  ngx_mp4_tkhd_atom_t
struct  ngx_mp4_tkhd64_atom_t
struct  ngx_mp4_mdhd_atom_t
struct  ngx_mp4_mdhd64_atom_t
struct  ngx_mp4_stsd_atom_t
struct  ngx_mp4_stts_atom_t
struct  ngx_mp4_stts_entry_t
struct  ngx_http_mp4_stss_atom_t
struct  ngx_mp4_ctts_atom_t
struct  ngx_mp4_ctts_entry_t
struct  ngx_mp4_stsc_atom_t
struct  ngx_mp4_stsz_atom_t
struct  ngx_mp4_stco_atom_t
struct  ngx_mp4_co64_atom_t

Macros

#define NGX_HTTP_MP4_TRAK_ATOM   0
#define NGX_HTTP_MP4_TKHD_ATOM   1
#define NGX_HTTP_MP4_MDIA_ATOM   2
#define NGX_HTTP_MP4_MDHD_ATOM   3
#define NGX_HTTP_MP4_HDLR_ATOM   4
#define NGX_HTTP_MP4_MINF_ATOM   5
#define NGX_HTTP_MP4_VMHD_ATOM   6
#define NGX_HTTP_MP4_SMHD_ATOM   7
#define NGX_HTTP_MP4_DINF_ATOM   8
#define NGX_HTTP_MP4_STBL_ATOM   9
#define NGX_HTTP_MP4_STSD_ATOM   10
#define NGX_HTTP_MP4_STTS_ATOM   11
#define NGX_HTTP_MP4_STTS_DATA   12
#define NGX_HTTP_MP4_STSS_ATOM   13
#define NGX_HTTP_MP4_STSS_DATA   14
#define NGX_HTTP_MP4_CTTS_ATOM   15
#define NGX_HTTP_MP4_CTTS_DATA   16
#define NGX_HTTP_MP4_STSC_ATOM   17
#define NGX_HTTP_MP4_STSC_CHUNK   18
#define NGX_HTTP_MP4_STSC_DATA   19
#define NGX_HTTP_MP4_STSZ_ATOM   20
#define NGX_HTTP_MP4_STSZ_DATA   21
#define NGX_HTTP_MP4_STCO_ATOM   22
#define NGX_HTTP_MP4_STCO_DATA   23
#define NGX_HTTP_MP4_CO64_ATOM   24
#define NGX_HTTP_MP4_CO64_DATA   25
#define NGX_HTTP_MP4_LAST_ATOM   NGX_HTTP_MP4_CO64_DATA
#define ngx_mp4_atom_header(mp4)   (mp4->buffer_pos - 8)
#define ngx_mp4_atom_data(mp4)   mp4->buffer_pos
#define ngx_mp4_atom_data_size(t)   (uint64_t) (sizeof(t) - 8)
#define ngx_mp4_atom_next(mp4, n)   mp4->buffer_pos += n; mp4->offset += n
#define ngx_mp4_set_atom_name(p, n1, n2, n3, n4)
#define ngx_mp4_get_32value(p)
#define ngx_mp4_set_32value(p, n)
#define ngx_mp4_get_64value(p)
#define ngx_mp4_set_64value(p, n)
#define ngx_mp4_last_trak(mp4)   &((ngx_http_mp4_trak_t *) mp4->trak.elts)[mp4->trak.nelts - 1]
#define NGX_HTTP_MP4_MOOV_BUFFER_EXCESS   (4 * 1024)

Variables

ngx_module_t ngx_http_mp4_module

Macro Definition Documentation

#define NGX_HTTP_MP4_CO64_ATOM   24

Definition at line 36 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_CO64_DATA   25

Definition at line 37 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_CTTS_ATOM   15

Definition at line 27 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_CTTS_DATA   16

Definition at line 28 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_DINF_ATOM   8

Definition at line 20 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_HDLR_ATOM   4

Definition at line 16 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_LAST_ATOM   NGX_HTTP_MP4_CO64_DATA

Definition at line 39 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_MDHD_ATOM   3

Definition at line 15 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_MDIA_ATOM   2

Definition at line 14 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_MINF_ATOM   5

Definition at line 17 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_MOOV_BUFFER_EXCESS   (4 * 1024)

Definition at line 995 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_SMHD_ATOM   7

Definition at line 19 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STBL_ATOM   9

Definition at line 21 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STCO_ATOM   22

Definition at line 34 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STCO_DATA   23

Definition at line 35 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSC_ATOM   17

Definition at line 29 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSC_CHUNK   18

Definition at line 30 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSC_DATA   19

Definition at line 31 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSD_ATOM   10

Definition at line 22 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSS_ATOM   13

Definition at line 25 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSS_DATA   14

Definition at line 26 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSZ_ATOM   20

Definition at line 32 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STSZ_DATA   21

Definition at line 33 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STTS_ATOM   11

Definition at line 23 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_STTS_DATA   12

Definition at line 24 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_TKHD_ATOM   1

Definition at line 13 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_TRAK_ATOM   0

Definition at line 12 of file ngx_http_mp4_module.c.

#define NGX_HTTP_MP4_VMHD_ATOM   6

Definition at line 18 of file ngx_http_mp4_module.c.

#define ngx_mp4_atom_data (   mp4)    mp4->buffer_pos

Definition at line 158 of file ngx_http_mp4_module.c.

#define ngx_mp4_atom_data_size (   t)    (uint64_t) (sizeof(t) - 8)

Definition at line 159 of file ngx_http_mp4_module.c.

#define ngx_mp4_atom_header (   mp4)    (mp4->buffer_pos - 8)

Definition at line 157 of file ngx_http_mp4_module.c.

#define ngx_mp4_atom_next (   mp4,
 
)    mp4->buffer_pos += n; mp4->offset += n

Definition at line 160 of file ngx_http_mp4_module.c.

#define ngx_mp4_get_32value (   p)
Value:
( ((uint32_t) ((u_char *) (p))[0] << 24) \
+ ( ((u_char *) (p))[1] << 16) \
+ ( ((u_char *) (p))[2] << 8) \
+ ( ((u_char *) (p))[3]) )

Definition at line 169 of file ngx_http_mp4_module.c.

#define ngx_mp4_get_64value (   p)
Value:
( ((uint64_t) ((u_char *) (p))[0] << 56) \
+ ((uint64_t) ((u_char *) (p))[1] << 48) \
+ ((uint64_t) ((u_char *) (p))[2] << 40) \
+ ((uint64_t) ((u_char *) (p))[3] << 32) \
+ ((uint64_t) ((u_char *) (p))[4] << 24) \
+ ( ((u_char *) (p))[5] << 16) \
+ ( ((u_char *) (p))[6] << 8) \
+ ( ((u_char *) (p))[7]) )

Definition at line 181 of file ngx_http_mp4_module.c.

#define ngx_mp4_last_trak (   mp4)    &((ngx_http_mp4_trak_t *) mp4->trak.elts)[mp4->trak.nelts - 1]

Definition at line 201 of file ngx_http_mp4_module.c.

#define ngx_mp4_set_32value (   p,
 
)
Value:
((u_char *) (p))[0] = (u_char) ((n) >> 24); \
((u_char *) (p))[1] = (u_char) ((n) >> 16); \
((u_char *) (p))[2] = (u_char) ((n) >> 8); \
((u_char *) (p))[3] = (u_char) (n)

Definition at line 175 of file ngx_http_mp4_module.c.

#define ngx_mp4_set_64value (   p,
 
)
Value:
((u_char *) (p))[0] = (u_char) ((uint64_t) (n) >> 56); \
((u_char *) (p))[1] = (u_char) ((uint64_t) (n) >> 48); \
((u_char *) (p))[2] = (u_char) ((uint64_t) (n) >> 40); \
((u_char *) (p))[3] = (u_char) ((uint64_t) (n) >> 32); \
((u_char *) (p))[4] = (u_char) ( (n) >> 24); \
((u_char *) (p))[5] = (u_char) ( (n) >> 16); \
((u_char *) (p))[6] = (u_char) ( (n) >> 8); \
((u_char *) (p))[7] = (u_char) (n)

Definition at line 191 of file ngx_http_mp4_module.c.

#define ngx_mp4_set_atom_name (   p,
  n1,
  n2,
  n3,
  n4 
)
Value:
((u_char *) (p))[4] = n1; \
((u_char *) (p))[5] = n2; \
((u_char *) (p))[6] = n3; \
((u_char *) (p))[7] = n4

Definition at line 163 of file ngx_http_mp4_module.c.

Variable Documentation

ngx_module_t ngx_http_mp4_module
Initial value:
{
&ngx_http_mp4_module_ctx,
ngx_http_mp4_commands,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}

Definition at line 329 of file ngx_http_mp4_module.c.