summaryrefslogtreecommitdiff
path: root/src/cam
AgeCommit message (Expand)Author
2020-08-03libcamera: stream_option: use format name to set cam/qcam formatKaaira Gupta
2020-07-27cam: Add optional argument to --capture to specify how many frames to captureNiklas Söderlund
2020-07-27cam: capture: Cache the EventLoop handlerNiklas Söderlund
2020-07-27cam: Add option to disallow adjusting of requested formatsNiklas Söderlund
2020-05-18(q)cam: Fix header guardsLaurent Pinchart
2020-05-13licenses: License all meson files under CC0-1.0Laurent Pinchart
2020-05-01cam: Make use of StreamKeyValueParserNiklas Söderlund
2020-05-01cam: Add helper class to parse stream configurationNiklas Söderlund
2020-05-01cam: options: Add public method to invalidate optionsNiklas Söderlund
2020-05-01cam: options: Make KeyValueParser::parse() virtualNiklas Söderlund
2020-04-26cam: Add an option to list camera controlsLaurent Pinchart
2020-04-26cam: Rename OptProps to OptListPropertiesLaurent Pinchart
2020-03-27cam: Add option to capture StillCaptureRaw streamNiklas Söderlund
2020-03-24cam: main: Cache lookup of role propertyLaurent Pinchart
2020-03-20cam: Print one property per lineJacopo Mondi
2020-03-18libcamera: framebuffer_allocator: Lift camera restrictions on allocatorLaurent Pinchart
2020-03-18libcamera: PixelFormat: Turn into a classNiklas Söderlund
2020-03-18libcamera: Use PixelFormat instead of unsigned int where appropriateNiklas Söderlund
2020-03-18cam: Create stream names after configuring the cameraNiklas Söderlund
2020-03-08cam: Link against libatomic if neededLaurent Pinchart
2020-03-06cam: Add option to list camera propertiesJacopo Mondi
2020-01-12libcamera: camera: Remove the prepared stateNiklas Söderlund
2020-01-12cam: Cache buffer memory mappingNiklas Söderlund
2020-01-12libcamera: Switch to FrameBuffer interfaceNiklas Söderlund
2020-01-12libcamera: buffer: Move captured metadata to FrameMetadataNiklas Söderlund
2020-01-12libcamera: request: In addBuffer() do not fetch stream from BufferNiklas Söderlund
2020-01-12libcamera: buffer: Switch from Plane to FrameBuffer::PlaneNiklas Söderlund
2019-12-16libcamera: Remove buffer index from loggingNiklas Söderlund
2019-11-26cam: options: Fix unitialized variable warningLaurent Pinchart
2019-11-20cam: Store camera as shared pointer everywhereNiklas Söderlund
2019-11-20cam: BufferWriter: Use the libcamera namespaceNiklas Söderlund
2019-11-19libcamera: camera: Remove explicit stream to buffer map in requestCompleted s...Niklas Söderlund
2019-11-08libcamera: Remove unneeded semicolonsLaurent Pinchart
2019-10-26cam: capture: remove unused local variablePaul Elder
2019-10-23libcamera: Standardise on C compatibility headersLaurent Pinchart
2019-09-14libcamera: Switch to the std::chrono APILaurent Pinchart
2019-08-19libcamera: camera_manager: Construct CameraManager instances manuallyLaurent Pinchart
2019-07-14libcamera: buffer: Add an accessor to the BufferMemoryLaurent Pinchart
2019-07-14libcamera: stream: Shorten access to the bufferPoolJacopo Mondi
2019-07-14libcamera: Stop using Stream::bufferPool to get the number of buffersLaurent Pinchart
2019-07-14libcamera: buffer: Split memory information to BufferMemoryLaurent Pinchart
2019-06-25cam: capture: Stop stream when queueRequest() failsHelen Koike
2019-06-19cam: Support base 16 and base 8 when parsing integer optionsLaurent Pinchart
2019-06-19cam: Add --info option to print information about stream(s)Niklas Söderlund
2019-06-19cam: Validate camera configurationNiklas Söderlund
2019-06-19cam: Move camera configuration preparation to CamAppNiklas Söderlund
2019-06-18cam: Allow selecting cameras by indexLaurent Pinchart
2019-06-10cam: Fix cam --help crashNiklas Söderlund
2019-05-25cam: Add CamApp classNiklas Söderlund
2019-05-25cam: capture: Break out capture to a new classNiklas Söderlund
class="hl opt">, 'rb').read() template = template.decode('utf-8') template = string.Template(template) return template.substitute(data) def main(argv): # Parse command line arguments parser = argparse.ArgumentParser() parser.add_argument('-o', dest='output', metavar='file', type=str, help='Output file name. Defaults to standard output if not specified.') parser.add_argument('input', type=str, help='Input file name.') parser.add_argument('template', type=str, help='Template file name.') args = parser.parse_args(argv[1:]) data = open(args.input, 'rb').read() controls = yaml.safe_load(data)['controls'] if args.template.endswith('.cpp.in'): data = generate_cpp(controls) elif args.template.endswith('.h.in'): data = generate_h(controls) else: raise RuntimeError('Unknown template type') data = fill_template(args.template, data) if args.output: output = open(args.output, 'wb') output.write(data.encode('utf-8')) output.close() else: sys.stdout.write(data) return 0 if __name__ == '__main__': sys.exit(main(sys.argv))