This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void BMPtoNV12(byte[] yuv420sp, byte[] argb, int width, int height) | |
| { | |
| int frameSize = width * height; | |
| int yIndex = 0; | |
| int uvIndex = frameSize; | |
| uint a; | |
| int R, G, B, Y, U, V; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| jQuery to select all the values of the last column of 17 rows of an html table, where there are 8 columns. The values are actually anchor tags, which contain img tags. Extract the src attribute from those tags. | |
| In the resulting JavaScript, also import jQuery via dynamically adding it to the page within the javascript, not via a script tag | |
| */ | |
| // Dynamically add jQuery to the page | |
| let script = document.createElement('script'); | |
| script.type = 'text/javascript'; | |
| script.src = 'https://code.jquery.com/jquery-3.6.0.min.js'; | |
| document.head.appendChild(script); |
OlderNewer