5MP Motion Camera JPEG Image and Movie Catcher  1.1.1.1
A CGI interface to capture and display pictures and movies using OpenCV.
magic_mime Class Reference

#include <magic_mime.hpp>

Static Public Member Functions

static string get_mime_type (const string *input)
 
static string get_mime_type (const uint8_t *input, uint32_t input_size)
 
static string get_mime_type (const char *filename)
 

Member Function Documentation

◆ get_mime_type() [1/3]

string magic_mime::get_mime_type ( const string *  input)
static

Detect the magic number in a string and return the MIME type.

Parameters
inputThe content of a file.
Returns
The MIME type correspond to the magic number found.
See also
https://en.wikipedia.org/wiki/Magic_number_(programming)

◆ get_mime_type() [2/3]

string magic_mime::get_mime_type ( const uint8_t *  input,
uint32_t  input_size 
)
static

Detect the magic number in a string and return the MIME type.

Parameters
inputThe content of a file.
Returns
The MIME type correspond to the magic number found.
See also
https://en.wikipedia.org/wiki/Magic_number_(programming)

◆ get_mime_type() [3/3]

string magic_mime::get_mime_type ( const char *  filename)
static

Detect the magic number in a file and return the MIME type.

Parameters
inputThe path and name of a file.
Returns
The MIME type correspond to the magic number found.
See also
https://en.wikipedia.org/wiki/Magic_number_(programming)

The documentation for this class was generated from the following files: