| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |    2  *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 
|    3  * |    3  * | 
|    4  *  Use of this source code is governed by a BSD-style license |    4  *  Use of this source code is governed by a BSD-style license | 
|    5  *  that can be found in the LICENSE file in the root of the source |    5  *  that can be found in the LICENSE file in the root of the source | 
|    6  *  tree. An additional intellectual property rights grant can be found |    6  *  tree. An additional intellectual property rights grant can be found | 
|    7  *  in the file PATENTS.  All contributing project authors may |    7  *  in the file PATENTS.  All contributing project authors may | 
|    8  *  be found in the AUTHORS file in the root of the source tree. |    8  *  be found in the AUTHORS file in the root of the source tree. | 
|    9  */ |    9  */ | 
|   10  |   10  | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   87 //   - src_frame        : Pointer to a source frame. |   87 //   - src_frame        : Pointer to a source frame. | 
|   88 //   - crop_x/crop_y    : Starting positions for cropping (0 for no crop). |   88 //   - crop_x/crop_y    : Starting positions for cropping (0 for no crop). | 
|   89 //   - src_width        : src width in pixels. |   89 //   - src_width        : src width in pixels. | 
|   90 //   - src_height       : src height in pixels. |   90 //   - src_height       : src height in pixels. | 
|   91 //   - sample_size      : Required only for the parsing of MJPG (set to 0 else). |   91 //   - sample_size      : Required only for the parsing of MJPG (set to 0 else). | 
|   92 //   - rotate           : Rotation mode of output image. |   92 //   - rotate           : Rotation mode of output image. | 
|   93 // Output: |   93 // Output: | 
|   94 //   - dst_frame        : Reference to a destination frame. |   94 //   - dst_frame        : Reference to a destination frame. | 
|   95 // Return value: 0 if OK, < 0 otherwise. |   95 // Return value: 0 if OK, < 0 otherwise. | 
|   96  |   96  | 
 |   97 // TODO(nisse): Deprecated, see | 
 |   98 // https://bugs.chromium.org/p/webrtc/issues/detail?id=5921. | 
|   97 int ConvertToI420(VideoType src_video_type, |   99 int ConvertToI420(VideoType src_video_type, | 
|   98                   const uint8_t* src_frame, |  100                   const uint8_t* src_frame, | 
|   99                   int crop_x, |  101                   int crop_x, | 
|  100                   int crop_y, |  102                   int crop_y, | 
|  101                   int src_width, |  103                   int src_width, | 
|  102                   int src_height, |  104                   int src_height, | 
|  103                   size_t sample_size, |  105                   size_t sample_size, | 
|  104                   VideoRotation rotation, |  106                   VideoRotation rotation, | 
|  105                   VideoFrame* dst_frame); |  107                   VideoFrame* dst_frame); | 
|  106  |  108  | 
|  107 // Convert From I420 |  109 // Convert From I420 | 
|  108 // Input: |  110 // Input: | 
|  109 //   - src_frame        : Reference to a source frame. |  111 //   - src_frame        : Reference to a source frame. | 
|  110 //   - dst_video_type   : Type of output video. |  112 //   - dst_video_type   : Type of output video. | 
|  111 //   - dst_sample_size  : Required only for the parsing of MJPG. |  113 //   - dst_sample_size  : Required only for the parsing of MJPG. | 
|  112 //   - dst_frame        : Pointer to a destination frame. |  114 //   - dst_frame        : Pointer to a destination frame. | 
|  113 // Return value: 0 if OK, < 0 otherwise. |  115 // Return value: 0 if OK, < 0 otherwise. | 
|  114 // It is assumed that source and destination have equal height. |  116 // It is assumed that source and destination have equal height. | 
|  115 int ConvertFromI420(const VideoFrame& src_frame, |  117 int ConvertFromI420(const VideoFrame& src_frame, | 
|  116                     VideoType dst_video_type, |  118                     VideoType dst_video_type, | 
|  117                     int dst_sample_size, |  119                     int dst_sample_size, | 
|  118                     uint8_t* dst_frame); |  120                     uint8_t* dst_frame); | 
|  119  |  121  | 
|  120 // Compute PSNR for an I420 frame (all planes). |  122 // Compute PSNR for an I420 frame (all planes). | 
|  121 // Returns the PSNR in decibel, to a maximum of kInfinitePSNR. |  123 // Returns the PSNR in decibel, to a maximum of kInfinitePSNR. | 
|  122 double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame); |  124 double I420PSNR(const VideoFrame* ref_frame, const VideoFrame* test_frame); | 
 |  125 double I420PSNR(const VideoFrameBuffer& ref_buffer, | 
 |  126                 const VideoFrameBuffer& test_buffer); | 
 |  127  | 
|  123 // Compute SSIM for an I420 frame (all planes). |  128 // Compute SSIM for an I420 frame (all planes). | 
|  124 double I420SSIM(const VideoFrame* ref_frame, const VideoFrame* test_frame); |  129 double I420SSIM(const VideoFrame* ref_frame, const VideoFrame* test_frame); | 
 |  130 double I420SSIM(const VideoFrameBuffer& ref_buffer, | 
 |  131                 const VideoFrameBuffer& test_buffer); | 
|  125  |  132  | 
|  126 }  // namespace webrtc |  133 }  // namespace webrtc | 
|  127  |  134  | 
|  128 #endif  // WEBRTC_COMMON_VIDEO_LIBYUV_INCLUDE_WEBRTC_LIBYUV_H_ |  135 #endif  // WEBRTC_COMMON_VIDEO_LIBYUV_INCLUDE_WEBRTC_LIBYUV_H_ | 
| OLD | NEW |