- 博客(15)
- 资源 (5)
- 收藏
- 关注
原创 [leetcode] Binary Tree Preorder Traversal 非递归先序遍历
Binary Tree Preorder Traversal Total Accepted: 20397 Total Submissions: 58308My Submissions Given a binary tree, return the preorder traversal of its nodes' values. For example: Given b
2014-06-09 20:15:16 531
原创 [模仿Android微信]之主界面
首先看看模仿的像不像: 再来一发: 实现过程: 依赖类库:actionbarsherlock 用actionbarsherlock来实现顶部的搜索的效果。 tab用的是Viewpaper实现的。 具体细节: 1.聊天、发现和通讯录地下的绿色的矩形和地下的灰色细线是重合的,怎么实现这种效果呢,只要使用 RelativeLayout,然后使得两个Imag
2014-05-28 10:50:12 1575 5
原创 [编译]如何编译OpenSVCDecoder Android版本
1.下载源代码:http://sourceforge.net/projects/opensvcdecoder/
2014-05-22 16:04:12 863 1
原创 [leetcode] Single Number II
Single Number II Total Accepted: 13814 Total Submissions: 42303My Submissions Given an array of integers, every element appears three times except for one. Find that single one. Note: Y
2014-05-04 12:59:02 596
原创 [leetcode] Binary Tree Postorder Traversal
Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [3,2,1]. Note: Recursive solut
2014-04-26 09:46:17 435
原创 [leetcode] Insertion Sort List
题目: class Solution { public: ListNode *insertionSortList(ListNode *head) { if (head == NULL || head->next == NULL) return head; //设置当前遍历指针 ListNode * current = head->next; head->nex
2014-04-22 21:58:42 532
原创 [leetcode] Sort List
题目: Sort List Total Accepted: 9356 Total Submissions: 47695My Submissions Sort a linked list in O(n log n) time using constant space complexity. Have you been as
2014-04-22 20:37:27 513
原创 [leetcode] Max Points on a Line
题目: Max Points on a Line My Submissions Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
2014-04-22 19:17:33 545
原创 在Android上使用FFMPEG和SDL 2.X播放视频
工程: 效果图: 前言: 1.本代码使用的SDL为2.x,意思是使用的SDL_Texture来显示YUV数据 2.大致的过程就是:使用FFMPEG解码出YUV数据,然后使用SDL显示 关键代码: 1.转成YUV sws_ctx = sws_getContext ( pCodecCtx->width, pCodecCtx
2013-10-24 16:51:17 2330 3
原创 Android使用FFMPEG解码成PPM图片
准备条件: 1.编译出了FFMPEG的Android版本,没有的话请看我的博客:http://blog.csdn.net/u012463359/article/details/12834485 该篇博客的目的: 1.熟悉FFMPEG的基本函数。 2.解码指定视频的帧图片,并且保存在sdcard上。 正文: 第一步:新建一个tutorrial.c文件。代码如下: /* DO NOT
2013-10-18 13:39:26 1568 1
原创 编译FFMPEG Android版本
编译前的准备: 1.下载ccache 源码 下载网页:http://ccache.samba.org/download.html 2.安装ccache tar -xvf ccache-3.1.9.tar.bz2 cd ccache-3.1.9 ./configure make make install //Mac系统安装需要加上sudo,即sudo make install
2013-10-17 11:22:29 761
HEVC入门论文(多篇)
2014-05-05
FFMPEG tutorial 01 (Stephen Dranger)Android版
2013-10-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人