Lines Matching refs:ch_rec
241 uint8* ch_rec, in UpdateMetrics() argument
251 const uint8* const u_rec = ch_rec + y_size; in UpdateMetrics()
253 const uint8* const v_rec = ch_rec + y_size + uv_size; in UpdateMetrics()
257 libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size)); in UpdateMetrics()
263 double y_err = ComputeSumSquareError(ch_org, ch_rec, y_size); in UpdateMetrics()
278 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics()
378 uint8* const ch_rec = new uint8[total_size]; in main() local
379 if (ch_org == NULL || ch_rec == NULL) { in main()
386 delete[] ch_rec; in main()
459 fread(ch_rec, sizeof(uint8), total_size, file_rec[cur_rec]); in main()
464 memcpy(ch_jpeg, ch_rec, bytes_rec); in main()
465 memset(ch_rec, 0, total_size); in main()
467 if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_rec, ch_rec, image_width, in main()
468 ch_rec + y_size, (image_width + 1) / 2, in main()
469 ch_rec + y_size + uv_size, in main()
487 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size, in main()
501 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size, in main()
623 delete[] ch_rec; in main()