Home | History | Annotate | Download | only in util

Lines Matching refs:ch_org

93   uint8* const ch_org = new uint8[total_size];
94 memset(ch_org, 0, total_size);
95 size_t bytes_org = fread(ch_org, sizeof(uint8), total_size, file_org);
98 if (0 == libyuv::MJPGSize(ch_org, total_size, width_ptr, height_ptr)) {
99 delete[] ch_org;
103 delete[] ch_org;
240 bool UpdateMetrics(uint8* ch_org,
250 const uint8* const u_org = ch_org + y_size + uv_offset;
252 const uint8* const v_org = ch_org + y_size + (uv_size - uv_offset);
257 libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size));
263 double y_err = ComputeSumSquareError(ch_org, ch_rec, y_size);
278 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height);
377 uint8* const ch_org = new uint8[total_size];
379 if (ch_org == NULL || ch_rec == NULL) {
385 delete[] ch_org;
435 size_t bytes_org = fread(ch_org, sizeof(uint8), total_size, file_org);
440 memcpy(ch_jpeg, ch_org, bytes_org);
441 memset(ch_org, 0, total_size);
443 if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_org, ch_org, image_width,
444 ch_org + y_size, (image_width + 1) / 2,
445 ch_org + y_size + uv_size,
487 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size,
501 bool ismin = UpdateMetrics(ch_org, ch_rec, y_size, uv_size, total_size,
622 delete[] ch_org;