Lines Matching refs:ch_org

93   uint8* const ch_org = new uint8[total_size];  in ExtractResolutionFromFilename()  local
94 memset(ch_org, 0, total_size); in ExtractResolutionFromFilename()
95 size_t bytes_org = fread(ch_org, sizeof(uint8), total_size, file_org); in ExtractResolutionFromFilename()
98 if (0 == libyuv::MJPGSize(ch_org, total_size, width_ptr, height_ptr)) { in ExtractResolutionFromFilename()
99 delete[] ch_org; in ExtractResolutionFromFilename()
103 delete[] ch_org; in ExtractResolutionFromFilename()
240 bool UpdateMetrics(uint8* ch_org, in UpdateMetrics() argument
250 const uint8* const u_org = ch_org + y_size + uv_offset; in UpdateMetrics()
252 const uint8* const v_org = ch_org + y_size + (uv_size - uv_offset); 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()
377 uint8* const ch_org = new uint8[total_size]; in main() local
379 if (ch_org == NULL || ch_rec == NULL) { in main()
385 delete[] ch_org; in main()
435 size_t bytes_org = fread(ch_org, sizeof(uint8), total_size, file_org); in main()
440 memcpy(ch_jpeg, ch_org, bytes_org); in main()
441 memset(ch_org, 0, total_size); in main()
443 if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_org, ch_org, image_width, in main()
444 ch_org + y_size, (image_width + 1) / 2, in main()
445 ch_org + 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()
622 delete[] ch_org; in main()