-
Notifications
You must be signed in to change notification settings - Fork 0
/
mlv2badpixels_fix_mlvdump.patch
38 lines (38 loc) · 1.45 KB
/
mlv2badpixels_fix_mlvdump.patch
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
3c3,10
< # mlv2badpixels.sh
---
>
> # This is a very lightly modified version of the
> # original mlv2badpixels.sh script,
> # adding the ability to specify the mlv_dump
> # path using -m. No other change was made.
> # - Sofus Rose <contact@sofusrose.com>
>
> # mod_mlv2badpixels.sh
59a67
> -m Specify mlv_dump path.
81a90
> MLV_DUMP_PATH=
86c95
< while getopts “hmo:v” OPTION; do
---
> while getopts “hm:o:v” OPTION; do
92a102,103
> m)MLV_DUMP_PATH="$OPTARG"
> ;;
118c129
< camera_model=`mlv_dump -m -v "$MLV" | grep Camera"[[:space:]]"Model | head -1 | sed -e 's/^[ Camera \s Model: \s 0x]*//'`
---
> camera_model=`$MLV_DUMP_PATH -m -v "$MLV" | grep Camera"[[:space:]]"Model | head -1 | sed -e 's/^[ Camera \s Model: \s 0x]*//'`
120,121c131,132
< resolution=`mlv_dump -m -v "$MLV" | grep Res | head -1 | sed -e 's/^[ Res:]*//'`
< pan=`mlv_dump -m -v "$MLV" | grep Pan | head -1 | sed -e 's/^[ Pan:]*//'`
---
> resolution=`$MLV_DUMP_PATH -m -v "$MLV" | grep Res | head -1 | sed -e 's/^[ Res:]*//'`
> pan=`$MLV_DUMP_PATH -m -v "$MLV" | grep Pan | head -1 | sed -e 's/^[ Pan:]*//'`
133,134c144,145
< raw_width=`mlv_dump -m -v "$MLV" | grep width | head -1 | sed -e 's/^[ width]*//'`
< raw_height=`mlv_dump -m -v "$MLV" | grep height | head -1 | sed -e 's/^[ height]*//'`
---
> raw_width=`$MLV_DUMP_PATH -m -v "$MLV" | grep width | head -1 | sed -e 's/^[ width]*//'`
> raw_height=`$MLV_DUMP_PATH -m -v "$MLV" | grep height | head -1 | sed -e 's/^[ height]*//'`