自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

高大魔王的博客

专注前端

  • 博客(29)
  • 收藏
  • 关注

原创 对实现Promise A+规范的polyfill 的讲解

Promise A+ 规范本篇仅讲述Promise声明时的运行过程和.then链式回调声明时运行过程Promise 解决过程Promise 解决过程是一个抽象的操作,其需输入一个 promise 和一个值,我们表示为 [[Resolve]](promise, x),如果 x 有 then 方法且看上去像一个 Promise ,解决程序即尝试使 promise 接...

2018-06-13 11:24:45 516

原创 软编码Flv 到Mp4 容器(一)

这是一篇系列文章,用伪代码来一步步讲解flv 软编码到mp4本质上这是一篇对flv.js的解释,解释flv如何转换成mp4的现在网上关于mp4的资料不算少,但是从伪代码层级讲述一个容器到另一个容器的几乎没有,这也是为什么要写这么一篇系列文章.

2017-05-04 10:37:21 6222

原创 神舟g7 ct7vk 显卡性能大幅下降的问题

ct7vk这个机子是同方的模具,配备电源是180w,但是经过功率计测试后,双烤情况下,功耗是整整180w,这有可能会引起在玩某些大型3A游戏情况下,偷取电池电量的问题。网上很多用户都暴露了这个问题,什么插着电源充不满电之类的,都是因为主板偷电引起的。 当这个机子的电池挂掉后,就是永远处于0%的状态,你的电脑会处于一种低功耗的状态下,系统级更改电源模式是不管用的,我怀疑是bios设置,但是没有能力去修改bios的一些功耗。 其实这种低功耗模式很好测试,你们只需要把电池拔...

2020-12-01 17:48:41 2392 1

原创 二叉树

