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
49dba5c2
Commit
49dba5c2
authored
Mar 08, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues with the VLC rawvid demux and bump it's priority.
parent
ab620e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
modules/demux/rawvid.c
modules/demux/rawvid.c
+21
-17
No files found.
modules/demux/rawvid.c
View file @
49dba5c2
...
...
@@ -62,7 +62,7 @@ static void Close( vlc_object_t * );
vlc_module_begin
();
set_shortname
(
"Raw Video"
);
set_description
(
_
(
"Raw video demuxer"
)
);
set_capability
(
"demux2"
,
3
);
set_capability
(
"demux2"
,
10
);
set_category
(
CAT_INPUT
);
set_subcategory
(
SUBCAT_INPUT_DEMUX
);
set_callbacks
(
Open
,
Close
);
...
...
@@ -184,13 +184,13 @@ static int Open( vlc_object_t * p_this )
/* TODO: handle interlacing */
#define READ_FRAC( key, num, den ) \
buf = str
ch
r( psz+9, key );\
buf = str
st
r( psz+9, key );\
if( buf )\
{\
char *end = strchr( buf, ' ' );\
char *end = strchr( buf
+1
, ' ' );\
char *sep;\
if( end ) *end = '\0';\
sep = strchr( buf, ':' );\
sep = strchr( buf
+1
, ':' );\
if( sep )\
{\
*sep = '\0';\
...
...
@@ -200,43 +200,47 @@ static int Open( vlc_object_t * p_this )
{\
den = 1;\
}\
num = atoi( buf+
1
);\
num = atoi( buf+
2
);\
if( sep ) *sep = ':';\
if( end ) *end = ' ';\
}
READ_FRAC
(
'W'
,
i_width
,
a
)
READ_FRAC
(
'H'
,
i_height
,
a
)
READ_FRAC
(
'F'
,
a
,
b
)
READ_FRAC
(
" W"
,
i_width
,
a
)
READ_FRAC
(
" H"
,
i_height
,
a
)
READ_FRAC
(
" F"
,
a
,
b
)
p_sys
->
f_fps
=
(
double
)
a
/
(
double
)
b
;
READ_FRAC
(
'A'
,
a
,
b
)
READ_FRAC
(
" A"
,
a
,
b
)
if
(
b
!=
0
)
i_aspect
=
a
*
VOUT_ASPECT_FACTOR
/
b
;
buf
=
str
chr
(
psz
+
9
,
'C'
);
buf
=
str
str
(
psz
+
9
,
" C"
);
if
(
buf
)
{
char
*
end
=
strchr
(
buf
,
' '
);
char
*
end
=
strchr
(
buf
+
1
,
' '
);
if
(
end
)
*
end
=
'\0'
;
buf
+
+
;
if
(
!
strncmp
(
buf
,
"
C420jpeg"
,
8
)
)
buf
+
=
2
;
if
(
!
strncmp
(
buf
,
"
420jpeg"
,
7
)
)
{
psz_chroma
=
strdup
(
"I420"
);
}
else
if
(
!
strncmp
(
buf
,
"
C420paldv"
,
9
)
)
else
if
(
!
strncmp
(
buf
,
"
420paldv"
,
8
)
)
{
psz_chroma
=
strdup
(
"I420"
);
}
else
if
(
!
strncmp
(
buf
,
"
C420"
,
4
)
)
else
if
(
!
strncmp
(
buf
,
"
420"
,
3
)
)
{
psz_chroma
=
strdup
(
"I420"
);
}
else
if
(
!
strncmp
(
buf
,
"
C422"
,
4
)
)
else
if
(
!
strncmp
(
buf
,
"
422"
,
3
)
)
{
psz_chroma
=
strdup
(
"I422"
);
}
else
if
(
!
strncmp
(
buf
,
"
C444"
,
4
)
)
else
if
(
!
strncmp
(
buf
,
"
444"
,
3
)
)
{
psz_chroma
=
strdup
(
"I444"
);
}
else
if
(
!
strncmp
(
buf
,
"mono"
,
3
)
)
{
psz_chroma
=
strdup
(
"GREY"
);
}
else
{
msg_Warn
(
p_demux
,
"Unknown YUV4MPEG2 chroma type
\"
%s
\"
"
,
...
...
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