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
327323e2
Commit
327323e2
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
android: rename jni_SetAndroidSurfaceSize
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
c9640234
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/video_output/android/nativewindow.c
modules/video_output/android/nativewindow.c
+3
-3
modules/video_output/android/surface.c
modules/video_output/android/surface.c
+2
-2
No files found.
modules/video_output/android/nativewindow.c
View file @
327323e2
...
...
@@ -42,7 +42,7 @@ extern int jni_attach_thread(JNIEnv **env, const char *thread_name);
extern
void
jni_detach_thread
();
extern
jobject
jni_LockAndGetAndroidJavaSurface
();
extern
void
jni_UnlockAndroidSurface
();
extern
void
jni_Set
AndroidSurfaceSize
(
int
width
,
int
height
,
int
visible_width
,
int
visible_height
,
int
sar_num
,
int
sar_den
);
extern
void
jni_Set
SurfaceLayout
(
int
width
,
int
height
,
int
visible_width
,
int
visible_height
,
int
sar_num
,
int
sar_den
);
static
int
Open
(
vout_window_t
*
,
const
vout_window_cfg_t
*
);
static
void
Close
(
vout_window_t
*
);
...
...
@@ -110,7 +110,7 @@ static int Open(vout_window_t *wnd, const vout_window_cfg_t *cfg)
wnd
->
sys
=
p_sys
;
// Set the Java surface size.
jni_Set
AndroidSurfaceSize
(
cfg
->
width
,
cfg
->
height
,
cfg
->
width
,
cfg
->
height
,
1
,
1
);
jni_Set
SurfaceLayout
(
cfg
->
width
,
cfg
->
height
,
cfg
->
width
,
cfg
->
height
,
1
,
1
);
return
VLC_SUCCESS
;
...
...
@@ -144,7 +144,7 @@ static int Control(vout_window_t *wnd, int cmd, va_list ap)
{
unsigned
width
=
va_arg
(
ap
,
unsigned
);
unsigned
height
=
va_arg
(
ap
,
unsigned
);
jni_Set
AndroidSurfaceSize
(
width
,
height
,
width
,
height
,
1
,
1
);
jni_Set
SurfaceLayout
(
width
,
height
,
width
,
height
,
1
,
1
);
break
;
}
case
VOUT_WINDOW_SET_STATE
:
...
...
modules/video_output/android/surface.c
View file @
327323e2
...
...
@@ -79,7 +79,7 @@ extern void jni_detach_thread();
extern
void
*
jni_LockAndGetAndroidSurface
();
extern
jobject
jni_LockAndGetAndroidJavaSurface
();
extern
void
jni_UnlockAndroidSurface
();
extern
void
jni_Set
AndroidSurfaceSize
(
int
width
,
int
height
,
int
visible_width
,
int
visible_height
,
int
sar_num
,
int
sar_den
);
extern
void
jni_Set
SurfaceLayout
(
int
width
,
int
height
,
int
visible_width
,
int
visible_height
,
int
sar_num
,
int
sar_den
);
// _ZN7android7Surface4lockEPNS0_11SurfaceInfoEb
typedef
void
(
*
Surface_lock
)(
void
*
,
void
*
,
int
);
...
...
@@ -413,7 +413,7 @@ static int AndroidLockSurface(picture_t *picture)
if
(
info
->
w
!=
aligned_width
||
info
->
h
!=
sh
||
sys
->
b_changed_crop
)
{
// input size doesn't match the surface size -> request a resize
jni_Set
AndroidSurfaceSize
(
aligned_width
,
sh
,
sys
->
fmt
.
i_visible_width
,
sys
->
fmt
.
i_visible_height
,
sys
->
i_sar_num
,
sys
->
i_sar_den
);
jni_Set
SurfaceLayout
(
aligned_width
,
sh
,
sys
->
fmt
.
i_visible_width
,
sys
->
fmt
.
i_visible_height
,
sys
->
i_sar_num
,
sys
->
i_sar_den
);
// When using ANativeWindow, one should use ANativeWindow_setBuffersGeometry
// to set the size and format. In our case, these are set via the SurfaceHolder
// in Java, so we seem to manage without calling this ANativeWindow function.
...
...
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