In cerl2 Series 5: SDL and my thoughts on network protocols, although I have introduced the ins and outs of SDL, I found that very important content is missing. My friends may ask, isn't SDL a common IDL (Interface Description Language)? Why not simply stick to a ready-made standard?
Many times, similar things seem like God or not. It is because I think IDL does
This question has been asked by many netizens on the internet, who have given various answers. Here, I also encountered this problem in the SDL multi-media library. After a while of exploration, I finally found the answer.
Under normal circumstances, after compiling the SDL header file and library, you only need to direct the header file and library file path to the correct location. Then, you can directly
SDL and video
To show on the screen, we'll use SDL.SDL to be the abbreviation for simple Direct layer. It is an excellent multimedia library that is suitable for multiple platforms and is used in many projects. You can get the source code for the library from its official website http://www.libsdl.org/or, if possible, download the development package directly to your operating system. Following this instruction, you will need to compile this library.
Today in the project to use the SDL2.0 library for video display, in which there are many problems, here are recorded, and as a reference later.The same window handle after using Sdl_createwindowfrom and Sdl_destroywindow multiple times, found that the program is running normally, but the video does not show the problem.The first time you pass the HWND to Sdl_createwindowfrom, create a display window to SDL, and then, when not in use, call Sdl_destroy
We want to develop our own media player on Android. The first thing we want to think of is to use FFMPEG for implementation. FFmpeg is a cross-platform failover function. We can call the APIS provided by FFMPEG to complete the process. In addition, FFMPEG provides a small program ffplay, which itself is a media player, so we plan to use ffplay as the program's basis.
Below is the development environment I used this time:
-Cygwin-Android ndk: android-ndk-r4b-windows-FFMPEG: 0.6.1-
[Original] 0 Basic learning SDL Development porting SDL2.0 to Android[Original] 0 Basic learning SDL developed on Android using SDL2.0 display BMP diagram[Original] 0 Basic learning SDL developed on Android using SDL2.0 display BMP overlay[formerly] 0 Basic Learning SDL developed on Android using SDL2.0 to render PNG i
to the previous configuration and go to the C:/mingwstudio/mingw directory.CMDStart the DOS shell of MS in XPCommandStart ms dos shell in 9x
Library Compilation:
SDL:Download sdl-devel-1.2.7-mingw32.tar.gz from the SDL main site http://www.libsdl.org/index.phpDecompress the package and create a local directory in the mingwstudio/mingw/sys directory.Start msys and run make mingw In the
Translation statement:
This series of tutorials comes from Dev hub and all the right to interpretation belongs to the original author. I translated this series of tutorials only from my hobbies. Because I am also a beginner and have a limited level of English, it is inevitable to make mistakes.
Address: http://www.sdltutorials.com/sdl-animation/
In the last lesson, we tried to complete a word game. I hope you can all run successfully. Otherwise, you
In fact, it was very easy for SDL to display Chinese characters. I didn't know it at the beginning, and I had been worried for a long time, but I found it too simple.To display Chinese is a function. Use ttf_renderutf8_solid (font, "Hello !! ", Textcolor.You can try
Below is a test code I wrote:
# Include # Include # Include # Include "SDL/SDL. H"# Include "
Compile the SDL program using g ++ in linux-general Linux technology-Linux programming and kernel information. For more information, see the following. Li is absent for several days. Today, I have compiled several of my SDL programs under Fedora Core 3 (x86_64.
Format: g ++-o temp. cpp 'sdl-config -- cflags -- libs'
Note: The Case sensitivity of the header
Using the QT development program, refer to MFC's program in CoInitialize. As a result, the QT program cannot be called, resulting in SDL not synchronizing audio and video. At this point, the initialization of SDL is placed in the main program.The initialization of SDL is placed in the auxiliary thread, which is normal and does not require coinitialize.With
SDL automatically creates a drawing window by default, allowing it to draw in the specified window by setting environment variables. The code is as follows:Char sdl_var[64]; sprintf (Sdl_var, "sdl_windowid=%d", M_screen. GetSafeHwnd ()); //main window handle sdl_putenv (Sdl_var);Note: Environment settings must be in Sdl_init (...) Done before, otherwise it doesn't workOf course, it is also possible to write:CString FFP;Ffp. Format ("%d", hWnd);Setenv
Sdl1.2.13 cross-Compilation of agar1.3.3 GUI.Step 1:./Configure -- prefix =/opt/sdl_agar -- without-gl -- With-docsStep 2:Modify makefile. include header files in the config file (mainly standard header files, SDL header files, JPEG header files) and Lib (mainly Standard C libraries, SDL and JPEG libraries) PATH is the path of your cross compiler.Note: I have compiled S
UML is very powerful and is often used to express and record software designs. However, there may be no other descriptive tools for convenience in some aspects.
For example, when designing a state machine, I sometimes Use SDL (specification and Description Language.
The state machine diagram made by UML makes it easy for you to see which states are involved and which States are converted. But in fact, for state machines, there may be many things
The configuration environment is as follows:pc:windows XP SP3Ide:visual Studio 2005ffmpeg:git-c0f67e1 (2015-12-21)sdl:sdl2-2.0.31. Download ffmpeg (Shared Dev): http://ffmpeg.zeranoe.com/builds/2. Download sdl (Dev lib): http://www.libsdl.org/download-2.0.php3. New Win32 Console Application-"Empty Project"4. Source file-"Add Main.cpp5. Copy the Include and Lib folders under Dev FFmpeg to the Main.cpp sibling directory6. Copy the. dll file in the Bin
using the QT development program, refer to MFC's program in CoInitialize. As a result, the QT program cannot be called, resulting in SDL not synchronizing audio and video. At this point, the initialization of SDL is placed in the main program. the initialization of SDL is placed in the auxiliary thread, which is normal and does not require coinitialize. with
17th Chapter Security Development Process (SDL) 17.1 SDLIntroductionSecurity development is an effective way to address security vulnerabilities from the root cause, and in the software lifecycle, this development model costs less.SDL Process:q TrainingAll developers must receive appropriate security training to understand the relevant safety knowledge.q Safety RequirementsDefine the safety requirements of the project.q Quality door /bug Barqua
Gcc-o tutorial03 tutorial03.c-lavutil-lavformat-lavcodec-lz-lm \' Sdl-config--cflags--libs 'Audio noun Explanation:Samples: Sampling, sampling by PCM, usually sample 16BIT,PCM from 14-bit to 16-bit, 18-bit, 20-bit to 24-bitSamples Rate: Sample rate, 22.05KHz and 44.1KHz, number of samples per second extracted from continuous signal and composed of discrete signalsBit rate: Sample rate * Sample bit* channel number, uncompressed audio bit rate on CD is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.