Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
4bfff768
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,发现更多精彩内容 >>
提交
4bfff768
编写于
7月 28, 2006
作者:
B
Baptiste Coudurier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
declare and use UID type
Originally committed as revision 5836 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
7c87a2f0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
18 addition
and
14 deletion
+18
-14
libavformat/mxf.c
libavformat/mxf.c
+18
-14
未找到文件。
libavformat/mxf.c
浏览文件 @
4bfff768
...
...
@@ -43,17 +43,19 @@
#include "dsputil.h"
#include "riff.h"
typedef
DECLARE_ALIGNED_16
(
uint8_t
,
UID
[
16
]);
typedef
struct
{
AVStream
*
stream
;
uint8_t
track_uid
[
16
]
;
uint8_t
sequence_uid
[
16
]
;
UID
track_uid
;
UID
sequence_uid
;
int
track_id
;
int
track_number
;
}
MXFTrack
;
typedef
struct
{
DECLARE_ALIGNED_16
(
uint8_t
,
essence_container
[
16
])
;
DECLARE_ALIGNED_16
(
uint8_t
,
essence_compression
[
16
])
;
UID
essence_container
;
UID
essence_compression
;
enum
CodecType
codec_type
;
AVRational
sample_rate
;
AVRational
aspect_ratio
;
...
...
@@ -75,20 +77,22 @@ typedef struct {
}
MXFContext
;
typedef
struct
{
DECLARE_ALIGNED_16
(
uint8_t
,
key
[
16
])
;
UID
key
;
offset_t
offset
;
uint64_t
length
;
}
KLVPacket
;
static
const
uint8_t
mxf_metadata_source_package_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x37
,
0x00
};
static
const
uint8_t
mxf_metadata_sequence_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x0F
,
0x00
};
static
const
uint8_t
mxf_metadata_generic_sound_descriptor_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x42
,
0x00
};
static
const
uint8_t
mxf_metadata_cdci_descriptor_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x28
,
0x00
};
static
const
uint8_t
mxf_metadata_mpegvideo_descriptor_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x51
,
0x00
};
static
const
uint8_t
mxf_metadata_wave_descriptor_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x48
,
0x00
};
static
const
uint8_t
mxf_metadata_track_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x3b
,
0x00
};
static
const
uint8_t
mxf_header_partition_pack_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x05
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x02
,
0x01
,
0x01
,
0x02
};
static
const
uint8_t
mxf_essence_element_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x01
,
0x02
,
0x01
};
static
const
UID
mxf_metadata_source_package_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x37
,
0x00
};
static
const
UID
mxf_metadata_sequence_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x0F
,
0x00
};
static
const
UID
mxf_metadata_generic_sound_descriptor_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x42
,
0x00
};
static
const
UID
mxf_metadata_cdci_descriptor_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x28
,
0x00
};
static
const
UID
mxf_metadata_mpegvideo_descriptor_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x51
,
0x00
};
static
const
UID
mxf_metadata_wave_descriptor_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x48
,
0x00
};
static
const
UID
mxf_metadata_track_key
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x53
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x01
,
0x01
,
0x01
,
0x01
,
0x3b
,
0x00
};
/* partial keys to match */
static
const
uint8_t
mxf_header_partition_pack_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x02
,
0x05
,
0x01
,
0x01
,
0x0d
,
0x01
,
0x02
,
0x01
,
0x01
,
0x02
};
static
const
uint8_t
mxf_essence_element_key
[]
=
{
0x06
,
0x0e
,
0x2b
,
0x34
,
0x01
,
0x02
,
0x01
};
#define IS_KLV_KEY(x, y) (!memcmp(x, y, sizeof(y)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录