Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
70a07d21
Commit
70a07d21
authored
Apr 19, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: initial support for GPRM and SPRM DVD registers
parent
ad0a1ed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
1 deletion
+53
-1
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+53
-1
No files found.
modules/demux/mkv.cpp
View file @
70a07d21
...
...
@@ -350,12 +350,64 @@ protected:
class
dvd_command_interpretor_c
{
dvd_command_interpretor_c
()
{
memset
(
p_GPRM
,
0
,
sizeof
(
p_GPRM
)
*
2
);
memset
(
p_SPRM
,
0
,
sizeof
(
p_SPRM
)
*
2
);
p_SPRM
[
1
]
=
15
;
p_SPRM
[
2
]
=
62
;
p_SPRM
[
3
]
=
1
;
p_SPRM
[
4
]
=
1
;
p_SPRM
[
7
]
=
1
;
p_SPRM
[
8
]
=
1
;
p_SPRM
[
16
]
=
0xFFFFu
;
p_SPRM
[
18
]
=
0xFFFFu
;
}
protected:
uint16
GetGPRM
(
size_t
index
)
const
{
if
(
index
>=
0
&&
index
<
16
)
return
p_GPRM
[
index
];
else
return
0
;
}
uint16
GetSPRM
(
size_t
index
)
const
{
// 21,22,23 reserved for future use
if
(
index
>=
0
&&
index
<
21
)
return
p_SPRM
[
index
];
else
return
0
;
}
bool
SetGPRM
(
size_t
index
,
uint16
value
)
{
if
(
index
>=
0
&&
index
<
16
)
{
p_GPRM
[
index
]
=
value
;
return
true
;
}
return
false
;
}
bool
SetSPRM
(
size_t
index
,
uint16
value
);
{
if
(
index
>
0
&&
index
<=
13
&&
index
!=
12
)
{
p_SPRM
[
index
]
=
value
;
return
true
;
}
return
false
;
}
uint16
p_GPRM
[
16
];
uint16
p_SPRM
[
24
];
};
class
dvd_chapter_codec_c
:
public
chapter_codec_cmds_c
{
protected:
static
dvd_command_interpretor_c
interpret
e
r
;
static
dvd_command_interpretor_c
interpret
o
r
;
};
class
matroska_script_codec_c
:
public
chapter_codec_cmds_c
...
...
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