
百家之言
文章平均质量分 80
山庄来客
这个作者很懒,什么都没留下…
展开
-
GPU深度发掘(一)::GPGPU数学基础教程
GPU深度发掘(一)::GPGPU数学基础教程作者:Dominik Göddeke 译者:华文广 Contents 介绍准备条件 硬件设备要求软件设备要求两者选择 初始化OpenGLGLUTOpenGL 扩展OpenGL 离屏渲染GPGPU 概念1: 数组 = 纹理在CPU上建立数组在 GPU上生成浮点纹理数组索引转载 2012-06-30 13:27:41 · 2004 阅读 · 0 评论 -
CMake常见指令总结
PROJECT(工程名字) 这条指令会自动创建两个变量:_BINARY_DIR(二进制文件保存路径) _SOURCE_DIR(源代码路径)cmake系统也帮助我们预定义了PROJECT_BINARY_DIR和PROJECT_SOURCE_DIR其值与上述对应相等 SET(变量名 变量值) SET(VAR [VALUE] [CACHE T转载 2013-04-30 17:03:06 · 1268 阅读 · 0 评论 -
到底什么时候用指针或是引用
1.问题提出:当一个类的对象作为实参数传递时,使用值传递和引用传递有什么区别? 比如: DateType ExampleFun(CString &strFileName,...)与 DateType ExampleFun(CString strFileName,...)解答之前,我们先来看2个基本的概念:形参和实参。->通俗的讲:形参是形式上的参数,实参是实转载 2013-04-21 16:30:50 · 1451 阅读 · 0 评论 -
linux内核中操作文件的方法--使用get_fs()和set_fs(KERNEL_DS)
#include linux/kernel.h>#include linux/module.h>#include linux/init.h>#include linux/fs.h>#include linux/string.h>#include linux/mm.h>#include linux/syscalls.h>#include asm/unistd.h>#i转载 2013-03-19 13:52:19 · 13997 阅读 · 0 评论 -
Placement new的用法及用途
什么是placement new?所谓placement new就是在用户指定的内存位置上构建新的对象,这个构建过程不需要额外分配内存,只需要调用对象的构造函数即可。举例来说:class foo{};foo* pfoo = new foo;pfoo指向的对象的地址你是不能决定的,因为new已经为你做了这些工作。第一步分配内存,第二步调用类的构造函数。而placement转载 2013-02-19 19:51:49 · 989 阅读 · 0 评论 -
YUV420转YUV444 , YUV420转RGB
我想大家应该知道了YUV的颜色表示原理即: Y = 0.299R + 0.587G + 0.114B U = -0.147R - 0.289G + 0.436B V = 0.615R - 0.515G - 0.100B R = Y + 1.14V G = Y - 0.39U - 0.58V B = Y + 2.03U如果通过上面的公式从RGB转转载 2013-01-21 17:45:02 · 1800 阅读 · 0 评论 -
可延迟函数、内核微线程以及工作队列
本文研究多个用于在内核环境当中延迟处理的方法(特别是在 Linux 内核版本 2.6.27.14 当中)。 尽管这些方法针对 Linux 内核,但方法背后的理念, 对于系统架构研究具有更广泛的意义。例如, 可以将这些理念应用到传统的嵌入式系统当中,取代原有的调度程序来进行任务调度 。在开始研究用于内核中的可延迟函数之前, 让我们先了解一下相关问题的背景情况。 操作系统会因为一个硬件事件而产生中转载 2010-07-30 11:21:00 · 912 阅读 · 0 评论 -
struct vm_area_struct内核数据结构
Linux内核中,关于虚存管理的最基本的管理单元应该是struct vm_area_struct了,它描述的是一段连续的、具有相同访问属性的虚存空间,该虚存空间的大小为物理内存页面的整数倍。 下面是struct vm_area_struct结构体的定义:/** This struct defines a memory VMM memory area. There is o转载 2012-06-02 17:23:15 · 1237 阅读 · 0 评论 -
The evolution of driver page remapping
Two weeks ago, this page looked at the newVM_UNPAGED flag, introduced in 2.6.15-rc2 to mark virtual memory areas (VMAs) which are not made up of "normal" pages. These areas are usually created by devi转载 2012-06-26 17:05:53 · 582 阅读 · 0 评论 -
Linux kernel design patterns - part 3
In this final article we will be looking at just one design pattern. Westarted with the fine details of reference counting,zoomed out to look at whole data structures, and now move to the even large转载 2012-06-27 21:53:35 · 859 阅读 · 0 评论 -
The Android ION memory allocator(有删节)
ION is a generalized memory manager that Google introduced in the Android 4.0 ICS (Ice Cream Sandwich) release to address the issue of fragmented memory management interfaces across different Android转载 2013-01-04 15:12:52 · 1521 阅读 · 0 评论 -
使用 8 位 YUV 格式的视频呈现
发布日期 : 12/9/2004 | 更新日期 : 12/9/2004Gary Sullivan 和 Stephen EstropMicrosoft Digital Media Division适用于:Microsoft® Windows®, Microsoft DirectShow®摘要:本文讲述了在 Microsoft Windows 操作系统中呈现视频时推荐使用的 8 位转载 2012-04-15 13:01:04 · 749 阅读 · 0 评论 -
Linux kernel design patterns - part 2
Last week we discussed the value of enunciating kernel design patterns and looked at the design patterns surrounding reference counts. This week we will look at a very different aspect of coding and转载 2012-06-27 21:52:00 · 1131 阅读 · 0 评论 -
Linux kernel design patterns - part 1
One of the topics of ongoing interest in the kernel community is that of maintaining quality. It is trivially obvious that we need to maintain and even improve quality. It is less obvious how best to转载 2012-06-28 13:41:11 · 939 阅读 · 0 评论 -
[内存管理] linux kernel内存映射实例分析
作者:JHJ(jianghuijun211@gmail.com)日期:2012/08/24欢迎转载,请注明出处 引子现在android智能手机市场异常火热,硬件升级非常迅猛,arm cortex A9 + 1GB DDR似乎已经跟不上主流配置了。虽说硬件是王道,可我们还是不禁还怀疑这么强大的硬件配置得到充分利用了吗?因此以后我都会正对ARM平台分析kernel的转载 2013-07-03 15:37:35 · 1618 阅读 · 0 评论