Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
ab1690f4
Commit
ab1690f4
authored
Feb 04, 2010
by
Aymeric Moizard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.linphone.org:mediastreamer2
parents
3ae3a469
8dae09b1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
acinclude.m4
acinclude.m4
+1
-1
plugins/msx264/src/msx264.c
plugins/msx264/src/msx264.c
+8
-2
src/nowebcam.c
src/nowebcam.c
+6
-2
tests/mediastream.c
tests/mediastream.c
+2
-2
No files found.
acinclude.m4
View file @
ab1690f4
...
...
@@ -165,7 +165,7 @@ AC_DEFUN([MS_CHECK_VIDEO],[
fi
if test "$mingw_found" = "yes" ; then
VIDEO_LIBS="$VIDEO_LIBS -lvfw32"
VIDEO_LIBS="$VIDEO_LIBS -lvfw32
-lgdi32
"
fi
case $target_os in
...
...
plugins/msx264/src/msx264.c
View file @
ab1690f4
...
...
@@ -98,8 +98,14 @@ static void enc_preprocess(MSFilter *f){
params.i_keyint_min = (int)d->fps;
*/
params
.
b_repeat_headers
=
1
;
params
.
b_cabac
=
0
;
//disable cabac to be baseline
params
.
i_bframe
=
0
;
/*no B frames*/
//these parameters must be set so that our stream is baseline
params
.
analyse
.
b_transform_8x8
=
0
;
params
.
b_cabac
=
0
;
params
.
i_cqm_preset
=
X264_CQM_FLAT
;
params
.
i_bframe
=
0
;
params
.
analyse
.
i_weighted_pred
=
X264_WEIGHTP_NONE
;
d
->
enc
=
x264_encoder_open
(
&
params
);
if
(
d
->
enc
==
NULL
)
ms_error
(
"Fail to create x264 encoder."
);
d
->
framenum
=
0
;
...
...
src/nowebcam.c
View file @
ab1690f4
...
...
@@ -1589,6 +1589,7 @@ mblk_t *ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize){
mblk_t
*
m
=
NULL
;
struct
stat
statbuf
;
uint8_t
*
jpgbuf
;
int
err
;
#if !defined(_MSC_VER)
int
fd
=
open
(
jpgpath
,
O_RDONLY
);
#else
...
...
@@ -1620,10 +1621,13 @@ mblk_t *ms_load_jpeg_as_yuv(const char *jpgpath, MSVideoSize *reqsize){
return
m
;
}
#if !defined(_MSC_VER)
read
(
fd
,
jpgbuf
,
statbuf
.
st_size
);
err
=
read
(
fd
,
jpgbuf
,
statbuf
.
st_size
);
#else
_read
(
fd
,
jpgbuf
,
statbuf
.
st_size
);
err
=
_read
(
fd
,
jpgbuf
,
statbuf
.
st_size
);
#endif
if
(
err
!=
statbuf
.
st_size
){
ms_error
(
"Could not read as much as wanted !"
);
}
m
=
jpeg2yuv
(
jpgbuf
,
statbuf
.
st_size
,
reqsize
);
ms_free
(
jpgbuf
);
if
(
m
==
NULL
)
...
...
tests/mediastream.c
View file @
ab1690f4
...
...
@@ -175,7 +175,7 @@ int main(int argc, char * argv[])
vs
.
width
=
MS_VIDEO_SIZE_CIF_W
;
vs
.
height
=
MS_VIDEO_SIZE_CIF_H
;
if
(
argc
<
4
)
{
printf
(
usage
);
printf
(
"%s"
,
usage
);
return
-
1
;
}
for
(
i
=
1
;
i
<
argc
;
i
++
){
...
...
@@ -185,7 +185,7 @@ int main(int argc, char * argv[])
}
else
if
(
strcmp
(
argv
[
i
],
"--remote"
)
==
0
){
i
++
;
if
(
!
parse_addr
(
argv
[
i
],
ip
,
sizeof
(
ip
),
&
remoteport
))
{
printf
(
usage
);
printf
(
"%s"
,
usage
);
return
-
1
;
}
printf
(
"Remote addr: ip=%s port=%i
\n
"
,
ip
,
remoteport
);
...
...
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