Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
58466462
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
58466462
编写于
9月 12, 2013
作者:
D
Dirk Farin
提交者:
Anton Khirnov
10月 31, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add raw HEVC demuxer
Signed-off-by:
N
Anton Khirnov
<
anton@khirnov.net
>
上级
e1c058db
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
69 addition
and
1 deletion
+69
-1
Changelog
Changelog
+1
-0
doc/general.texi
doc/general.texi
+1
-0
libavformat/Makefile
libavformat/Makefile
+1
-0
libavformat/allformats.c
libavformat/allformats.c
+1
-0
libavformat/hevcdec.c
libavformat/hevcdec.c
+64
-0
libavformat/version.h
libavformat/version.h
+1
-1
未找到文件。
Changelog
浏览文件 @
58466462
...
...
@@ -42,6 +42,7 @@ version 10:
- F4V muxer
- HNM version 4 demuxer and video decoder
- HEVC decoder
- raw HEVC demuxer
version 9:
...
...
doc/general.texi
浏览文件 @
58466462
...
...
@@ -272,6 +272,7 @@ library:
@item raw H.261 @tab X @tab X
@item raw H.263 @tab X @tab X
@item raw H.264 @tab X @tab X
@item raw HEVC @tab @tab X
@item raw Ingenient MJPEG @tab @tab X
@item raw MJPEG @tab X @tab X
@item raw MLP @tab @tab X
...
...
libavformat/Makefile
浏览文件 @
58466462
...
...
@@ -140,6 +140,7 @@ OBJS-$(CONFIG_H263_DEMUXER) += h263dec.o rawdec.o
OBJS-$(CONFIG_H263_MUXER)
+=
rawenc.o
OBJS-$(CONFIG_H264_DEMUXER)
+=
h264dec.o rawdec.o
OBJS-$(CONFIG_H264_MUXER)
+=
rawenc.o
OBJS-$(CONFIG_HEVC_DEMUXER)
+=
hevcdec.o rawdec.o
OBJS-$(CONFIG_HLS_DEMUXER)
+=
hls.o
OBJS-$(CONFIG_HLS_MUXER)
+=
hlsenc.o
OBJS-$(CONFIG_HNM_DEMUXER)
+=
hnm.o
...
...
libavformat/allformats.c
浏览文件 @
58466462
...
...
@@ -117,6 +117,7 @@ void av_register_all(void)
REGISTER_MUXDEMUX
(
H261
,
h261
);
REGISTER_MUXDEMUX
(
H263
,
h263
);
REGISTER_MUXDEMUX
(
H264
,
h264
);
REGISTER_DEMUXER
(
HEVC
,
hevc
);
REGISTER_MUXDEMUX
(
HLS
,
hls
);
REGISTER_DEMUXER
(
HNM
,
hnm
);
REGISTER_DEMUXER
(
IDCIN
,
idcin
);
...
...
libavformat/hevcdec.c
0 → 100644
浏览文件 @
58466462
/*
* RAW HEVC video demuxer
* Copyright (c) 2013 Dirk Farin <dirk.farin@gmail.com>
*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Libav is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with Libav; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "libavcodec/hevc.h"
#include "avformat.h"
#include "rawdec.h"
static
int
hevc_probe
(
AVProbeData
*
p
)
{
uint32_t
code
=
-
1
;
int
vps
=
0
,
sps
=
0
,
pps
=
0
,
irap
=
0
;
int
i
;
for
(
i
=
0
;
i
<
p
->
buf_size
-
1
;
i
++
)
{
code
=
(
code
<<
8
)
+
p
->
buf
[
i
];
if
((
code
&
0xffffff00
)
==
0x100
)
{
uint8_t
nal2
=
p
->
buf
[
i
+
1
];
int
type
=
(
code
&
0x7E
)
>>
1
;
if
(
code
&
0x81
)
// forbidden and reserved zero bits
return
0
;
if
(
nal2
&
0xf8
)
// reserved zero
return
0
;
switch
(
type
)
{
case
NAL_VPS
:
vps
++
;
break
;
case
NAL_SPS
:
sps
++
;
break
;
case
NAL_PPS
:
pps
++
;
break
;
case
NAL_BLA_N_LP
:
case
NAL_BLA_W_LP
:
case
NAL_BLA_W_RADL
:
case
NAL_CRA_NUT
:
case
NAL_IDR_N_LP
:
case
NAL_IDR_W_RADL
:
irap
++
;
break
;
}
}
}
if
(
vps
&&
sps
&&
pps
&&
irap
)
return
AVPROBE_SCORE_EXTENSION
+
1
;
// 1 more than .mpg
return
0
;
}
FF_DEF_RAWVIDEO_DEMUXER
(
hevc
,
"raw HEVC video"
,
hevc_probe
,
"hevc,h265,265"
,
AV_CODEC_ID_HEVC
)
libavformat/version.h
浏览文件 @
58466462
...
...
@@ -30,7 +30,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR
8
#define LIBAVFORMAT_VERSION_MINOR
9
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录