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
46814a09
Commit
46814a09
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
nativewindowpriv: add is_hw arg in setup
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
4c32c10f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
modules/codec/omxil/omxil.c
modules/codec/omxil/omxil.c
+1
-0
modules/video_output/android/nativewindowpriv.c
modules/video_output/android/nativewindowpriv.c
+6
-2
modules/video_output/android/utils.h
modules/video_output/android/utils.h
+1
-1
No files found.
modules/codec/omxil/omxil.c
View file @
46814a09
...
...
@@ -2223,6 +2223,7 @@ static int HwBuffer_AllocateBuffers( decoder_t *p_dec, OmxPort *p_port )
def
->
format
.
video
.
nFrameWidth
,
def
->
format
.
video
.
nFrameHeight
,
colorFormat
,
true
,
(
int
)
i_hw_usage
)
!=
0
)
{
msg_Err
(
p_dec
,
"can't setup OMXHWBuffer"
);
...
...
modules/video_output/android/nativewindowpriv.c
View file @
46814a09
...
...
@@ -27,6 +27,7 @@
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#if ANDROID_API <= 13
#include <ui/android_native_buffer.h>
...
...
@@ -113,7 +114,7 @@ int ANativeWindowPriv_disconnect( native_window_priv *priv )
return
0
;
}
int
ANativeWindowPriv_setup
(
native_window_priv
*
priv
,
int
w
,
int
h
,
int
hal_format
,
int
hw_usage
)
int
ANativeWindowPriv_setup
(
native_window_priv
*
priv
,
int
w
,
int
h
,
int
hal_format
,
bool
is_hw
,
int
hw_usage
)
{
int
usage
=
0
;
status_t
err
;
...
...
@@ -121,7 +122,10 @@ int ANativeWindowPriv_setup( native_window_priv *priv, int w, int h, int hal_for
LOGD
(
"setup: %p, %d, %d, %X, %X
\n
"
,
priv
->
anw
,
w
,
h
,
hal_format
,
hw_usage
);
usage
|=
hw_usage
|
GRALLOC_USAGE_HW_RENDER
|
GRALLOC_USAGE_HW_TEXTURE
;
if
(
is_hw
)
usage
=
hw_usage
|
GRALLOC_USAGE_HW_RENDER
|
GRALLOC_USAGE_HW_TEXTURE
;
else
usage
=
GRALLOC_USAGE_SW_READ_NEVER
|
GRALLOC_USAGE_SW_WRITE_OFTEN
;
#if ANDROID_API >= 11
usage
|=
GRALLOC_USAGE_EXTERNAL_DISP
;
#endif
...
...
modules/video_output/android/utils.h
View file @
46814a09
...
...
@@ -54,7 +54,7 @@ void Manage(vout_display_t *);
typedef
struct
native_window_priv
native_window_priv
;
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
,
int
);
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_setBufferCount
)
(
native_window_priv
*
,
unsigned
int
);
typedef
int
(
*
ptr_ANativeWindowPriv_setCrop
)
(
native_window_priv
*
,
int
,
int
,
int
,
int
);
...
...
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