Use int for FPS instead of size_t.
BUG= TBR=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1578005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4136 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a048d7cb0a
commit
4213633a4d
@ -41,9 +41,9 @@ size_t Height() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_int32(fps, 30, "Frames per second.");
|
DEFINE_int32(fps, 30, "Frames per second.");
|
||||||
size_t Fps() {
|
int Fps() {
|
||||||
assert(flags_are_init);
|
assert(flags_are_init);
|
||||||
return static_cast<size_t>(FLAGS_fps);
|
return static_cast<int>(FLAGS_fps);
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFINE_int32(min_bitrate, 50, "Minimum video bitrate.");
|
DEFINE_int32(min_bitrate, 50, "Minimum video bitrate.");
|
||||||
|
@ -21,7 +21,7 @@ void Init(int* argc, char ***argv);
|
|||||||
|
|
||||||
size_t Width();
|
size_t Width();
|
||||||
size_t Height();
|
size_t Height();
|
||||||
size_t Fps();
|
int Fps();
|
||||||
size_t MinBitrate();
|
size_t MinBitrate();
|
||||||
size_t StartBitrate();
|
size_t StartBitrate();
|
||||||
size_t MaxBitrate();
|
size_t MaxBitrate();
|
||||||
|
@ -32,7 +32,7 @@ VideoCapturer::VideoCapturer(newapi::VideoSendStreamInput* input)
|
|||||||
VideoCapturer* VideoCapturer::Create(newapi::VideoSendStreamInput* input,
|
VideoCapturer* VideoCapturer::Create(newapi::VideoSendStreamInput* input,
|
||||||
size_t width,
|
size_t width,
|
||||||
size_t height,
|
size_t height,
|
||||||
size_t fps,
|
int fps,
|
||||||
Clock* clock) {
|
Clock* clock) {
|
||||||
VcmCapturer* vcm_capturer = VcmCapturer::Create(input, width, height, fps);
|
VcmCapturer* vcm_capturer = VcmCapturer::Create(input, width, height, fps);
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ class VideoCapturer {
|
|||||||
static VideoCapturer* Create(newapi::VideoSendStreamInput* input,
|
static VideoCapturer* Create(newapi::VideoSendStreamInput* input,
|
||||||
size_t width,
|
size_t width,
|
||||||
size_t height,
|
size_t height,
|
||||||
size_t fps,
|
int fps,
|
||||||
Clock* clock);
|
Clock* clock);
|
||||||
virtual ~VideoCapturer() {}
|
virtual ~VideoCapturer() {}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user