Article directory 1. Overall process 2. Internal seek process (take mp4 as an example) 3. Seek based on byte position 4. The flags of seek The seek mechanism takes ijkplayer(ffplay) as an example for research Based on ffmpeg 4.4.2 1. Overall process The whole process of the player detecting a seek request is as follows: […]
Tag: seek
2. Search and graph theory 6: Dijkstra template questions + algorithm template (Dijkstra seeks the shortest path I, Dijkstra seeks the shortest path II, 1003 Emergency)
Article directory Algorithm template Dijkstra topic code template naive dijkstra algorithm Heap-optimized version of dijkstra Tree and Graph Storage (1) Adjacency matrix: (2) Adjacency list: Understanding of e[],ne[],h[] About the principle and operation of the heap template question Dijkstra finds the shortest path I Link to original title topic train of thought answer Dijkstra Finding […]
04. LinuxC — system calls wirte, read, lseek functions
Wirte function prototype: ssize_t write (int fd, const void * buf, size_t count); Action: write( ) will write count bytes from the memory pointed to by the parameter buf to the file pointed to by the parameter fd. Of course, the file reading and writing position will also move accordingly. Return value: If successful, write( […]
Standard IO process thread functions: fopen, perror, fclose, fprintf, fscanf, fputc, fgetc, buffer, fputs, fgets, fwrite, fread, fseek, ftell,
Standard IO functions: 1. Stream pointer (FILE*): FILE* fp=fopen(“1.txt”,”r”): This fp is a stream pointer. When this file is opened in read-only mode, a buffer will be applied for at the same time. At this time, the stream pointer fp It will contain the information of the current reading position of the file, if it […]
Android progress bar: ProgressBar and Seekbar
1. Introduction to ProgressBar ProgressBar is a progress bar control in Android, which is used to display the progress of the ongoing task. It can display progress in a horizontal or circular form, and provides a variety of styles and properties to meet different needs. Related attributes: android:progress: Set the current progress value of the […]
Elegant implementation of vertical SeekBar: no inheritance of Seekbar, no custom View
Directory 0 Preface About Custom View 1 Realize vertical SeekBar 1.1 XML layout analysis 1.1.1 Set a layer of FrameLayout 1.1.2 SeekBar removes the left and right spacing 1.1.3 SeekBar height cannot be set 1.1.4 SeekBar background setting 1.1.5 The size of the bottom View and the distance from the bottom are not hard-coded 1.2 […]
tarjan algorithm (related concepts, Tarjan seeks the maximum strongly connected component, cut point, find bridge, shrink point)
What is a connected component A maximally connected subgraph of an undirected graph G is called a connected component of G. Note: The meaning of Maximum Connected Subgraph here is: this graph is a connected subgraph of G, after adding any point of G to the lid graph, this subgraph will be no longer connected. […]
[Android] Use TimePickerDialog and SeekBar to obtain the start time and duration selected by the user Use Canvas to draw graphics to represent the distribution of time periods
To realize the 24-hour effective time period distribution map on Android and be accurate to the second, you can use TimePickerDialog and SeekBar to obtain the start time and duration selected by the user. Then, use Canvas to draw graphs to represent the distribution of time periods. Here is sample code to achieve this: Add […]
Actual combat: Seek the pitfalls and solutions before and after the year, month, day and time
Write the directory title here foreword Correct example: Error instance: need Foreword This week, I received a time conversion task that needed to be processed. There was no problem at first, but after the completion, I found that the time was deviated, and I rewrote the code again. I feel that it is very necessary […]