summaryrefslogtreecommitdiff
path: root/include/android/system/core
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-12-06 14:49:17 +0900
committerJacopo Mondi <jacopo@jmondi.org>2021-12-06 17:41:46 +0100
commite1b70e764fdeaaf423ec22776100be40e59bb0c3 (patch)
tree36d0d48bba2076b65efb27d7965373fe3958b2b0 /include/android/system/core
parent5148c0aa7e5957628c4fe6b8b9bca9e923e608ce (diff)
libcamera: camera_sensor: Enable to set a test pattern mode
This adds a function to set a camera sensor driver a test pattern mode. CameraSensor initializes the test pattern mode by Off. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include/android/system/core')
0 files changed, 0 insertions, 0 deletions
="hl slc"># Parse command line arguments parser = argparse.ArgumentParser() parser.add_argument('-o', dest='output', metavar='file', type=argparse.FileType('w', encoding='utf-8'), default=sys.stdout, help='Output file name (default: standard output)') parser.add_argument('input', type=str, help='Input file name.') args = parser.parse_args(argv[1:]) lines = open(args.input, 'r').readlines() pipeline = args.input.split('/')[-1].replace('.mojom', '') if not regex_spdx.match(lines[0]): raise Exception(f'Missing SPDX license header in {args.input}') data = lines[0] data += f'''\ /* * Copyright (C) 2021, Google Inc. * * Docs file for generated {pipeline}.mojom * * This file is auto-generated. Do not edit. */ namespace libcamera {{ ''' in_block = False comment = '' for lineno, line in enumerate(lines, start=1): if regex_block_start.match(line): if in_block: raise SyntaxError('Expected end of comment', (args.input, lineno, 1, line)) in_block = True comment = line continue if regex_block_end.match(line): if in_block: comment += line data += comment + '\n' in_block = False continue if in_block: comment += line data += '} /* namespace libcamera */\n' args.output.write(data) return 0 if __name__ == '__main__': sys.exit(main(sys.argv))