This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Mac", | |
"includePath": [ | |
"${workspaceFolder}/**", | |
"/Library/Developer/CommandLineTools/usr/include/c++/v1", | |
"/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include", | |
"/Library/Developer/CommandLineTools/usr/include", | |
"/usr/include", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.当以下编码参数更改时file format/number and type of tracks/encoding parameters/encoding sequence/timestamp sequence, | |
需要在m3u8中加入#EXT-X-DISCONTINUITY隔离开,让播放器重新初始化。 | |
规范: | |
https://tools.ietf.org/html/draft-pantos-http-live-streaming-13#section-3.4.11 | |
2.应用场景: | |
1)轮播不用的影片。 | |
2)插入广告 | |
3.例子: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
总结一下,在默认情况下,栈只能得到1M大小的内存,全局静态储存可以得到2G,而在32位和64位下的堆则可以得到2G和无限内存(一般不会用到16T) | |
一个由C/C++编译的程序占用的内存分为以下几个部分: | |
1、栈区(stack)— 由编译器自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 | |
2、堆区(heap) — 一般由程序员分配释放,若程序员不释放,程序结束时可能由OS(操作系统)回收。注意它与数据结构中的堆是两回事,分配方式倒是类似于链表。 | |
3、全局区(静态区)(static)—,全局变量和静态变量的存储是放在一块的,初始化的全局变量和静态变量在一块区域,未初始化的全局变量和未初始化的静态变量在相邻的另一块区域。程序结束后由系统释放。 | |
4、文字常量区 —常量字符串就是放在这里的。程序结束后由系统释放。 | |
5、程序代码区—存放函数体的二进制代码。 |
NewerOlder