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];
} }
}

最新文章

  1. 简单理解Socket
  2. AngularJS快速入门指南18:Application
  3. linux maven安装配置
  4. PHP常规模板引擎中与CSS/JSON冲突的解决
  5. 【转】Javascript 中的false,零值,null,undefined和空字符串对象
  6. 完毕port(CompletionPort)具体解释 - 手把手教你玩转网络编程系列之三
  7. 开源 免费 java CMS - FreeCMS2.0 会员我的评论
  8. 深入浅出分析MySQL索引设计背后的数据结构
  9. 有关LinkedList常用方法的源码解析
  10. java I/O框架 (一)总览
  11. JAVA_SE基础——37.main方法的详解
  12. Linux系统基础优化
  13. import cv2出现“ImportError: DLL load failed: 找不到指定的模块”
  14. asp+SqlServer2008开发【第一集:安装SqlServer2008以及登陆】
  15. cocos2d-x JS 加载播放Studio帧动画的两种方法
  16. ORACLE 几个我忍了他很多年的问题
  17. 【Coursera】Security Introduction -Eighth Week(1)
  18. H5-DataUrl FileReader
  19. CodeForces528A (STLset)
  20. servlet的使用

热门文章

  1. Ionic4.x 创建页面以及页面跳转
  2. Mac下载工具软件提示损坏
  3. ORM学习笔记
  4. LODOP设置同一个任务发送到不同打印机
  5. 【Leetcode_easy】728. Self Dividing Numbers
  6. LNMP V1.4正式版本安装及新增Let's Encrypt一键安装和其他功能
  7. leetcode834 Sum of Distances in Tree
  8. 帝国cms 批量替换语句
  9. 【转】JS大总结(带实例)
  10. Java面试 - static 修饰的变量和方法有哪些特点?