index
:
libcamera/jmondi/libcamera.git
imx8mp/extensible-format
imx8mp/extensible-format-v8
imx8mp/extensible-format-v9
isi/raw_sensor
isi/raw_sensor_v2
jmondi/android/ndk/pinephonepro
jmondi/android/pinephonepro
jmondi/android/vndk
jmondi/c-abi
jmondi/device-match-generalize
jmondi/imx8mp/debix-a
jmondi/lc-compliance-cros
jmondi/pinephone
jmondi/pinephonepro
jmondi/pinephonepro-af
jmondi/rk3399/google-dru-scarlet
jmondi/rockpi/af/imx519
jmondi/rpi5-on-mainline
multicontext/rpi/v3
pfc/rkisp1-free-run
pfc/rkisp1-free-run-upstreaming
pfc/rkisp1-free-run-v2
rcar-gen4
yaml-emitter
Jacopo Mondi's clone of libcamera
git repository hosting on libcamera.org
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
test
/
bayer-format.cpp
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Naushir Patuck <naush@raspberrypi.com>
2021-11-01 09:15:02 +0000
committer
Kieran Bingham <kieran.bingham@ideasonboard.com>
2021-11-02 12:08:44 +0000
commit
9e3470ad3e4f03364c8160917117d62fde5a7d88
(
patch
)
tree
a8635fa7d4708cb9b0bc4fa44f0ae565d9a67ee4
/
test/bayer-format.cpp
parent
264a673d287c3dafac590ac8f5ac9472d51fa04b
(
opt">=
'missing'
elif
os
.
path
.
islink
(
path_entry
):
desc
=
'link ->
%s
'
%
os
.
path
.
realpath
(
path_entry
)
elif
os
.
path
.
isfile
(
path_entry
):
desc
=
'file'
elif
os
.
path
.
isdir
(
path_entry
):
desc
=
'dir'
print
(
' sys.path[
%d
]:
%s
(
%s
)'
% (
path_index
,
path_entry
,
desc
))
real_path_entry
=
os
.
path
.
realpath
(
path_entry
)
if
(
path_entry
.
endswith
(
os
.
path
.
join
(
'lib'
,
'python2.7'
))
and
os
.
path
.
isdir
(
real_path_entry
)):
encodings_dir
=
os
.
path
.
realpath
(
os
.
path
.
join
(
real_path_entry
,
'encodings'
))
if
os
.
path
.
exists
(
encodings_dir
):
if
os
.
path
.
isdir
(
encodings_dir
):
print
(
'
%s
contents:
%s
'
% (
encodings_dir
,
str
(
os
.
listdir
(
encodings_dir
))))
else
:
print
(
'
%s
exists but is not a directory'
%
encodings_dir
)
else
:
print
(
'
%s
missing'
%
encodings_dir
)
raise