Chapter 46 Mobile Broadcast

After discussing with Director Song about the amount of superconducting materials needed to build the new model of the EAST device, Wang Yinan found that their device was indeed large enough, and he estimated that he would have to get at least a molecular braiding machine for them.

Of course, it is impossible to give away so many superconducting materials in vain, or even if Wang Yinan agrees, others are estimated to go crazy.

Then again, Director Song is not a poor person, and East is also one of the key projects invested by Huaguo, so in the atmosphere of friendly negotiation between the two sides, 100 million soft girl coins flew into the account of Ronghe Company with wings.

Qian Zhonghua's eyes were straight on the side, he had seen a businessman, but he had never seen a business like this, "I never thought it would be so easy to make money, and it was obvious that you hacked others, and others turned back and thanked you a thousand times", and when Director Song left satisfied, Qian Zhonghua couldn't help but start to sigh,

"If you have a unique product of All Blue Star, it's not how much you want to sell for as much as you want", Wang Yinan replied to him lightly.

"That's right", Qian Zhonghua figured it out, and once again praised himself, to be precise, for his old man's vision.

For Wang Yinan, this briefing was just a small episode, and the parties did not realize that the far-reaching impact of this "small episode" on China's high-tech field was not slowly reflected until the following five to ten years later.

Later, when people reviewed the meeting, they made this assessment: "The briefing has raised the high-tech level of the whole of China for at least five years."

Of course, Wang Yinan himself was completely unaware of the historical status of this meeting, he continued to start his semi-retreat life after the briefing and threw the pot to the Science and Technology Commission by the way, but this time he was not in retreat alone, Zhou Hui was also ruthless enough, knowing that he had natural disadvantages in some aspects, if the relationship with Wang Yinan caused some twists and turns, he would really cry.

In the words of her little agent, "Even if you win an Oscar, what can you do, such a golden beetle son-in-law who may go down in history, the whole blue star may be like this."

Zhou Hui still can handle this severity, and there is no good announcement at the end of the year, she simply moved to Ronghe Company, took care of Wang Yinan's daily life, and cooked for him.

The weather in the imperial capital is as cold as a day, at dusk, Wang Yinan and Zhou Hui came out for a walk after eating, on the boulevard by the river, the scattered yellow leaves paved the entire path, a little cool, the late autumn evening breeze blows, the fallen leaves float up, naughty spinning in the air, flying.

"It's another year", Wang Yinan couldn't help but sigh, too many things had happened this year, and remembering the situation of walking here with Li Wenjing a year ago, it seemed like a lifetime away.

"What are you thinking", Zhou Hui asked on the side,

"Ah, it's nothing, seeing this scenery is so beautiful, I can't help but sigh with emotion", Wang Yinan hurriedly said, secretly complaining in his heart, "It is said that a woman's nose is a dog, it is really not false at all, I just touched the scene, I think of something, I can smell it, and I am also drunk."

"Seeing that you are in a good mood today, and after eating, you actually took the initiative to come out and take a turn, has you made great progress in your work?" , Zhou Hui shook her long hair and asked lightly,

Wang Yinan gave her a thumbs up, "It's a pity that you don't study psychology",

"However, it may also be that my behavior pattern is too simple and too elusive", you say, Wang Yinan's mouth, if you don't add the latter sentence, you will die, do you praise girls like this.

Zhou Hui has become accustomed to Wang Yinan's bad habits, "Is there really progress?" She asked, completely ignorant,

"Of course, today I finally got all the hierarchical compilation types and chunk merge logic in place," Wang Yinan said.

"Speak human words!" , Zhou Hui was angry, I guess she was angry for the reader, "Don't use these lofty terms all day long to despise our intelligence, just tell me what you can do with the whole thing."

Wang Yinan was very wronged, "I don't know why I know why I want to do it, I still hope that after you read me, everyone will become a qualified civil science."

Seeing that Zhou Hui's hand had been raised, Wang Yinan immediately coaxed, "To put it simply, it is already possible to compile the IR of the llvm",

"Slap", this time Wang Yinan didn't dodge, and the slap fell on his face, of course, it was very light, and it was love to scold him.

"Simpler!" , Zhou Hui said,

"As long as you go through the last step, you can run on your computer or mobile phone," Wang Yinan said.

"Then what are you waiting for", Zhou Hui said,

"Didn't I come out to catch my breath," Wang Yinan said.

"Hurry up, hurry up and get to work", for the sake of the rapid advancement of the plot (many readers already dislike our pace is too slow), Zhou Hui immediately turned into Zhou Papi, anyway, their Zhou family is good at this job.

Wang Yinan had no choice but to run back to work, but fortunately, there are ready-made tools available for LLVM code generation from IR to x86 or ARM, and it didn't take long for Wang Yinan to compile the executable program on X86.

In order to simplify the problem, Wang Yinan did not directly process the data of the camera in real time, but compressed the image sequence on the hard disk, and directly output it to the image sequence when decompressed, which can reduce a lot of development workload.

