Fixed implicit-int-conversion bugs.
BUG= R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1776004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4313 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
cab716cc7d
commit
f3f1358360
@ -33,7 +33,8 @@ YuvFileFrameGenerator::YuvFileFrameGenerator(FILE* file,
|
|||||||
size_t height,
|
size_t height,
|
||||||
Clock* clock)
|
Clock* clock)
|
||||||
: FrameGenerator(width, height, clock), file_(file) {
|
: FrameGenerator(width, height, clock), file_(file) {
|
||||||
frame_size_ = CalcBufferSize(kI420, width_, height_);
|
frame_size_ = CalcBufferSize(
|
||||||
|
kI420, static_cast<int>(width_), static_cast<int>(height_));
|
||||||
frame_buffer_ = new uint8_t[frame_size_];
|
frame_buffer_ = new uint8_t[frame_size_];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,8 +50,15 @@ void YuvFileFrameGenerator::GenerateNextFrame() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvertToI420(kI420, frame_buffer_, 0, 0, width_, height_, frame_size_,
|
ConvertToI420(kI420,
|
||||||
kRotateNone, &frame_);
|
frame_buffer_,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
static_cast<int>(width_),
|
||||||
|
static_cast<int>(height_),
|
||||||
|
0,
|
||||||
|
kRotateNone,
|
||||||
|
&frame_);
|
||||||
}
|
}
|
||||||
} // namespace test
|
} // namespace test
|
||||||
} // namespace webrtc
|
} // namespace webrtc
|
||||||
|
@ -39,9 +39,10 @@ struct FullStackTestParams {
|
|||||||
const char* test_label;
|
const char* test_label;
|
||||||
struct {
|
struct {
|
||||||
const char* name;
|
const char* name;
|
||||||
size_t width, height, fps;
|
size_t width, height;
|
||||||
|
int fps;
|
||||||
} clip;
|
} clip;
|
||||||
size_t bitrate;
|
unsigned int bitrate;
|
||||||
double avg_psnr_threshold;
|
double avg_psnr_threshold;
|
||||||
double avg_ssim_threshold;
|
double avg_ssim_threshold;
|
||||||
};
|
};
|
||||||
@ -274,13 +275,14 @@ TEST_P(FullStackTest, NoPacketLoss) {
|
|||||||
newapi::VideoEngine::Create(newapi::VideoEngineConfig()));
|
newapi::VideoEngine::Create(newapi::VideoEngineConfig()));
|
||||||
|
|
||||||
test::DirectTransport transport(NULL);
|
test::DirectTransport transport(NULL);
|
||||||
VideoAnalyzer analyzer(NULL,
|
VideoAnalyzer analyzer(
|
||||||
|
NULL,
|
||||||
&transport,
|
&transport,
|
||||||
loopback_video.get(),
|
loopback_video.get(),
|
||||||
params.test_label,
|
params.test_label,
|
||||||
params.avg_psnr_threshold,
|
params.avg_psnr_threshold,
|
||||||
params.avg_ssim_threshold,
|
params.avg_ssim_threshold,
|
||||||
FLAGS_seconds * params.clip.fps);
|
static_cast<uint64_t>(FLAGS_seconds * params.clip.fps));
|
||||||
|
|
||||||
scoped_ptr<newapi::VideoCall> call(video_engine->CreateCall(&analyzer));
|
scoped_ptr<newapi::VideoCall> call(video_engine->CreateCall(&analyzer));
|
||||||
analyzer.receiver_ = call->Receiver();
|
analyzer.receiver_ = call->Receiver();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user