android studio configuration ffmpeg

1) copy the compiled so library to the libs folder, and the header file in include to the libs folder. 2) add the following code to build.gradle defaultConfig { applicationId "com.houde.ffmpeg.test" minSdkVersion 21 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrument ...

Posted by gozbay.com on Wed, 13 Nov 2019 12:25:44 -0800

Ten classic sorting algorithms -- selective sorting

1. Algorithm steps First, the smallest (large) element is found in the unsorted sequence and stored at the beginning of the sorted sequence. Then continue to find the smallest (largest) element from the remaining unsorted elements, and put it at the end of the sorted sequence. Repeat the second step until all elements are so ...

Posted by irishred8575 on Wed, 13 Nov 2019 08:24:50 -0800

Memory layout of ucore

Starting from lab2, ucore has opened the conversion mechanism based on segment and page memory address, which makes ucore's memory layout different from lab1. For this part, I intend to discuss it in two articles, corresponding to lab1 and lab2 respectively. Memory layout of ucore during lab1 How ucore is loaded into the kernel After system ini ...

Posted by kevinfwb on Tue, 05 Nov 2019 18:18:50 -0800

The second issue of [Leetcode algorithm weekly]

First appeared in the WeChat public's front-end growth notes, written in 2019.11.05 background This paper records the whole thinking process in the process of writing questions for reference. The main contents include: Assumption of topic analysis Write code validation Consult others' solution Thinking and summing up Catalog 20. Valid bracke ...

Posted by 11Tami on Tue, 05 Nov 2019 08:04:59 -0800

Java ArrayList underlying implementation principle source code detailed analysis of Jdk8

brief introduction ArrayList is a dynamic array based on array. Its capacity can grow automatically. It is similar to the dynamic application memory and dynamic growth memory in C language. ArrayList is not thread safe and can only be used in a single thread environment. In a multi-threaded environment, you can consider using the collections. ...

Posted by Zjoske on Sun, 03 Nov 2019 01:02:52 -0700

Dex file resolution

Dex file structure File header typedef struct { u1 magic[MAGIC_LENGTH]; /* includes version number */ u4 checksum; /* adler32 Verify remaining length files */ u1 signature[kSHA1DigestLen]; /* SHA-1 Document signature */ u4 fileSize; /* length of entire file */ u4 headerSize; /* offs ...

Posted by russellbcv on Sat, 02 Nov 2019 11:37:07 -0700

Getting started with C - global variables

I. global variables Variables defined outside functions are global variables Global variables have global lifetime and scope They are independent of any function and can be used inside any function #include <stdio.h> int f(void); // global variable int gALL = 12; int main(int argc, char const *argv[]) { printf("in %s gALL=%d\n" ...

Posted by CodeWriter on Tue, 29 Oct 2019 13:53:48 -0700

Binder driven memory management

Memory mapping Before using Binder for IPC, user space needs to initialize Binder driver. This process mainly implements the open and mmap operations of Binder driver. mmap map the memory space used by Binder transmission, the size is (1M - 8K), but only for virtual address space mapping, the actual physical memory allocation will be done durin ...

Posted by salomo on Tue, 29 Oct 2019 00:12:22 -0700

C language learning course, writing mine sweeping game in C language

The example of this paper shares the specific code of mine clearing game and its optimization in C language for your reference. The specific content is as follows About mine clearance optimization 1. Core idea: two two-dimensional arrays are used for design, one for display and one for layout of ba ...

Posted by DarrenL on Sat, 26 Oct 2019 08:34:26 -0700

Notes in C language: high precision computing

Article directory A brief introduction of big data types in C language High precision addition High precision multiplication A brief introduction of big data types in C language As we know, there is a limit in the scope of using data types such as int or double to store data directly inside the ...

Posted by psunshine on Thu, 24 Oct 2019 01:57:08 -0700