Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
V
V8
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
V8
Commits
33d9964e
Commit
33d9964e
authored
Feb 02, 2023
by
Linshizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new builtin to MediaCodex.
parent
4aa5018c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
builtins-encoder.cc
src/builtins/builtins-encoder.cc
+1
-1
bootstrapper.cc
src/init/bootstrapper.cc
+2
-0
No files found.
src/builtins/builtins-encoder.cc
View file @
33d9964e
...
...
@@ -60,7 +60,7 @@ BUILTIN(InitEncodeContext) {
// Dynamic load encoder
if
(
!
loadedSyms
)
{
loadedSyms
=
dlopen
(
"libencoder.so"
,
RTLD_LAZY
);
loadedSyms
=
dlopen
(
"libencoder
s
.so"
,
RTLD_LAZY
);
if
(
!
loadedSyms
)
{
printf
(
"Failed to load libencoder.so"
);
THROW_NEW_ERROR_RETURN_FAILURE
(
...
...
src/init/bootstrapper.cc
View file @
33d9964e
...
...
@@ -2806,6 +2806,8 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
Builtin
::
kSave
,
2
,
true
);
SimpleInstallFunction
(
isolate_
,
mp4
,
"addAudioBuffer"
,
Builtin
::
kAddAudioBuffer
,
9
,
true
);
SimpleInstallFunction
(
isolate_
,
mp4
,
"addAudioURL"
,
Builtin
::
kAddAudioURL
,
9
,
true
);
SimpleInstallFunction
(
isolate_
,
mp4
,
"mergeMP4"
,
Builtin
::
kMergeMP4
,
2
,
true
);
SimpleInstallFunction
(
isolate_
,
mp4
,
"applyAudioEffects"
,
...
...
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