Lines Matching refs:ref_frame
108 void VerifyParams(const AudioFrame& ref_frame, const AudioFrame& test_frame) { in VerifyParams() argument
109 EXPECT_EQ(ref_frame.num_channels_, test_frame.num_channels_); in VerifyParams()
110 EXPECT_EQ(ref_frame.samples_per_channel_, test_frame.samples_per_channel_); in VerifyParams()
111 EXPECT_EQ(ref_frame.sample_rate_hz_, test_frame.sample_rate_hz_); in VerifyParams()
117 float ComputeSNR(const AudioFrame& ref_frame, in ComputeSNR() argument
120 VerifyParams(ref_frame, test_frame); in ComputeSNR()
126 const int16_t* ref_frame_data = ref_frame.data(); in ComputeSNR()
129 i < ref_frame.samples_per_channel_ * ref_frame.num_channels_ - delay; in ComputeSNR()
147 void VerifyFramesAreEqual(const AudioFrame& ref_frame, in VerifyFramesAreEqual() argument
149 VerifyParams(ref_frame, test_frame); in VerifyFramesAreEqual()
150 const int16_t* ref_frame_data = ref_frame.data(); in VerifyFramesAreEqual()
153 i < ref_frame.samples_per_channel_ * ref_frame.num_channels_; i++) { in VerifyFramesAreEqual()