Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5d6c8b4b
Commit
5d6c8b4b
authored
Aug 28, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/vout_pictures.c: oups, inverted i_visible_lines and i_lines.
parent
56b5483c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
54 deletions
+54
-54
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+54
-54
No files found.
src/video_output/vout_pictures.c
View file @
5d6c8b4b
...
...
@@ -653,16 +653,16 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
switch
(
i_chroma
)
{
case
FOURCC_I411
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
/
4
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
/
4
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
/
4
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
/
4
;
p_pic
->
i_planes
=
3
;
...
...
@@ -670,16 +670,16 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
case
FOURCC_I410
:
case
FOURCC_YVU9
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
/
4
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
/
4
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
/
4
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
/
4
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
/
4
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
/
4
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
/
4
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
/
4
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
/
4
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
/
4
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
/
4
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
/
4
;
p_pic
->
i_planes
=
3
;
...
...
@@ -688,76 +688,76 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
case
FOURCC_YV12
:
case
FOURCC_I420
:
case
FOURCC_IYUV
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
/
2
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
/
2
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
/
2
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
/
2
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
/
2
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
/
2
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
/
2
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
/
2
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
/
2
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
/
2
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
/
2
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
/
2
;
p_pic
->
i_planes
=
3
;
break
;
case
FOURCC_I422
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
/
2
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
/
2
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
/
2
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
/
2
;
p_pic
->
i_planes
=
3
;
break
;
case
FOURCC_I444
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
i_planes
=
3
;
break
;
case
FOURCC_YUVA
:
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
Y_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
Y_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
U_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
U_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
V_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
V_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
p
[
A_PLANE
].
i_lines
=
i_height
;
p_pic
->
p
[
A_PLANE
].
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
[
A_PLANE
].
i_lines
=
i_height
_aligned
;
p_pic
->
p
[
A_PLANE
].
i_visible_lines
=
i_height
;
p_pic
->
p
[
A_PLANE
].
i_pitch
=
i_width_aligned
;
p_pic
->
p
[
A_PLANE
].
i_visible_pitch
=
i_width
;
p_pic
->
i_planes
=
4
;
break
;
case
FOURCC_YUVP
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
p_pic
->
p
->
i_visible_pitch
=
i_width
;
p_pic
->
p
->
i_pixel_pitch
=
8
;
...
...
@@ -765,8 +765,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_Y211
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
p_pic
->
p
->
i_visible_pitch
=
i_width
;
p_pic
->
p
->
i_pixel_pitch
=
4
;
...
...
@@ -775,8 +775,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
case
FOURCC_UYVY
:
case
FOURCC_YUY2
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
*
2
;
p_pic
->
p
->
i_visible_pitch
=
i_width
*
2
;
p_pic
->
p
->
i_pixel_pitch
=
4
;
...
...
@@ -784,8 +784,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_RGB2
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
p_pic
->
p
->
i_visible_pitch
=
i_width
;
p_pic
->
p
->
i_pixel_pitch
=
1
;
...
...
@@ -793,8 +793,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_RV15
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
*
2
;
p_pic
->
p
->
i_visible_pitch
=
i_width
*
2
;
p_pic
->
p
->
i_pixel_pitch
=
2
;
...
...
@@ -802,8 +802,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_RV16
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
*
2
;
p_pic
->
p
->
i_visible_pitch
=
i_width
*
2
;
p_pic
->
p
->
i_pixel_pitch
=
2
;
...
...
@@ -811,8 +811,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_RV24
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
*
3
;
p_pic
->
p
->
i_visible_pitch
=
i_width
*
3
;
p_pic
->
p
->
i_pixel_pitch
=
3
;
...
...
@@ -820,8 +820,8 @@ void vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_RV32
:
p_pic
->
p
->
i_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_lines
=
i_height
_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
*
4
;
p_pic
->
p
->
i_visible_pitch
=
i_width
*
4
;
p_pic
->
p
->
i_pixel_pitch
=
4
;
...
...
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