The results of the program execution on the PC are satisfactory, and the 1080p image sequence, that is, the image with a resolution of 1920 x 1080, can be compressed and decompressed in real time, even if the reading time from the hard disk is increased.

Wang Yinan took a 60-second clip from the fifteen-minute video for testing, first using ffmpeg's command-line tool to output a sequence of bmp images, and then compressing it with a compiled neural network.

After 20 seconds, the compression result is out, of course, it is not as powerful as the Gödel system, 20 seconds can compress the entire fifteen-minute video, but it is very, very good to be able to achieve this performance on an ordinary PC.

The result of decompression is not surprising, 60 seconds of fragment, it only took about 5 seconds to decompress the completion, after all, decompression requires much less computation than compression.

However, the test results of the mobile phone program are not so optimistic, Wang Yinan's mobile phone uses the latest ARM chip, which is the strongest performance, but on Wang Yinan's mobile phone, real-time video compression is still not possible.

The 60-second video image sequence took more than 200 seconds to compress, and the result was a bit unsatisfactory, of course, real-time decompression is no problem at all, and it was completed in 40 seconds.

Looking at the test data, Wang Yinan fell into deep thought, it should be said that for such a result, Wang Yinan has long been mentally prepared, originally his minimum expectation was that real-time video compression and decompression can be achieved on the PC, and he did not have much expectation for the ARM chip on the mobile phone, because after all, the performance gap between ARM and X86 is still obvious.

Now the real-time video decompression can be realized on the mobile phone, which has exceeded Wang Yinan's expectations, which means that although it is temporarily impossible to use a mobile phone for high-definition live broadcast, it is a matter of minutes to use a mobile phone to watch a high-definition live broadcast.

"That's not right", Wang Yinan shook his head, although this data is expected, but there is still some distance from Wang Yinan's expectations, and he always feels that there is something wrong in it.

"What's wrong?" , Zhou Hui walked over, she was still holding her mobile phone in her hand and watching a short video, and she was having fun while watching.

Wang Yinan glanced at Zhou Hui's mobile phone, and saw a crazy woman saying hysterically on the screen, "Is it swollen for women to spend some money, is it swollen", although the content is very lo, but the picture quality is still very good.

These live broadcast software should be usedH264Video format,For this format,Ordinary mobile phones have two modes of hardware codec and software codec,Wang Yinan immediately understood where his mistake was,Modern mobile phones should all have GPU chips,That is, graphics processing chips,For compression/decompression, this highly concurrent operation,Graphics processing chips have a huge advantage over CPUs。

The so-called hardware encoding and decoding is to use the highly parallel vector processing instructions of the GPU chip to realize the video encoding and decoding of H264 format, which is much better than the software encoding and decoding using the CPU.

In other words, the target code output of Wang Yinan's LLVM IR instruction should not only be the ARM instruction set, but should be the ARM plus GPU instruction set, according to the performance gap between H264 hardware coding and software coding, it should be able to improve the performance by five times.

"Hey, there's really no shortcut", Wang Yinan sighed and said to Zhou Hui,

"Looks like we're going to be here for a while."

"Well, it's okay, I don't have anything to do anyway", Zhou Hui said,

Of course, Wang Yinan is in semi-retreat rather than full retreat after all, he still has to go to school twice a week, and the second beta version of David's team is still waiting for his weekly routine of chicken soup.

Under the leadership of Chen Zihao, David's team used the improved rust language as the development language of the backend server, indeed, although this language puts forward very high requirements for developers, let's just say that without more than two years of development experience, you can't understand what the transfer of ownership is all about.

However, the probability of errors is really much lower, and basically all memory bugs are found and eliminated by the compiler at compile time.

After Chen Zihao used the Gödel system to add a compiler pre-processing link to the rust code, the rust language they used was also improved a lot, and the program ape did not have to worry about complex ownership management and life cycle problems, and the Gödel system could automatically judge all the difficult situations and make correct annotations for the compiler.

This also greatly improved the efficiency of development, reduced the difficulty of development, and soon, the second prototype of the IM system was also developed, in the words of Chen Zihao, "the basic functions have reached the level of prestige three years ago!" ”。

Don't look down on this thing, in Wang Yinan's opinion, this is already a very proud achievement.

Time flies, a week before the arrival of the New Year, on Christmas Eve, Wang Yinan finally completed his second phase of goal, generating a super video codec version that uses the processing power of the mobile phone's graphics card.

By the way, he also integrated the code that compresses the continuous image sequence directly from the camera input, and the code that outputs the continuous image to the screen.

Well, this is too awkward, in fact, he can use the program to directly compress the output of the camera, "I just don't know if I can achieve the effect of real-time", Wang Yinan was a little apprehensive.

He opened the program and pointed the camera at Zhou Hui,

"Come on girl, give my brother a smile"