본문 바로가기
+)기록/과제

정리사항 30 - 스레드, 핸들러 / 바이트배열 -> 비트맵 / NV21 회전

by AppJinny 2023. 3. 15.

*스레드

https://recipes4dev.tistory.com/143

 

안드로이드 스레드(Android Thread)

1. 스레드(Thread), 그리고 프로그램(Program)과 프로세스(Process). 스레드(Thread)를 설명하는 이 문장을 읽고 나서, 어떤 용어 또는 개념들이 머리 속에서 확장되나요? 스레드(Thread)라는 단어를 듣는 것

recipes4dev.tistory.com

 

*핸들러

https://altongmon.tistory.com/7

 

자바 에러 java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()

Thread를 사용하다 보면 아래와 같은 에러가 발생하는 경우가 있습니다.java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare() 원인은 Thread 안에 Thread를 사용하였기 때문인데

altongmon.tistory.com

 

*바이트배열 -> 비트맵

https://sdw8001.tistory.com/32

 

[Android] Bitmap, byte[] 간의 변환

이번에는 Bitmap 데이터 형을 byte Array로 변환하거나 혹은 그 역으로 변환하는 예제를 다루어 보도록 하겠습니다. 해결책ByteArrayOutputStream 인스턴스를 생성한 후, Bitmap의 compress 메서드를 통해 비트

sdw8001.tistory.com

 

*바이트배열 회전(NV21 회전)

https://stackoverflow.com/questions/44994510/how-to-convert-rotate-raw-nv21-array-image-android-media-image-from-front-ca

 

How to convert & rotate raw NV21 array image (android.media.Image) from front cam portrait mode in onImageAvailable (android Cam

Note: All info in my post only goes for Samsung Galaxy S7 device. I do not know how emulators and other devices behave. In onImageAvailable I convert continuously each image to a NV21 byte array and

stackoverflow.com

 

http://www.wordsaretoys.com/2013/10/25/roll-that-camera-zombie-rotation-and-coversion-from-yv12-to-yuv420planar/

 

roll that camera, zombie: rotation and conversion from YV12 to YUV 420 Planar – words are toys

In our last episode, I was converting the NV21 image format from my Android device’s camera into the more display-friendly RGB. However, now that I’m trying to push the images over a network, I’m having to run them through a video codec, and the list

www.wordsaretoys.com

 

https://stackoverflow.com/questions/23107057/rotate-yuv420-nv21-image-in-android

 

Rotate YUV420/NV21 Image in android

In PreviewCall back of surface we are getting YUV420SP format in camera Preview but due to wrong rotation of that image I want to perform correct rotation of YUV image as I need to send it through

stackoverflow.com