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
570f1d43
Commit
570f1d43
authored
Oct 31, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/demux.c: added raw video support.
parent
79aa3c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
modules/codec/ffmpeg/demux.c
modules/codec/ffmpeg/demux.c
+48
-0
No files found.
modules/codec/ffmpeg/demux.c
View file @
570f1d43
...
...
@@ -191,8 +191,56 @@ int E_(OpenDemux)( vlc_object_t *p_this )
vlc_fourcc_t
fcc
;
if
(
!
E_
(
GetVlcFourcc
)(
cc
->
codec_id
,
NULL
,
&
fcc
,
NULL
)
)
{
fcc
=
VLC_FOURCC
(
'u'
,
'n'
,
'd'
,
'f'
);
/* Special case for raw video data */
if
(
cc
->
codec_id
==
CODEC_ID_RAWVIDEO
)
{
msg_Dbg
(
p_demux
,
"raw video, pixel format: %i"
,
cc
->
pix_fmt
);
switch
(
cc
->
pix_fmt
)
{
case
PIX_FMT_YUV444P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'4'
,
'4'
);
break
;
case
PIX_FMT_YUV422P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'2'
);
break
;
case
PIX_FMT_YUV420P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
break
;
case
PIX_FMT_YUV411P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'1'
,
'1'
);
break
;
case
PIX_FMT_YUV410P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'1'
,
'0'
);
break
;
case
PIX_FMT_YUV422
:
fcc
=
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
);
break
;
case
PIX_FMT_RGB555
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
);
break
;
case
PIX_FMT_RGB565
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
);
break
;
case
PIX_FMT_RGB24
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
);
break
;
case
PIX_FMT_RGBA32
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
);
break
;
case
PIX_FMT_GRAY8
:
fcc
=
VLC_FOURCC
(
'G'
,
'R'
,
'E'
,
'Y'
);
break
;
default:
break
;
}
}
}
switch
(
cc
->
codec_type
)
{
case
CODEC_TYPE_AUDIO
:
...
...
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