- 博客(64)
- 资源 (1)
- 收藏
- 关注

原创 HEVC整体流程部分
预测:帧内预测有35种:planar模式、DC模式和33种角度预测。64x64-4x4大小Planar模式适用于像素值变化缓慢的区域,使用水平(左侧右侧)和垂直(上方下方)两个方向的两个线性滤波器(一共四个值),并将二者平均值作为当前像素值的预测值。DC模式适用于大面积平坦区域,使用左侧和上方参考像素的平均值得到。33种角度。帧间预测有merge(包括skip)模式和AMV...
2019-07-21 18:31:12
917
原创 SNR、PSNR、MSE
SNR:信噪比PSNR (dB): 峰值信噪比RMSE(Root Mean Square Error)均方根误差衡量观测值与真实值之间的偏差。常用来作为机器学习模型预测结果衡量的标准。MSE(Mean Square Error)均方误差MSE是真实值与预测值的差值的平方然后求和平均。通过平方的形式便于求导,所以常被用作线性回归的损失函数。MAE...
2019-09-23 13:47:51
9737
1
原创 C++面试汇总中...
1、C++new与malloc的10点区别https://www.cnblogs.com/ywliao/articles/8116622.htmlint *p = (int*)malloc(sizeof(int)); //申请 memset(p, 0, sizeof(int)); //赋值 free(p); //释放 int *q = new int; //申请 *q = 1; /...
2019-09-15 21:38:16
296
转载 C++判断大端小端
C/C++大端小端判断https://www.cnblogs.com/zjutzz/p/7231183.html一字节为8位、16进制为4位、一字节可以表示2个16进制数。char为1字节、int为4字节。大端正着存、小端倒着存。说的是变量的高字节、低字节在内存地址中的排放顺序。变量的高字节放到内存的低地址中(变量的低字节放到内存的高地址中)==>大端变量的高字节放到内...
2019-09-15 20:07:23
788
原创 while(cin>>n)结束
while(cin>>n) ctrl+z可以结束while (cin >> hn){ if (cin.get() == '\n') { break; }}结束cin得到不定多行的不定长数组。getline得到不定长的一行,将该行拆分成每个数。while得到不定多行。当getline没有得到时,即为结束。int ma...
2019-09-07 09:34:23
7542
原创 VVC新技术(汇总中)
内容非原创帧内预测:简介https://blog.youkuaiyun.com/u012038173/article/details/90084591#2_CCLM_661. 扩展角度帧内模式 :65个帧内预测模式和WAIP预测模式 :https://cloud.tencent.com/developer/article/1430270针对这个非对称问题,对于水平的预测单元,模式67~ 80...
2019-08-27 14:14:31
3287
原创 重建二叉树
题目描述输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。假设输入的前序遍历和中序遍历的结果中都不含重复的数字。例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建二叉树并返回。前序+中序得到二叉树递归实现:前序第一个数root为根节点,在中序找到root,中序中root左边的为根节点的左子树,右边的为根节点的右子树。递...
2019-08-09 11:06:18
113
原创 C++牛客笔记
[define](1)#define是宏定义,它在预编译的时候进行简单地文本替换。(2)#define不做类型检查,它很容易出错。(3)#define仅仅是宏替换,它不会占用内存。(4)当我们用#define定义一个简单函数时,强烈建议使用内联函数替换.例如:牛客网华中第一狠人程德彪#include <iostream>using namespace s...
2019-08-07 20:56:53
186
原创 const用法
const用法大全:https://www.cnblogs.com/lanjianhappy/p/7298427.html修改const int i;https://blog.youkuaiyun.com/weixin_41413441/article/details/80860135#include <iostream>#include <string>u...
2019-08-05 12:20:41
239
原创 cin、cout、scanf、printf函数计算顺序
cin、cout、scanf、printf计算顺序都是从右向左进行计算、然后从左向右进行输入和输出。vs2015#include <iostream>#include <string>using namespace std;int main(){ char a[10] = { 'a','b','c','d'}; char* p = a; cin &...
2019-08-04 15:47:44
1208
原创 HTML 字符实体
https://www.w3school.com.cn/html/html_entities.aspHTML 中有用的字符实体注释:实体名称对大小写敏感!显示结果 描述 实体名称 实体编号 空格   < 小于号 < < > 大于号...
2019-08-03 09:57:27
143
原创 C++:char、int占多少字节
x86sizeof(char) 1sizeof(char*) 4sizeof(int) 4sizeof(int*) 4sizeof(double) 8sizeof(double*) 4sizeof(float) 4sizeof(float*) 4sizeof(string) 28sizeof(string*) 4x64sizeof(char) 1...
2019-08-02 16:31:03
16637
原创 2019网易秋招笔试题:[编程题]丰收
又到了丰收的季节,恰逢小易去牛牛的果园里游玩。牛牛常说他对整个果园的每个地方都了如指掌,小易不太相信,所以他想考考牛牛。在果园里有N堆苹果,每堆苹果的数量为ai,小易希望知道从左往右数第x个苹果是属于哪一堆的。牛牛觉得这个问题太简单,所以希望你来替他回答。输入描述:第一行一个数n(1 <= n <= 105)。第二行n个数ai(1 <= ai<= ...
2019-08-01 21:41:05
304
原创 2019网易秋招笔试题:瞌睡
#include <iostream>using namespace std;int a[10001] = { 0 };bool t[10001] = { 0 };int main(){ int n, k; cin >> n >> k; for (int i = 1; i <= n; i++) { cin >> a...
2019-08-01 21:13:45
433
原创 VVC、HEVC中QP,拉姆达λ计算-calculateLambda
getpoc0,1,2,3,4,5,6.。。。iGOPidgetpoc 1 2 3 4 iGOPid 0 1 2 3 poc 1 2 3 0 depth 2 1 2 0 QP 44 45 44 38 QP计算过程:Int EncCfg::getQPFo...
2019-08-01 16:17:10
3883
8
原创 scanf和printf
c语言中scanf和printf转换说明:%d %i:有符号十进制整数,用%d显示float类型的值,不会转化为int类型;%f:可显示float或double类型的值%a,%A:十六进制表示浮点数%e,%E:指数计数法表示浮点数,12.e24,12.E24。%#o,%o:无符号八进制;前一个表示格式为014,后一个表示...
2019-08-01 11:00:23
2678
原创 访问结构体->和.
访问结构体时,普通变量用点. 指针变量用->struct students{ int id; char name[20]; students* next;}stu,*p;stu.idstu.namestu.next(*p).id(*p).name(*p).nextp->idp->namep->next其中,stud...
2019-08-01 10:00:56
593
转载 H.266/VVC相关技术学习笔记:HEVC和VVC中块划分的差别
转自https://blog.youkuaiyun.com/peter_red_boy/article/details/90550341关于H.265/HEVC和H.266/VVC中的块划分的区别:一、HEVC中首先需要将一个图像固定划分为多个CTU。① CTU的尺寸固定划分为64×64,一个CTU由一个亮度CTB和两个色度CTB,再加上相应的语法元素组成。② CTU可以通过四叉树的方式向下划分...
2019-07-21 18:53:01
1429
原创 排序若干C++实现
#include <iostream>#include <vector>using namespace std;void InsertSort(vector<int> &A){ for (int i = 1; i < int(A.size()); i++) { if (A[i] < A[i - 1]) { int...
2019-07-21 18:38:56
128
原创 二叉树C++实现
#include <iostream>using namespace std;typedef struct BiNode { int data; struct BiNode* lchild; struct BiNode* rchild;}BiNode,*Bitree;void createBitree(Bitree &T){ int ch; cin &...
2019-07-21 18:38:17
273
原创 单链表C++实现
#include <iostream>#include <vector>using namespace std;int datacin[5] = { 1,2,3,4,5 };typedef struct LNode { int data; struct LNode* next;}LNode,*LinkList;int InitList(LinkList &...
2019-07-21 18:37:28
507
原创 栈C++实现
#include <iostream>using namespace std;typedef struct{ int *base; int *top; int stacksize;}sqstack;int initstack(sqstack &S){ S.base = new int[5]; S.top = S.base; S.stacksize = 5...
2019-07-21 18:36:21
219
原创 HEVC、VVC编码框架
输入图像与预测的残差进行变换、量化,进入熵编码。变换、量化后进行反变换、反量化与预测进行滤波得到解码图像。根据解码图像和输入图像进行运动估计,运动补偿,得到预测结果。...
2019-07-21 16:49:22
1624
转载 C++ 函数传递 一个例子让你理解c++的指针(传递动态内存)
https://blog.youkuaiyun.com/sinat_35803474/article/details/76686061
2019-07-19 20:24:12
193
原创 率失真优化和码率控制关系
率失真优化是λ已知,在GOP层、Slice层、CTU层、CU层和PU层级别计算J=D+λR的最小值。码率控制是编码后的比特已知,在GOP级、图像级、CTU级计算每个GOP、图像和CTU的λ值,在通过λ计算得到QP。...
2019-07-19 17:00:25
1575
6
转载 C++:int、double范围
一、基本数据类型的特点,位数,最大值和最小值。1、基本类型:short二进制位数:16 (2字节)最小值:Short.MIN_VALUE=-32768 (-2的15此方)最大值:Short.MAX_VALUE=32767 (2的15次方-1)2、基本类型:int 二进制位数:32(4字节)最小值:Integer.MIN_VALUE= -2147483648 (-2的31次方)最大...
2019-07-08 20:30:46
27148
3
转载 LeetCode989. Add to Array-Form of Integer
For a non-negative integerX, thearray-form ofXis an array of its digits in left to right order. For example, ifX = 1231, then the array form is[1,2,3,1].Given the array-formAof a non-negati...
2019-06-26 20:36:26
151
转载 LeetCode415. Add Strings
Given two non-negative integersnum1andnum2represented as string, return the sum ofnum1andnum2.Note:The length of bothnum1andnum2is < 5100. Bothnum1andnum2contains only digits0-...
2019-06-26 19:59:47
203
转载 LeetCode43. Multiply Strings
Given two non-negative integersnum1andnum2represented as strings, return the product ofnum1andnum2, also represented as a string.Example 1:Input: num1 = "2", num2 = "3"Output: "6"Example...
2019-06-26 19:35:13
147
转载 LeetCode283. Move Zeroes
Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.Example:Input: [0,1,0,3,12]Output: [1,3,12,0,0]Note:You m...
2019-06-19 17:51:51
121
原创 LeetCode11. Container With Most Water[C++]
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of lineiis at (i,ai) and (i, 0). Find two ...
2019-06-19 16:07:15
193
转载 LeetCode220. Contains Duplicate III
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that theabsolutedifference betweennums[i]andnums[j]is at mosttand theabsolutedifference ...
2019-06-14 17:19:39
155
原创 LeetCode217. Contains Duplicate [C++]
Given an array of integers, find if the array contains any duplicates.Your function should return true if any value appears at least twice in the array, and it should return false if every element i...
2019-06-14 15:11:14
271
原创 LeetCode219. Contains Duplicate II [C++]
Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and theabsolutedifference betweeniandjis at mostk....
2019-06-14 15:00:14
194
原创 LeetCode500. Keyboard Row [C++]
Given a List of words, return the words that can be typed using letters ofalphabeton only one row's of American keyboard like the image below.Example:Input: ["Hello", "Alaska", "Dad", "...
2019-06-13 21:21:12
274
原创 LeetCode599. Minimum Index Sum of Two Lists [C++]
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.You need to help them find out theircommon interestwith the...
2019-06-13 20:21:31
185
原创 LeetCode160. Intersection of Two Linked Lists [C++]
Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:begin to intersect at node c1.Example 1:Input: ...
2019-06-13 15:48:41
285
转载 LeetCode143. Reorder List
Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You maynotmodify the values in the list's nodes, only nodes itself may be changed.Example 1:Given 1->2-...
2019-06-13 14:59:10
178
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人