본문 바로가기
[ios] Memory Management Debugging. [ios] Memory Management Debugging. Enabling Guard Malloc -Guard Malloc 은 malloc library 의 스페셜 버전이다.Guard Malloc 을 enable 하면 debugging 도중에 표준 malloc library 를 Guard mallog library 로 변경한다. -Guard Malloc 은 여러 가지 기술을 이용해 메모리 에러가 발생하는 부분에서 crash 를 발생시킨다.여기서 여러 가지 기술이란 예를 들면 memoery allocation 을 Virtual memory page 에 기록하여 trace 하는 방식으로, 우연히 잘못된 메모리를 access 해도 작동하는 케이스를 방지해준다. -Guard Malloc 은 Simulator.. 2018. 2. 13.
[ios/reference] Animating Layer Content [ios/reference] Animating Layer Content https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/CoreAnimation_guide/CreatingBasicAnimations/CreatingBasicAnimations.html -Animation 은 보통 그 요청이 끝날 때까지 지속된다.명시적으로 animation 을 끝내기 위해서는... removeAnimationForKey: 또는 removeAllAnimations 함수를 호출하면 된다. -Animation 을 멈추면, 원래의 현재값으로 돌아간다.만약 Animation 을 멈춘 시점에 그 값을 유지하려면, presentation tree 를 이용해서.. 2017. 11. 22.
[android] face detect and cropper [android] face detect and cropper -https://github.com/lafosca/AndroidFaceCropper -아래와 같이 간단한 코드로 얼굴을 detect 해서 crop 한 결과를 전달해주는 open source.FaceCropper mFaceCropper = new FaceCropper();mFaceCropper.getCroppedImage(source); -얼굴 detect 를 어떻게 했을까?OpenCL 을 사용했을까 아니면 C 라이브러리를 사용했을까 궁금해하며 소스를 봤는데...안드로이드 자체에 FaceDetector 라는 녀석이 있었다. 오호? http://developer.android.com/reference/android/media/FaceDetector.. 2015. 12. 8.
반응형