Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
749c8a91
Commit
749c8a91
authored
Nov 14, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 15, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
native_window: add setBuffersGeometry
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ecae18a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
modules/video_output/android/utils.c
modules/video_output/android/utils.c
+5
-1
modules/video_output/android/utils.h
modules/video_output/android/utils.h
+2
-0
No files found.
modules/video_output/android/utils.c
View file @
749c8a91
...
...
@@ -36,14 +36,18 @@ void *LoadNativeWindowAPI(native_window_api_t *native)
(
ptr_ANativeWindow_lock
)(
dlsym
(
p_library
,
"ANativeWindow_lock"
));
native
->
unlockAndPost
=
(
ptr_ANativeWindow_unlockAndPost
)(
dlsym
(
p_library
,
"ANativeWindow_unlockAndPost"
));
native
->
setBuffersGeometry
=
(
ptr_ANativeWindow_setBuffersGeometry
)(
dlsym
(
p_library
,
"ANativeWindow_setBuffersGeometry"
));
if
(
native
->
winFromSurface
&&
native
->
winRelease
&&
native
->
winLock
&&
native
->
unlockAndPost
)
if
(
native
->
winFromSurface
&&
native
->
winRelease
&&
native
->
winLock
&&
native
->
unlockAndPost
&&
native
->
setBuffersGeometry
)
return
p_library
;
native
->
winFromSurface
=
NULL
;
native
->
winRelease
=
NULL
;
native
->
winLock
=
NULL
;
native
->
unlockAndPost
=
NULL
;
native
->
setBuffersGeometry
=
NULL
;
dlclose
(
p_library
);
return
NULL
;
...
...
modules/video_output/android/utils.h
View file @
749c8a91
...
...
@@ -35,6 +35,7 @@ typedef ANativeWindow* (*ptr_ANativeWindow_fromSurface)(JNIEnv*, jobject);
typedef
void
(
*
ptr_ANativeWindow_release
)(
ANativeWindow
*
);
typedef
int32_t
(
*
ptr_ANativeWindow_lock
)(
ANativeWindow
*
,
ANativeWindow_Buffer
*
,
ARect
*
);
typedef
void
(
*
ptr_ANativeWindow_unlockAndPost
)(
ANativeWindow
*
);
typedef
int32_t
(
*
ptr_ANativeWindow_setBuffersGeometry
)(
ANativeWindow
*
,
int32_t
,
int32_t
,
int32_t
);
typedef
struct
{
...
...
@@ -42,6 +43,7 @@ typedef struct
ptr_ANativeWindow_release
winRelease
;
ptr_ANativeWindow_lock
winLock
;
ptr_ANativeWindow_unlockAndPost
unlockAndPost
;
ptr_ANativeWindow_setBuffersGeometry
setBuffersGeometry
;
}
native_window_api_t
;
/* Fill the structure passed as parameter and return a library handle
...
...
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