• Home
  • Raw
  • Download

Lines Matching refs:ch_org

93   uint8_t* const ch_org = new uint8_t[total_size];  in ExtractResolutionFromFilename()  local
94 memset(ch_org, 0, total_size); in ExtractResolutionFromFilename()
95 size_t bytes_org = fread(ch_org, sizeof(uint8_t), 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()
243 bool UpdateMetrics(uint8_t* ch_org, in UpdateMetrics() argument
253 const uint8_t* const u_org = ch_org + y_size + uv_offset; in UpdateMetrics()
255 const uint8_t* const v_org = ch_org + y_size + (uv_size - uv_offset); in UpdateMetrics()
260 libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size)); in UpdateMetrics()
266 double y_err = ComputeSumSquareError(ch_org, ch_rec, y_size); in UpdateMetrics()
281 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics()
383 uint8_t* const ch_org = new uint8_t[total_size]; in main() local
385 if (ch_org == NULL || ch_rec == NULL) { in main()
391 delete[] ch_org; in main()
442 size_t bytes_org = fread(ch_org, sizeof(uint8_t), total_size, file_org); in main()
447 memcpy(ch_jpeg, ch_org, bytes_org); in main()
448 memset(ch_org, 0, total_size); in main()
450 if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_org, ch_org, image_width, in main()
451 ch_org + y_size, (image_width + 1) / 2, in main()
452 ch_org + y_size + uv_size, in main()
494 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size, in main()
508 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size, in main()
629 delete[] ch_org; in main()