Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc

Issue 2534683002: RTC_[D]CHECK_op: Remove superfluous casts (Closed)
Patch Set: test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER; 490 return WEBRTC_VIDEO_CODEC_ERR_PARAMETER;
491 } 491 }
492 if (encoded_complete_callback_ == NULL) { 492 if (encoded_complete_callback_ == NULL) {
493 return WEBRTC_VIDEO_CODEC_UNINITIALIZED; 493 return WEBRTC_VIDEO_CODEC_UNINITIALIZED;
494 } 494 }
495 FrameType frame_type = kVideoFrameDelta; 495 FrameType frame_type = kVideoFrameDelta;
496 // We only support one stream at the moment. 496 // We only support one stream at the moment.
497 if (frame_types && frame_types->size() > 0) { 497 if (frame_types && frame_types->size() > 0) {
498 frame_type = (*frame_types)[0]; 498 frame_type = (*frame_types)[0];
499 } 499 }
500 RTC_DCHECK_EQ(input_image.width(), static_cast<int>(raw_->d_w)); 500 RTC_DCHECK_EQ(input_image.width(), raw_->d_w);
501 RTC_DCHECK_EQ(input_image.height(), static_cast<int>(raw_->d_h)); 501 RTC_DCHECK_EQ(input_image.height(), raw_->d_h);
502 502
503 // Set input image for use in the callback. 503 // Set input image for use in the callback.
504 // This was necessary since you need some information from input_image. 504 // This was necessary since you need some information from input_image.
505 // You can save only the necessary information (such as timestamp) instead of 505 // You can save only the necessary information (such as timestamp) instead of
506 // doing this. 506 // doing this.
507 input_image_ = &input_image; 507 input_image_ = &input_image;
508 508
509 // Image in vpx_image_t format. 509 // Image in vpx_image_t format.
510 // Input image is const. VPX's raw image is not defined as const. 510 // Input image is const. VPX's raw image is not defined as const.
511 raw_->planes[VPX_PLANE_Y] = 511 raw_->planes[VPX_PLANE_Y] =
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 frame_buffer_pool_.ClearPool(); 999 frame_buffer_pool_.ClearPool();
1000 inited_ = false; 1000 inited_ = false;
1001 return WEBRTC_VIDEO_CODEC_OK; 1001 return WEBRTC_VIDEO_CODEC_OK;
1002 } 1002 }
1003 1003
1004 const char* VP9DecoderImpl::ImplementationName() const { 1004 const char* VP9DecoderImpl::ImplementationName() const {
1005 return "libvpx"; 1005 return "libvpx";
1006 } 1006 }
1007 1007
1008 } // namespace webrtc 1008 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698