let arr=[5,1,2,6,5]function Node(val){ this.val=val; this.left=null; this.right=null; this.addLeft=function(node){ this.left=node; }; this.addRight=function(node){ this.right=node; }}let root=new Node(arr.shift());arr.map(item=&

2020-09-03 21:23:43 124

原创 MVVM双向绑定简单实现

<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> &...

2019-11-20 11:04:22 407

原创 Sketch2Code

2019-07-17 15:24:38 1179

原创 出两个Promise的面试题

第一题var p = new Promise((res,rej)=&gt;{res(1)});var p2 = p.then(console.log);console.log(p2);//此处只写p2的状态var p3 = p2.then(console.log);setTimeout(()=&gt;{ console.log(p3);//此处只写p3的状态})第二题(...

2018-06-14 12:14:08 576 3

原创 糙写Promise

var a=new Promise(function(a,b){ setTimeOut(a,5000);})setTimeOut(function(){ a.then(()=>{ console.log('5秒之后一定会执行') }},5000);console.log一定会在5秒后执行 Promise在实例化之后就进入了pending状态,直到执行r

2017-07-20 15:57:25 308

原创 nodejs express 子app功能(路由)

在nodejs方向我也是一枚新手,最近在写一个基于express+vue的博客的时候,就遇到了问题,有些请求我希望放到单独的js模块里面去进行分析解决,但是不知道怎么搞,以至于写成了如下形式//model1.js这是我希望的单独逻辑模块module.exports=function(app){ app.get('/list',function(req,res){ //doso

2017-07-11 12:22:14 1004

原创 flv2fmp4解决方案

已经整合出一套剥离了io和mse操作的纯编码解决方案,可以认为那只是一个ffmpeg,别人可以自己实现io和mse github

2017-06-16 11:41:11 680

原创 SVG动画

SVG动画示例<!DOCTYPE html><html> <head> <meta charset="utf-8" /> <title></title> <style> @-webkit-keyframes myfirst { from {stroke-dasha

2017-06-13 17:37:44 3522

转载 FLV视频封装格式详解

OverviewFlash Video(简称FLV),是一种流行的网络格式。目前国内外大部分视频分享网站都是采用的这种格式.File Structure从整个文件上开看,FLV是由The FLV header 和 The FLV File Body 组成.1.The FLV headerFieldTypeCommentSign

2017-06-07 18:17:56 723

原创 Uint8Array 拷贝操作的坑(buffer)

Uint8Array 声明let u8a=new Uint8Array(10);console.log(u8a);//Uint8Array(10) [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]console.log(u8a.buffer);//ArrayBuffer{} .bytelength 为10u8a.set([15,16,17],0)console.log(u8a)

2017-05-24 19:36:16 20392 1

原创 软编码Flv 到Mp4 容器(外传一)avcc box

avcc boxavcc是AVCDecoderConfigurationRecordAVC decoder configuration record定义aligned(8) class AVCDecoderConfigurationRecord { unsigned int(8) configurationVersion = 1; unsigned int(8) AVCProfileIndica

2017-05-23 18:06:11 3523

原创 软编码Flv 到Mp4 容器(十三) fmp4 生成ftyp和moov所必要的 flv数据

https://github.com/332065255/flv2fmp4代码库软编码Flv 到Mp4 容器(一) 软编码Flv 到Mp4 容器(二) flv tag拆解 软编码Flv 到Mp4 容器(三) flv metadata tag解析 软编码Flv 到Mp4 容器(四) fmp4 总览和基础讲解 软编码Flv 到Mp4 容器(五) fmp4 ftyp box 和moov>mvhd

2017-05-17 11:34:47 4257 1

原创 软编码Flv 到Mp4 容器(十二) fmp4 mdat box详解

https://github.com/332065255/flv2fmp4代码库 - ftyp - moov - mvhd - trak - tkhd - mdia - mdhd - hdlr - minf - smhd

2017-05-17 11:32:30 2555

原创 软编码Flv 到Mp4 容器(十一) fmp4 moof box详解

https://github.com/332065255/flv2fmp4代码库 - ftyp - moov - mvhd - trak - tkhd - mdia - mdhd - hdlr - minf - smhd

2017-05-17 11:31:04 6470

原创 软编码Flv 到Mp4 容器(十) fmp4 mvex box 讲解

https://github.com/332065255/flv2fmp4代码库 - ftyp - moov - mvhd - trak - tkhd - mdia - mdhd - hdlr - minf - smhd

2017-05-17 11:27:18 1732 1

原创 软编码Flv 到Mp4 容器(九) fmp4 stts stsc stsz stco box 讲解

https://github.com/332065255/flv2fmp4代码库先占坑(未完待续)

2017-05-17 11:25:16 3911

原创 软编码Flv 到Mp4 容器(八) fmp4 mdia>stbl>stsd box 讲解

https://github.com/332065255/flv2fmp4代码库先占坑(未完待续)

2017-05-17 11:23:19 2072

原创 软编码Flv 到Mp4 容器(七) fmp4 mdia>hdlr box 和 mdia>minf> smhd 和dinf box讲解

https://github.com/332065255/flv2fmp4代码库先占坑(未完待续)

2017-05-17 11:21:56 2661

原创 软编码Flv 到Mp4 容器(六) fmp4 moov>trak>tkhd box 和 moov>trak>mdia>mdhd box讲解

https://github.com/332065255/flv2fmp4代码库先占坑(未完待续)

2017-05-17 11:18:28 2054

原创 软编码Flv 到Mp4 容器(五) fmp4 ftyp box 和moov>mvhd box详解

https://github.com/332065255/flv2fmp4代码库先占坑(未完待续)

2017-05-17 11:16:43 2937

原创 软编码Flv 到Mp4 容器(四) fmp4 总览和基础讲解

https://github.com/332065255/flv2fmp4代码库首先约定几个定义 mp4容器,是由box组成 box分为Container box 和full boxContainer box意思是容器box,里面会包含更多的box, 代表有moov box full box是单个box,里面不会包含更多的box,代表有ftyp box标准的box开头的4个字节(32位)为

2017-05-17 11:05:49 6440

原创 软编码Flv 到Mp4 容器(三) flv metadata tag解析

https://github.com/332065255/flv2fmp4代码库(未完待续,作者在码代码)

2017-05-16 16:04:00 3477

原创 软编码Flv 到Mp4 容器(二) flv tag拆解

https://github.com/332065255/flv2fmp4代码库接上篇文章,这章主要是对flv二进制数据进行tag拆解首先接上章的入口类import flvparse from './flv/flvParse'window.flvParse = { setFlv: function(uint8) { flvparse.setFlv(uint8); }

2017-05-16 15:47:18 2273

原创 React 组件不渲染的坑...

import './App.css';import React from 'react';import ShopTitle from './shopTitle/ShopTitle.jsx';console.log(ShopTitle)export default class App extends React.Component{ render(){ return (

2017-05-16 11:51:49 5225

翻译 ISO BMFF Byte Stream Format

Table of Contents1. Introduction2. MIME-type parameters3. Initialization Segments4. Media Segments5. Random Access Points6. Acknowledgments7. Revision History1. IntroductionThis

2017-05-05 11:22:14 2951

原创 MP4容器系列文章之STSD BOX

以下内容皆翻译自官方pdf,同时增加了自己的理解这篇文章讲述的是STSD BOX下的SampleEntry的编码格式8.16 Sample Description Box8.16.1 DefinitionBoxTypes: ‘stsd’Container: Sample Table Box (‘stbl’) Mandatory: YesQuantity: Exactly one8.16.2

2017-05-04 16:33:16 3342

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除