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
82f362ea
Commit
82f362ea
authored
Jan 03, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
androidsurface: simplify pitch calculation
parent
1ee58d84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
modules/video_output/androidsurface.c
modules/video_output/androidsurface.c
+2
-9
No files found.
modules/video_output/androidsurface.c
View file @
82f362ea
...
...
@@ -110,8 +110,6 @@ struct vout_display_sys_t {
picture_resource_t
resource
;
int
pixel_size
;
/* density */
int
i_sar_num
;
int
i_sar_den
;
...
...
@@ -215,12 +213,7 @@ static int Open(vlc_object_t *p_this) {
}
video_format_FixRgb
(
&
fmt
);
const
vlc_chroma_description_t
*
desc
=
vlc_fourcc_GetChromaDescription
(
fmt
.
i_chroma
);
if
(
unlikely
(
!
desc
))
return
VLC_EGENERIC
;
sys
->
pixel_size
=
desc
->
pixel_size
;
msg_Dbg
(
vd
,
"Pixel format %4.4s (%d bpp)"
,
(
char
*
)
&
fmt
.
i_chroma
,
sys
->
pixel_size
);
msg_Dbg
(
vd
,
"Pixel format %4.4s"
,
(
char
*
)
&
fmt
.
i_chroma
);
/* Create the associated picture */
picture_resource_t
*
rsc
=
&
sys
->
resource
;
...
...
@@ -355,7 +348,7 @@ static int AndroidLockSurface(picture_t *picture) {
picture
->
p
->
p_pixels
=
(
uint8_t
*
)
info
->
bits
;
picture
->
p
->
i_lines
=
info
->
h
;
picture
->
p
->
i_pitch
=
sys
->
pixel_size
*
info
->
s
;
picture
->
p
->
i_pitch
=
picture
->
p
->
i_pixel_pitch
*
info
->
s
;
if
(
info
->
format
==
0x32315659
/*ANDROID_IMAGE_FORMAT_YV12*/
)
SetupPictureYV12
(
info
,
picture
);
...
...
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