Home
last modified time | relevance | path

Searched refs:input_file_ (Results 1 – 16 of 16) sorted by relevance

/external/webrtc/webrtc/test/testsupport/
Dframe_reader.cc24 input_file_(NULL) { in FrameReaderImpl()
37 input_file_ = fopen(input_filename_.c_str(), "rb"); in Init()
38 if (input_file_ == NULL) { in Init()
55 if (input_file_ != NULL) { in Close()
56 fclose(input_file_); in Close()
57 input_file_ = NULL; in Close()
63 if (input_file_ == NULL) { in ReadFrame()
68 input_file_); in ReadFrame()
70 ferror(input_file_)) { in ReadFrame()
75 if (feof(input_file_) != 0) { in ReadFrame()
Dframe_reader.h68 FILE* input_file_; variable
/external/libvpx/libvpx/test/
Dy4m_video_source.h26 : file_name_(file_name), input_file_(NULL), img_(new vpx_image_t()), in Y4mVideoSource()
37 input_file_ = OpenTestDataFile(file_name_); in OpenSource()
38 ASSERT_TRUE(input_file_ != NULL) in OpenSource()
43 ASSERT_TRUE(input_file_ != NULL); in ReadSourceToStart()
44 ASSERT_FALSE(y4m_input_open(&y4m_, input_file_, NULL, 0, 0)); in ReadSourceToStart()
83 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
85 y4m_input_fetch_frame(&y4m_, input_file_, img_.get()); in FillFrame()
104 if (input_file_ != NULL) { in CloseSource()
105 fclose(input_file_); in CloseSource()
106 input_file_ = NULL; in CloseSource()
[all …]
Divf_video_source.h32 : file_name_(file_name), input_file_(NULL), compressed_frame_buf_(NULL), in IVFVideoSource()
38 if (input_file_) fclose(input_file_); in ~IVFVideoSource()
49 input_file_ = OpenTestDataFile(file_name_); in Begin()
50 ASSERT_TRUE(input_file_ != NULL) in Begin()
55 ASSERT_EQ(kIvfFileHdrSize, fread(file_hdr, 1, kIvfFileHdrSize, input_file_)) in Begin()
71 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
74 if (fread(frame_hdr, 1, kIvfFrameHdrSize, input_file_) != in FillFrame()
84 fread(compressed_frame_buf_, 1, frame_sz_, input_file_)) in FillFrame()
97 FILE *input_file_; variable
Dyuv_video_source.h30 : file_name_(file_name), input_file_(NULL), img_(NULL), start_(start), in YUVVideoSource()
40 if (input_file_) fclose(input_file_); in ~YUVVideoSource()
44 if (input_file_) fclose(input_file_); in Begin()
45 input_file_ = OpenTestDataFile(file_name_); in Begin()
46 ASSERT_TRUE(input_file_ != NULL) in Begin()
49 fseek(input_file_, static_cast<unsigned>(raw_size_) * start_, SEEK_SET); in Begin()
101 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
103 if (fread(img_->img_data, raw_size_, 1, input_file_) == 0) { in FillFrame()
110 FILE *input_file_; variable
Dy4m_test.cc93 ASSERT_TRUE(input_file_ != NULL); in HeaderChecks()
119 ASSERT_TRUE(input_file_ != NULL); in Md5Check()
145 input_file_ = NULL; in ~Y4mVideoWriteTest()
151 input_file_ = input_file; in ReplaceInputFile()
152 rewind(input_file_); in ReplaceInputFile()
158 ASSERT_TRUE(input_file_ != NULL); in WriteY4mAndReadBack()
/external/libaom/libaom/test/
Dy4m_video_source.h27 : file_name_(file_name), input_file_(NULL), img_(new aom_image_t()), in Y4mVideoSource()
38 input_file_ = OpenTestDataFile(file_name_); in OpenSource()
39 ASSERT_TRUE(input_file_ != NULL) in OpenSource()
44 ASSERT_TRUE(input_file_ != NULL); in ReadSourceToStart()
46 y4m_input_open(&y4m_, input_file_, NULL, 0, AOM_CSP_UNKNOWN, 0)); in ReadSourceToStart()
85 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
87 y4m_input_fetch_frame(&y4m_, input_file_, img_.get()); in FillFrame()
106 if (input_file_ != NULL) { in CloseSource()
107 fclose(input_file_); in CloseSource()
108 input_file_ = NULL; in CloseSource()
[all …]
Divf_video_source.h36 : file_name_(file_name), input_file_(NULL), compressed_frame_buf_(NULL), in IVFVideoSource()
42 if (input_file_) fclose(input_file_); in ~IVFVideoSource()
54 input_file_ = OpenTestDataFile(file_name_); in Begin()
55 ASSERT_TRUE(input_file_ != NULL) in Begin()
60 ASSERT_EQ(kIvfFileHdrSize, fread(file_hdr, 1, kIvfFileHdrSize, input_file_)) in Begin()
76 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
79 if (fread(frame_hdr, 1, kIvfFrameHdrSize, input_file_) != in FillFrame()
90 fread(compressed_frame_buf_, 1, frame_sz_, input_file_)) in FillFrame()
105 FILE *input_file_; variable
Dyuv_video_source.h31 : file_name_(file_name), input_file_(NULL), img_(NULL), start_(start), in YUVVideoSource()
41 if (input_file_) fclose(input_file_); in ~YUVVideoSource()
45 if (input_file_) fclose(input_file_); in Begin()
46 input_file_ = OpenTestDataFile(file_name_); in Begin()
47 ASSERT_TRUE(input_file_ != NULL) in Begin()
50 fseek(input_file_, static_cast<unsigned>(raw_size_) * start_, SEEK_SET); in Begin()
99 ASSERT_TRUE(input_file_ != NULL); in FillFrame()
101 if (fread(img_->img_data, raw_size_, 1, input_file_) == 0) { in FillFrame()
108 FILE *input_file_; variable
Dy4m_test.cc81 ASSERT_TRUE(input_file_ != NULL); in HeaderChecks()
107 ASSERT_TRUE(input_file_ != NULL); in Md5Check()
133 input_file_ = NULL; in ~Y4mVideoWriteTest()
139 input_file_ = input_file; in ReplaceInputFile()
140 rewind(input_file_); in ReplaceInputFile()
146 ASSERT_TRUE(input_file_ != NULL); in WriteY4mAndReadBack()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dexpand_unittest.cc71 : input_file_(test::ResourcePath("audio_coding/testfile32kHz", "pcm"), in ExpandTest()
85 input_file_.set_output_rate_hz(test_sample_rate_hz_); in ExpandTest()
93 ASSERT_TRUE(input_file_.Seek(speech_start_samples)); in SetUp()
97 input_file_.Read(sync_buffer_.Size(), &sync_buffer_.Channel(0)[0])); in SetUp()
101 test::ResampleInputAudioFile input_file_; member in webrtc::ExpandTest
Dtime_stretch_unittest.cc62 : input_file_(new test::InputAudioFile( in TimeStretchTest()
72 RTC_CHECK(input_file_->Read(block_size_, audio_.get())); in Next30Ms()
103 rtc::scoped_ptr<test::InputAudioFile> input_file_; member in webrtc::TimeStretchTest
Dneteq_external_decoder_unittest.cc49 input_file_.reset(new test::InputAudioFile(file_name)); in NetEqExternalDecoderUnitTest()
70 if (!input_file_->Read(frame_size_samples_, input_)) { in GetNewPacket()
157 rtc::scoped_ptr<test::InputAudioFile> input_file_; member in webrtc::NetEqExternalDecoderUnitTest
Dneteq_stereo_unittest.cc88 input_file_.reset(new test::InputAudioFile(file_name)); in SetUp()
139 if (!input_file_->Read(frame_size_samples_, input_)) { in GetNewPackets()
264 rtc::scoped_ptr<test::InputAudioFile> input_file_; member in webrtc::NetEqStereoTest
/external/libbrillo/brillo/
Dprocess.cc70 input_file_ = input_file; in RedirectInput()
248 if (!input_file_.empty()) { in Start()
250 HANDLE_EINTR(open(input_file_.c_str(), in Start()
253 PLOG(ERROR) << "Could not open " << input_file_; in Start()
262 PLOG(ERROR) << "Could not dup fd to stdin for " << input_file_; in Start()
Dprocess.h222 std::string input_file_; variable