RUVIDEO
Поделитесь видео 🙏

Android camera2 API - Part 7 Setting up camera2 ImageReader

Please note that I don't respond to questions on the youtube channel but for those that require help I provide paid consultancy services here https://www.codementor.io/mobapptuts

Part 7 of the camera2 API tutorial series concentrates on the image saving portion. And sets up the ImageReader for retrieving the image from the camera device and the ImageSaver for saving the image to a file.

Link to website post: https://www.nigeapptuts.com/?p=248

Github details:
You can get it from here https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-imagereader

or else run this command
git clone —branch camera2-imagereader https://github.com/mobapptuts/recyclerview_image_gallery.git

Previous episodes of the android camera2 api series:
Part 1 Look & Feel - https://youtu.be/dfeencf-TpM
Part 2 Surface preview sizes - https://youtu.be/D423T5JVF-s
Part 3 Surface preview session - https://youtu.be/sETiFfSPYdI
Part 4 Starting camera preview - https://youtu.be/xK9fvxGzM1Q
Part 5 Background Handler - https://youtu.be/iTDROlrgdEY
Part 6 Focus Lock - https://youtu.be/lP-6dZWEzp4

In this tutorial we will cover:
- Setting up an activity member for the image file
- Initialising the member file when the image capture button is pressed
- Implementing a Runnable for saving the image to a file
- Creating an ImageReader member
- Creating an on image available callback for the ImageReader
- Selecting the largest image size to be captured in the setup
- Creating an instance of the image reader
- Creating an onImageAvailableListener callback for the image reader

API's covered

- File
- ImageReader
- ImageReader.newInstance
- ImageReader.acquireNextImage
- ImageReader.OnImageAvailableListener
- ImageReader.setOnImageAvailableListener
- Handler.post
- ByteBuffer
- ByteBuffer.remaining
- ByteBuffer.get
- Image
- Image.close
- Image.getPlanes()[0].getBuffer()
- byte[]
- FileOutputStream
- FileOutputStream.write
- FileOutputStream.close
- Size
- Collections.max
- Arrays.asList
- map.getOutputSizes
- ImageFormat.JPEG
- Comparator compare

For much more information checkout
Website - https://www.nigeapptuts.com
Twitter - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/mobapptuts/

The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.

Android studio (1.3.2) is the editor of choice (IDE) for this tutorial series.

This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Android camera2 API - Part 7 Setting up camera2 ImageReader», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.