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
4bb9b344
Commit
4bb9b344
authored
Nov 19, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nativewindowpriv: add getMaxBufferCount
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
80bd0c5d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
modules/video_output/android/nativewindowpriv.c
modules/video_output/android/nativewindowpriv.c
+10
-0
modules/video_output/android/utils.c
modules/video_output/android/utils.c
+3
-1
modules/video_output/android/utils.h
modules/video_output/android/utils.h
+2
-0
No files found.
modules/video_output/android/nativewindowpriv.c
View file @
4bb9b344
...
...
@@ -184,6 +184,16 @@ int ANativeWindowPriv_getMinUndequeued( native_window_priv *priv, unsigned int *
return
0
;
}
int
ANativeWindowPriv_getMaxBufferCount
(
native_window_priv
*
priv
,
unsigned
int
*
max_buffer_count
)
{
#if ANDROID_API >= 14
*
max_buffer_count
=
32
;
#else
*
max_buffer_count
=
15
;
#endif
return
0
;
}
int
ANativeWindowPriv_setBufferCount
(
native_window_priv
*
priv
,
unsigned
int
count
)
{
status_t
err
;
...
...
modules/video_output/android/utils.c
View file @
4bb9b344
...
...
@@ -59,6 +59,7 @@ int LoadNativeWindowPrivAPI(native_window_priv_api_t *native)
native
->
disconnect
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_disconnect"
);
native
->
setup
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_setup"
);
native
->
getMinUndequeued
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_getMinUndequeued"
);
native
->
getMaxBufferCount
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_getMaxBufferCount"
);
native
->
setBufferCount
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_setBufferCount"
);
native
->
setCrop
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_setCrop"
);
native
->
dequeue
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_dequeue"
);
...
...
@@ -70,7 +71,8 @@ int LoadNativeWindowPrivAPI(native_window_priv_api_t *native)
native
->
setOrientation
=
dlsym
(
RTLD_DEFAULT
,
"ANativeWindowPriv_setOrientation"
);
return
native
->
connect
&&
native
->
disconnect
&&
native
->
setup
&&
native
->
getMinUndequeued
&&
native
->
setBufferCount
&&
native
->
setCrop
&&
native
->
getMinUndequeued
&&
native
->
getMaxBufferCount
&&
native
->
setBufferCount
&&
native
->
setCrop
&&
native
->
dequeue
&&
native
->
lock
&&
native
->
lockData
&&
native
->
unlockData
&&
native
->
queue
&&
native
->
cancel
&&
native
->
setOrientation
?
0
:
-
1
;
}
...
...
modules/video_output/android/utils.h
View file @
4bb9b344
...
...
@@ -75,6 +75,7 @@ typedef native_window_priv *(*ptr_ANativeWindowPriv_connect) (void *);
typedef
int
(
*
ptr_ANativeWindowPriv_disconnect
)
(
native_window_priv
*
);
typedef
int
(
*
ptr_ANativeWindowPriv_setup
)
(
native_window_priv
*
,
int
,
int
,
int
,
bool
,
int
);
typedef
int
(
*
ptr_ANativeWindowPriv_getMinUndequeued
)
(
native_window_priv
*
,
unsigned
int
*
);
typedef
int
(
*
ptr_ANativeWindowPriv_getMaxBufferCount
)
(
native_window_priv
*
,
unsigned
int
*
);
typedef
int
(
*
ptr_ANativeWindowPriv_setBufferCount
)
(
native_window_priv
*
,
unsigned
int
);
typedef
int
(
*
ptr_ANativeWindowPriv_setCrop
)
(
native_window_priv
*
,
int
,
int
,
int
,
int
);
typedef
int
(
*
ptr_ANativeWindowPriv_dequeue
)
(
native_window_priv
*
,
void
**
);
...
...
@@ -91,6 +92,7 @@ typedef struct
ptr_ANativeWindowPriv_disconnect
disconnect
;
ptr_ANativeWindowPriv_setup
setup
;
ptr_ANativeWindowPriv_getMinUndequeued
getMinUndequeued
;
ptr_ANativeWindowPriv_getMaxBufferCount
getMaxBufferCount
;
ptr_ANativeWindowPriv_setBufferCount
setBufferCount
;
ptr_ANativeWindowPriv_setCrop
setCrop
;
ptr_ANativeWindowPriv_dequeue
dequeue
;
...
...
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