From c77c26a31061b6e585056f32ec06c38dfe15bdd8 Mon Sep 17 00:00:00 2001 From: Hidenori Matsubayashi Date: Thu, 17 Aug 2023 03:39:09 +0000 Subject: [PATCH] camera: update README (#72) Signed-off-by: Hidenori Matsubayashi --- packages/camera/README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/camera/README.md b/packages/camera/README.md index 0cd9a5e..9bc2bfb 100644 --- a/packages/camera/README.md +++ b/packages/camera/README.md @@ -28,20 +28,29 @@ dependencies: ``` ### Source code + Import `camera` in your Dart code: ```dart import 'package:camera/camera.dart'; ``` -### Customize for your target devices -If you this plugin on your target devices, you will need to customize the pipeline in the source file.So, replace the `videoconvert` element with a H/W accelerated element of your target device to perform well. +### Customization for your target devices + +To improve the performance of this plugin, you will need to customize the pipeline in the source file. Please modify the source file and replace the `videoconvert` element with a H/W accelerated element of your target device to perform well. + +`bool GstCamera::CreatePipeline()` in packages/camera/elinux/gst_camera.cc #### default: + +``` camerabin viewfinder-sink="videoconvert ! video/x-raw,format=RGBA ! fakesink" +``` -#### e.g. customization for i.MX 8M platforms: +#### i.MX 8M platforms: + +``` camerabin viewfinder-sink="imxvideoconvert_g2d ! video/x-raw,format=RGBA ! fakesink" - +``` ## Troubleshooting