Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
69a83da5
Commit
69a83da5
authored
May 21, 2011
by
Kirill Gavrilov
Committed by
Michael Niedermayer
May 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroska: cosmetics
parent
8dd12b07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
25 deletions
+26
-25
matroska.h
libavformat/matroska.h
+17
-17
matroskaenc.c
libavformat/matroskaenc.c
+9
-8
No files found.
libavformat/matroska.h
View file @
69a83da5
...
...
@@ -77,8 +77,8 @@
#define MATROSKA_ID_TRACKNUMBER 0xD7
#define MATROSKA_ID_TRACKUID 0x73C5
#define MATROSKA_ID_TRACKTYPE 0x83
#define MATROSKA_ID_TRACK
AUDIO 0xE1
#define MATROSKA_ID_TRACK
VIDEO 0xE0
#define MATROSKA_ID_TRACK
VIDEO 0xE0
#define MATROSKA_ID_TRACK
AUDIO 0xE1
#define MATROSKA_ID_CODECID 0x86
#define MATROSKA_ID_CODECPRIVATE 0x63A2
#define MATROSKA_ID_CODECNAME 0x258688
...
...
@@ -219,21 +219,21 @@ typedef enum {
}
MatroskaTrackEncodingCompAlgo
;
typedef
enum
{
MATROSKA_VIDEO_STEREOMODE_
TYPE_
MONO
=
0
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
LEFT_RIGHT
=
1
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
BOTTOM_TOP
=
2
,
MATROSKA_VIDEO_STEREOMODE_T
YPE_T
OP_BOTTOM
=
3
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
CHECKERBOARD_RL
=
4
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
CHECKERBOARD_LR
=
5
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
ROW_INTERLEAVED_RL
=
6
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
ROW_INTERLEAVED_LR
=
7
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
COL_INTERLEAVED_RL
=
8
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
COL_INTERLEAVED_LR
=
9
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
ANAGLYPH_CYAN_RED
=
10
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
RIGHT_LEFT
=
11
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
ANAGLYPH_GREEN_MAG
=
12
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
BOTH_EYES_BLOCK_LR
=
13
,
MATROSKA_VIDEO_STEREOMODE_
TYPE_
BOTH_EYES_BLOCK_RL
=
14
,
MATROSKA_VIDEO_STEREOMODE_MONO
=
0
,
MATROSKA_VIDEO_STEREOMODE_LEFT_RIGHT
=
1
,
MATROSKA_VIDEO_STEREOMODE_BOTTOM_TOP
=
2
,
MATROSKA_VIDEO_STEREOMODE_TOP_BOTTOM
=
3
,
MATROSKA_VIDEO_STEREOMODE_CHECKERBOARD_RL
=
4
,
MATROSKA_VIDEO_STEREOMODE_CHECKERBOARD_LR
=
5
,
MATROSKA_VIDEO_STEREOMODE_ROW_INTERLEAVED_RL
=
6
,
MATROSKA_VIDEO_STEREOMODE_ROW_INTERLEAVED_LR
=
7
,
MATROSKA_VIDEO_STEREOMODE_COL_INTERLEAVED_RL
=
8
,
MATROSKA_VIDEO_STEREOMODE_COL_INTERLEAVED_LR
=
9
,
MATROSKA_VIDEO_STEREOMODE_ANAGLYPH_CYAN_RED
=
10
,
MATROSKA_VIDEO_STEREOMODE_RIGHT_LEFT
=
11
,
MATROSKA_VIDEO_STEREOMODE_ANAGLYPH_GREEN_MAG
=
12
,
MATROSKA_VIDEO_STEREOMODE_BOTH_EYES_BLOCK_LR
=
13
,
MATROSKA_VIDEO_STEREOMODE_BOTH_EYES_BLOCK_RL
=
14
,
}
MatroskaVideoStereoModeType
;
/*
...
...
libavformat/matroskaenc.c
View file @
69a83da5
...
...
@@ -591,20 +591,21 @@ static int mkv_write_tracks(AVFormatContext *s)
int
valid_fmt
=
0
;
switch
(
mkv
->
mode
)
{
case
MODE_WEBM
:
if
(
stereo_fmt
<=
MATROSKA_VIDEO_STEREOMODE_TYP
E_TOP_BOTTOM
||
stereo_fmt
==
MATROSKA_VIDEO_STEREOMODE_TYP
E_RIGHT_LEFT
)
case
MODE_WEBM
:
if
(
stereo_fmt
<=
MATROSKA_VIDEO_STEREOMOD
E_TOP_BOTTOM
||
stereo_fmt
==
MATROSKA_VIDEO_STEREOMOD
E_RIGHT_LEFT
)
valid_fmt
=
1
;
break
;
case
MODE_MATROSKAv2
:
if
(
stereo_fmt
<=
MATROSKA_VIDEO_STEREOMODE_TYP
E_BOTH_EYES_BLOCK_RL
)
valid_fmt
=
1
;
break
;
break
;
case
MODE_MATROSKAv2
:
if
(
stereo_fmt
<=
MATROSKA_VIDEO_STEREOMOD
E_BOTH_EYES_BLOCK_RL
)
valid_fmt
=
1
;
break
;
}
if
(
valid_fmt
)
put_ebml_uint
(
pb
,
MATROSKA_ID_VIDEOSTEREOMODE
,
stereo_fmt
);
}
if
(
st
->
sample_aspect_ratio
.
num
)
{
int
d_width
=
codec
->
width
*
av_q2d
(
st
->
sample_aspect_ratio
);
put_ebml_uint
(
pb
,
MATROSKA_ID_VIDEODISPLAYWIDTH
,
d_width
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment