summaryrefslogtreecommitdiff
path: root/include/linux/v4l2-common.h
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-08-26 20:25:31 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-08-30 18:08:02 +0300
commit86a47fdcd97350bd979a4d6b00124330a3b02441 (patch)
tree5019efc31e378911c92ffe2b052f3ab9b60faa63 /include/linux/v4l2-common.h
parenta000a1f6e3208515200aaae6ca8128471c6ed9f3 (diff)
libcamera: framebuffer: Add offset to FrameBuffer::Plane
This adds offset to FrameBuffer::Plane. It enables representing frame buffers that store planes in the same dmabuf at different offsets, as for instance required by the V4L2 NV12 pixel format. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include/linux/v4l2-common.h')
0 files changed, 0 insertions, 0 deletions
main(argv): # 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. * * {pipeline}_ipa_interface.cpp - 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))