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
59671506
Commit
59671506
authored
Dec 03, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Dec 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: add rotation support for opaque
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
daaa3c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/android_mediacodec.c
+21
-0
No files found.
modules/codec/omxil/android_mediacodec.c
View file @
59671506
...
...
@@ -506,6 +506,27 @@ static int OpenDecoder(vlc_object_t *p_this)
attached to the JNI. */
p_sys
->
direct_rendering
=
jni_IsVideoPlayerActivityCreated
()
&&
var_InheritBool
(
p_dec
,
CFG_PREFIX
"dr"
);
if
(
p_sys
->
direct_rendering
)
{
if
(
p_dec
->
fmt_in
.
video
.
orientation
!=
ORIENT_NORMAL
)
{
int
i_angle
;
switch
(
p_dec
->
fmt_in
.
video
.
orientation
)
{
case
ORIENT_ROTATED_90
:
i_angle
=
90
;
break
;
case
ORIENT_ROTATED_180
:
i_angle
=
180
;
break
;
case
ORIENT_ROTATED_270
:
i_angle
=
270
;
break
;
default:
i_angle
=
0
;
}
(
*
env
)
->
CallVoidMethod
(
env
,
format
,
p_sys
->
set_integer
,
(
*
env
)
->
NewStringUTF
(
env
,
"rotation-degrees"
),
i_angle
);
}
jobject
surf
=
jni_LockAndGetAndroidJavaSurface
();
if
(
surf
)
{
// Configure MediaCodec with the Android surface.
...
...
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