legacy
2024-10-06 08:43:20
int bw = blockDim.x;
int bh = blockDim.y; int tx = threadIdx.x%bw;
int ty = threadIdx.y%bh; __shared__ uchar2 ys0[][];
__shared__ uchar2 ys1[][];
__shared__ uchar2 uvs[][]; ys0[ty][tx] = y0y1;
ys1[ty][tx] = y2y3;
uvs[ty][tx] = uv; __syncthreads();
if (threadIdx.x == && threadIdx.y == ) {
for (int j = ; j != bh; ++j) {
uchar2* py0 = (uchar2*)(pDst + (iy + j) * * nPitch + ix * );
uchar2* py1 = (uchar2*)(pDst + ((iy + j) * +) * nPitch + ix * );
uchar2* puv = (uchar2*)(pDstUv + (iy + j)*nWidth + ix * );
for (int i = ; i != bw; ++i) {
*py0++ = ys0[j][i];
*py1++ = ys1[j][i];
//*puv++ = uvs[j][i];
} }
}
最新文章
- 简单理解Socket
- AngularJS快速入门指南18:Application
- linux maven安装配置
- PHP常规模板引擎中与CSS/JSON冲突的解决
- 【转】Javascript 中的false,零值,null,undefined和空字符串对象
- 完毕port(CompletionPort)具体解释 - 手把手教你玩转网络编程系列之三
- 开源 免费 java CMS - FreeCMS2.0 会员我的评论
- 深入浅出分析MySQL索引设计背后的数据结构
- 有关LinkedList常用方法的源码解析
- java I/O框架 (一)总览
- JAVA_SE基础——37.main方法的详解
- Linux系统基础优化
- import cv2出现“ImportError: DLL load failed: 找不到指定的模块”
- asp+SqlServer2008开发【第一集:安装SqlServer2008以及登陆】
- cocos2d-x JS 加载播放Studio帧动画的两种方法
- ORACLE 几个我忍了他很多年的问题
- 【Coursera】Security Introduction -Eighth Week(1)
- H5-DataUrl FileReader
- CodeForces528A (STLset)
- servlet的使用