Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a50f7517
Commit
a50f7517
authored
Feb 06, 2014
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mediacodec: Use the input aspect ratio when sizing the direct rendering surface
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
a1816254
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/codec/omxil/android_mediacodec.c
modules/codec/omxil/android_mediacodec.c
+8
-3
No files found.
modules/codec/omxil/android_mediacodec.c
View file @
a50f7517
...
...
@@ -619,9 +619,14 @@ static void GetOutput(decoder_t *p_dec, JNIEnv *env, picture_t **pp_pic)
int
crop_bottom
=
GET_INTEGER
(
format
,
"crop-bottom"
);
const
char
*
name
=
"unknown"
;
if
(
p_sys
->
direct_rendering
)
jni_SetAndroidSurfaceSizeEnv
(
env
,
width
,
height
,
width
,
height
,
1
,
1
);
else
if
(
p_sys
->
direct_rendering
)
{
int
sar_num
=
1
,
sar_den
=
1
;
if
(
p_dec
->
fmt_in
.
video
.
i_sar_num
!=
0
&&
p_dec
->
fmt_in
.
video
.
i_sar_den
!=
0
)
{
sar_num
=
p_dec
->
fmt_in
.
video
.
i_sar_num
;
sar_den
=
p_dec
->
fmt_in
.
video
.
i_sar_den
;
}
jni_SetAndroidSurfaceSizeEnv
(
env
,
width
,
height
,
width
,
height
,
sar_num
,
sar_den
);
}
else
GetVlcChromaFormat
(
p_sys
->
pixel_format
,
&
p_dec
->
fmt_out
.
i_codec
,
&
name
);
msg_Dbg
(
p_dec
,
"output: %d %s, %dx%d stride %d %d, crop %d %d %d %d"
,
...
...
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