Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
19c0f9c2
Commit
19c0f9c2
authored
Jun 02, 2014
by
Pierre-Eric Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videostream: add pixconv filter iff encoder doesn't support source pixmt
parent
3db954bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
videostream.c
src/voip/videostream.c
+7
-1
No files found.
src/voip/videostream.c
View file @
19c0f9c2
...
...
@@ -316,6 +316,7 @@ static void configure_video_source(VideoStream *stream){
float
fps
=
15
;
MSPixFmt
format
;
MSVideoEncoderPixFmt
encoder_supports_source_format
;
int
ret
;
/* transmit orientation to source filter */
ms_filter_call_method
(
stream
->
source
,
MS_VIDEO_CAPTURE_SET_DEVICE_ORIENTATION
,
&
stream
->
device_orientation
);
...
...
@@ -361,7 +362,12 @@ static void configure_video_source(VideoStream *stream){
encoder_supports_source_format
.
supported
=
FALSE
;
encoder_supports_source_format
.
pixfmt
=
format
;
ms_filter_call_method
(
stream
->
ms
.
encoder
,
MS_VIDEO_ENCODER_SUPPORTS_PIXFMT
,
&
encoder_supports_source_format
);
ret
=
ms_filter_call_method
(
stream
->
ms
.
encoder
,
MS_VIDEO_ENCODER_SUPPORTS_PIXFMT
,
&
encoder_supports_source_format
);
if
(
ret
==
-
1
)
{
// Encoder doesn't have MS_VIDEO_ENCODER_SUPPORTS_PIXFMT method
encoder_supports_source_format
.
supported
=
(
format
==
MS_YUV420P
);
}
if
((
encoder_supports_source_format
.
supported
==
TRUE
)
||
(
stream
->
source_performs_encoding
==
TRUE
))
{
ms_filter_call_method
(
stream
->
ms
.
encoder
,
MS_FILTER_SET_PIX_FMT
,
&
format
);
...
...
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