-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathrawsource.h
More file actions
80 lines (63 loc) · 1.81 KB
/
Copy pathrawsource.h
File metadata and controls
80 lines (63 loc) · 1.81 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
rawsource.h
This file is a part of vsrawsource
Copyright (C) 2012 Oka Motofumi
Author: Oka Motofumi (chikuzen.mo at gmail dot com)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with Libav; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef VS_RAW_SOURCE_H
#define VS_RAW_SOURCE_H
#define VS_RAWS_VERSION "0.3.1"
#ifdef _WIN32
#ifdef __MINGW32__
#define rs_fseek fseeko64
#define rs_ftell ftello64
#else
#pragma warning(disable:4996)
#define rs_fseek _fseeki64
#define rs_ftell _ftelli64
#define snprintf _snprintf
#define strcasecmp stricmp
#endif
#include <windows.h>
#endif
#include <stdio.h>
#ifndef rs_fseek
#define _FILE_OFFSET_BITS 64
#define rs_fseek fseek
#define rs_ftell ftell
#endif
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <stdarg.h>
#ifdef __GNUC__
#include <inttypes.h>
#else
#include <stdint.h>
#define SCNi64 "lld"
#endif
typedef struct {
uint32_t header_size;
int32_t width;
int32_t height;
uint16_t num_planes;
uint16_t bits_per_pixel;
uint32_t fourcc;
uint32_t image_size;
int32_t pix_per_meter_h;
int32_t pix_per_meter_v;
uint32_t num_palette;
uint32_t indx_palette;
} bmp_info_header_t;
#endif /* VS_RAW_SOURCE_H */