Compiling libjpeg turbo of Android environment using cmake

1. libjpeg-turbo    compiled 1.5.9 before [1] Versions libjpeg-turbo , now upgrade to 2.0.0 and compile based on CMake. Still, according to the official website, libjpeg turbo is 2-6 times faster than libjpeg, thanks to its highly optimized Huffman algorithm. In many cases, the performance of libjpeg turbo is comparable t ...

Posted by AffApprentice on Fri, 03 Jan 2020 15:57:59 +0100

The shortest path problem: Dijkstra algorithm

Definition The so-called shortest path problem refers to: if there may be more than one path from one vertex (source point) to another vertex (end point) in the graph, how to find a path to minimize the sum of weights (called path length) along each side of the path. Next, we introduce two commonly used shortest path algorithms: Dijkstra algori ...

Posted by horseatingweeds on Fri, 03 Jan 2020 15:32:21 +0100

Step by step learning Android TV / box development (3)

This paper mainly talks about the summary of the problems often encountered in the development of TV Focus loss issues Sometimes when using ListView, GridView and RecyclerView, you need to add android:descendantFocusability="afterDescendants" 1 2 There are three ways to do this beforeDescendants: viewgroup takes p ...

Posted by gite_ashish on Fri, 03 Jan 2020 12:03:30 +0100

Mobile location in Android Development (record)

This blog mainly records how to locate the mobile phone to a certain city. At present, the third-party map parsing API of Baidu map is used here. Baidu map open platform address: http://lbsyun.baidu.com/index.php?title=androidsdk/guide/key The steps are as follows: 1. Use the positioning function of Android to get the longit ...

Posted by argh2xxx on Thu, 02 Jan 2020 21:50:03 +0100

Android learning (28)AsyncTask? Asynchronous thread

Android learning (28)AsynTask? Asynchronous thread AsyncTask is a lightweight asynchronous class provided by android. It can directly inherit AsyncTask, implement asynchronous operations in the class, provide interface feedback on the current asynchronous execution level (the ui progress can be updated through the interface), a ...

Posted by DavidGS on Thu, 02 Jan 2020 20:56:56 +0100

Wake up delay of IDLE Alarm in Doze mode

1. Simulation enters into Doze mode Set no charge state adb shell dumpsys battery unplug Set forced entry depth module adb shell dumpsys deviceidle force-idle deep Set alarm log on adb shell dumpsys alarm log on Then we can connect USB and view the log behavior dynamically in logcat. 2. IDLE Alarm wake-up delay in ...

Posted by gilgimech on Thu, 02 Jan 2020 18:15:15 +0100

IJKPlayer playing video

Operation effect Supporting video: http://toutiao.com/item/6431719005085499906/ Using steps 1. Add the following code to build.gradle of the project (as shown below) allprojects { repositories { ... maven { url "https://jitpack.io" } } } 2. Add dependency in the Module' ...

Posted by mkosmosports on Thu, 02 Jan 2020 11:47:58 +0100

Android source code analysis (14) -- how to save data with SharedPreferences

1: How to use SharedPreference s This article only provides a way to save data. Please adjust the specific use scenarios according to the needs. EditText add save data click event to save data. diff --git a/res/layout/activity_voicemail_settings.xml b/res/layout/activity_voicemail_settings.xml index cd7af05..57526f2 10075 ...

Posted by amarafzal on Thu, 02 Jan 2020 11:34:43 +0100

Android verification code -- dry goods

I. directory 1, effect 2, source code 3, use 4. Please give me a good comment I. Effect Note: the number of digits of the verification code can be modified (shown here as four digits), the number of digits and letters can be mixed, the size of the font can be modified, and the number of confusion lines can be ...

Posted by vyb3 on Thu, 02 Jan 2020 07:28:24 +0100

How to use Web Worker to optimize the application of web bar code recognition

Now the mainstream browsers all support WebRTC, through getUserMedia, you can easily open the camera in the browser. Web developers can use JavaScript to develop barcode scanning applications for web pages. Through the tests of chrome and safari, it is found that when JS code takes a lot of time, the video in Chrome is still smooth, while Safar ...

Posted by gdogfunk on Thu, 02 Jan 2020 05:31:04 +0100