在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → Raspberry.Pi.GPU.Audio.Video.Programming

Raspberry.Pi.GPU.Audio.Video.Programming

一般编程问题

下载此实例
  • 开发语言:Others
  • 实例大小:3.71M
  • 下载次数:6
  • 浏览次数:73
  • 发布时间:2021-02-23
  • 实例类别:一般编程问题
  • 发 布 人:好学IT男
  • 文件格式:.pdf
  • 所需积分:2
 

实例介绍

【实例简介】
Delve into the Broadcom VideoCore GPU used on the Raspberry Pi and master topics such as OpenGL ES and OpenMAX. Along the way, you’ll also learn some Dispmanx, OpenVG, and GPGPU programming. The author, Jan Newmarch bumped into a need to do this kind of programming while trying to turn the RPi into
Raspberry Pi gPU audio video programming Jar n newmarc Oakleigh, Victoria Australia ISBN13(pbk):978-1-48422471-7 ISBN-13( electronic:978-1-4842-2472-4 DOI10.1007/978-1-4842-2472-4 Library of Congress Control Number: 2016961518 Copyright o 2017 by Jan Newmarch This work is subject to copyright. all rights are reserved by the publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are notidentified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made The publisher makes no warranty express or implied with respect to the material contained herein Managing Director: Welmoed Spahi Lead Editor: Steve anglin Technical Reviewer Chaim Krause Editorial Board: Steve Anglin, Pramila Balan, Laura Berendson, Aaron Black, Louise Corrigan Jonathan gennick, Robert Hutchinson, Celestin Suresh John, Nikhil Karkal, james Markham, Susan McDermott, Matthew Moodie, Natalie Pao, Gwenan Spearing Coordinating Editor: Mark Powers Copy Editor: Kim Wimpsett Compositor: SPi Global Indexer: SPi Global Artist: SPi globa Distributed to the book trade worldwide by Springer Science+ Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax(201)348-4505, e-mail orders-nyospringer-sbm.com,orvisitwww.springeronline.comApressMedia,LlcisaCaliforniaLlc and the sole member(owner) is Springer Science Business Media Finance Inc (SSBM Finance Inc) SSBM Finance Inc is a delaware corporation Forinformationontranslationspleasee-mailrights@apress.comorvisitwww.apress.com Apress and friends of ed books may be purchased in bulk for academic, corporate, or promotional use eBook versions and licenses are also available for most titles. For more information, reference our Special BulkSales-ebooklicensingwebpageatwww.apress.com/bulk-sales Any source code or other supplementary materials referenced by the author in this text are available to readersatwww.apress.comFordetailedinformationabouthowtolocateyourbookssourcecodegoto www.apress.com/source-code/.ReaderscanalsoaccesssourcecodeatSpringerlinkinthe Supplementary Material section for each chapter Printed on acid-free paper To my wife, Linda cai, and my daughter, Kathryn who let me play with my computing toys without complaint. Contents at a glance About the author About the technical reviewer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ XX Acknowledgments ■■■■■■■■■■ Introduction…nui Chapter 1: Introduction to the Raspberry pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■ Chapter 2: Khronos Group 7 Chapter 3: Compiling Programs for the Raspberry pi ■■■■■■■■■■■■■■■■■口■■■■■■■■■■口■ 9 Chapter 4: Dispmanx on the Raspberry Pimmmmmn 21 Chapter 5: EGL on the Raspberry Pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■ 27 Chapter 6: OpenGL ES on the Raspberry pi an ■I Chapter 7: Open MAX on the Raspberry Pi concepts an 9 Chapter 8: OpenMAX Components on the Raspberry pi maan. 83 Chapter 9: Open MAX on the Raspberry pi state mamamananaaamaana 113 Chapter 10: OpenMAX IL client Library on the Raspberry pia. 129 Chapter 11: Open MAX Buffers on the Raspberry pi aan 137 Chapter 12: Image processing on the raspberry pi 153 Chapter 13: Open MAX Video Processing on the Raspberry pi mmmmm 181 Chapter 14: OpenMAX Audio on the Raspberry Pieman 203 Chapter 15: Rendering Open MAX to OpenGL on the Raspberry Pitman 245 CONTENTS AT A GLANC Chapter 16: Playing Multimedia Files on the Raspberry pi nn 261 Chapter 17: Basic OpenvG on the Raspberry Pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■■■■■■■■■■■ 325 Chapter 18: Text Processing in OpenVG on the Raspberry Pinata 349 Chapter 19: Overlays on the Raspberry Pi 375 Index…uu435 Contents About the author About the technical reviewer ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ XX Acknowledgments ■■■■■■■■■■■ Introduction…nui Chapter 1: Introduction to the Raspberry pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Introduction DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD Programming Style DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDm Conclusion Resources Chapter 2: Khronos Group a Role of khronos OpenGL ES 5667778 OpenVg EGL OpenMAX Conclusion Resources 78888899 Chapter 3: Compiling Programs for the Raspberry pi Generic Information Versions of gcc 10 C99 or C11 Compilers 10 gcc Compile flags CONTENTS Includes 14 Dispmanx….4 EGL 14 enMAX 144 OpenGL ES 15 Openvg 15 Libraries,…15 Dismal 15 15 OpenMAX 15 OpenGL es OpenvG 16 Sample Makefiles 16 Dispmanx….,.,,,,.,., 16 EGL OpenMAX OpenvG 78 面m ,日面a面面面a,日面面a日面面面面日面面量a日面面面日面面 Using pkg-config 18 Conclusion 19 Chapter 4: Dispmanx on the Raspberry Pi. ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ 21 Building programs… 21 Accessing the GPU 21 Garbage collection 24 Screen Capture 25 Conclusion 25 Resources 25 Chapter5: EGL on the Raspberry pia,,…,…,…,,,,…,…,…,,,……27 Building Programs….....,.,……,…,………,27 Overview 27 CONtENTS Initializing EGL……,,… 28 Creating a Rendering Context 30 Creating an EGL Drawing Surface with Dispmanx 33 Garbage collection .37 Conclusion .39 Resources .39 Chapter 6: OpenGL ES on the Raspberry Pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ Building Programs…,,,,… OpenGL ES The sutil functions 43 Vertices …146 Shaders 47 Minimalvertexshaderwwwwww.48 Minimal Fragment shader 48 oading the Shaders 日日自日日日面日日面日自日日面日面日自日面日日日面日日自日日日面日自m日面日自日日日面日自日面日自日日面日日自日日日面日日自口 49 Creating the Program object 50 Drawing Something…… 51 Putting it Together 53 Drawing an opaque red Triangle 53 A Colored Triangle 57 Varying….,.,.,.,.,,…,……,…,…,…,…,……,………………………57 Passing Multiple attributes to the vertex Shader 58 Drawing squares and other Shapes 59 Which to choose? Textures …62 TGA Files…,,,,,,,,,,,,,, Mipmaps Creating a Texture object . IX CONTENTS Texture attributes and the shaders 63 Drawing the Texture.....,,,……….65 Complete Code for Drawing an Image. 67 Animation: Rotating an Image Matrices es 面m 日面a面面面a,日面面a日面面面面日面面量a日面面面日面面 Invoking animation 72 Uniform parameters Conclusion 78 Resources… 78 Chapter 7: Open MAX on the Raspberry pi concepts g79 OpenMAX Overview 79 OpenMAX Concepts 80 Conclusion 81 Resources…81 Chapter 8: OpenMAX Components on the Raspberry Pi ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■口■■■■■■■■ 83 OpenMAX IL Components 83 Getting a List of components 84 Getting a handle to a component 87 Port information 88 Getting and setting Parameters 89 Getting port Information 90 Getting Information About Specific Types of port .mtanananeeememeaatanananon, 92 Detailed Audio port Information Conclusion Resources∴, 111 Chapter 9: Open MAX on the Raspberry pi state a 113 Building Programs…… 113 Component states 113 【实例截图】
【核心代码】

标签:

实例下载地址

Raspberry.Pi.GPU.Audio.Video.Programming

不能下载?内容有错? 点击这里报错 + 投诉 + 提问

好例子网口号:伸出你的我的手 — 分享

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警