camera/vivid.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/utils/ipu3/ipu3-unpack.c
blob: 2dce10385adde97b925b0ccfc319ffce087aa1b4 (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * ipu3-unpack - Unpack IPU3 raw Bayer format to 16-bit Bayer
 *
 * Copyright 2018 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 */
#define _GNU_SOURCE

#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>

static void usage(const char *argv0)
{