GithubHelp home page GithubHelp logo

xuminjieleon / simplest_media_play Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leixiaohua1020/simplest_media_play

0.0 0.0 0.0 33.44 MB

Examples about video/audio's playing

Home Page: http://leixiaohua1020.github.io/

C++ 1.29% C 98.54% Objective-C 0.16% GLSL 0.01%

simplest_media_play's Introduction

最简单的多媒体播放的例子
Simplest Media Play

雷霄骅 Lei Xiaohua
[email protected]
**传媒大学/数字电视技术
Communication University of China / Digital TV Technology
http://blog.csdn.net/leixiaohua1020

本工程包含了使用各种API(Direct3D,OpenGL,GDI,DirectSound,SDL2)播放多媒体例子。
其中音频输入为PCM采样数据。输出至系统的声卡播放出来。
视频输入为YUV/RGB像素数据。输出至显示器上的一个窗口播放出来。
通过本工程的代码初学者可以快速学习使用这几个API播放视频和音频的技术。
一共包括了如下几个子工程:
simplest_audio_play_directsound: 	使用DirectSound播放PCM音频采样数据。
simplest_audio_play_sdl2: 			使用SDL2播放PCM音频采样数据。
simplest_video_play_direct3d: 		使用Direct3D的Surface播放RGB/YUV视频像素数据。
simplest_video_play_direct3d_texture:使用Direct3D的Texture播放RGB视频像素数据。
simplest_video_play_gdi: 			使用GDI播放RGB/YUV视频像素数据。
simplest_video_play_opengl: 		使用OpenGL播放RGB/YUV视频像素数据。
simplest_video_play_opengl_texture:	使用OpenGL的Texture播放YUV视频像素数据。
simplest_video_play_sdl2: 			使用SDL2播放RGB/YUV视频像素数据。


This project contains several examples about video/audio's playing. It uses different
API (Direct3D, OpenGL, GDI, DirectSound, SDL2) to output video/audio to system devices.
In audio examples, input data is PCM raw audio data.
In video examples, input data is YUV/RGB raw pixel data.
Through these examples, the beginner of video/audio programmer can learn the usage of
these API easyly.
It contains following programs:
simplest_audio_play_directsound: 	Play PCM raw audio data using DirectSound.
simplest_audio_play_sdl2: 			Play PCM raw audio data using SDL2.
simplest_video_play_direct3d: 		Play RGB/YUV raw video data using Direct3D's Surface.
simplest_video_play_direct3d_texture:Play RGB raw video data using Direct3D's Texture.
simplest_video_play_gdi: 			Play RGB/YUV raw video data using GDI.
simplest_video_play_opengl: 		Play RGB/YUV raw video data using OpenGL.
simplest_video_play_opengl_texture:	Play YUV raw video data using OpenGL's Texture.
simplest_video_play_sdl2: 			Play RGB/YUV raw video data using SDL2.



simplest_media_play's People

Contributors

leixiaohua1020 avatar xuminjieleon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.