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
eb7856b7
Commit
eb7856b7
authored
May 31, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core.
parent
39eef2d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+18
-0
src/video_output/vout_pictures.h
src/video_output/vout_pictures.h
+2
-0
No files found.
src/video_output/vout_pictures.c
View file @
eb7856b7
...
@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
...
@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
break
;
break
;
case
FOURCC_GREY
:
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
p_format
->
i_bits_per_pixel
=
8
;
p_format
->
i_bits_per_pixel
=
8
;
break
;
break
;
...
@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
...
@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
break
;
case
FOURCC_GREY
:
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
p_pic
->
p
->
i_lines
=
i_height_aligned
;
p_pic
->
p
->
i_lines
=
i_height_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
...
@@ -911,6 +915,20 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
...
@@ -911,6 +915,20 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
return
0
;
return
0
;
}
}
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
switch
(
i_amorhc
)
{
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
return
1
;
default:
return
0
;
}
default:
default:
return
0
;
return
0
;
}
}
...
...
src/video_output/vout_pictures.h
View file @
eb7856b7
...
@@ -102,6 +102,8 @@
...
@@ -102,6 +102,8 @@
/* Planar 8-bit grayscale */
/* Planar 8-bit grayscale */
#define FOURCC_GREY VLC_FOURCC('G','R','E','Y')
#define FOURCC_GREY VLC_FOURCC('G','R','E','Y')
#define FOURCC_Y800 VLC_FOURCC('Y','8','0','0')
#define FOURCC_Y8 VLC_FOURCC('Y','8',' ',' ')
/* Alignment of critical dynamic data structure
/* Alignment of critical dynamic data structure
*
*
...
...
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