OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/filters/decrypting_demuxer_stream.h" | 5 #include "media/filters/decrypting_demuxer_stream.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 input_audio_config.codec_delay()); | 392 input_audio_config.codec_delay()); |
393 break; | 393 break; |
394 } | 394 } |
395 | 395 |
396 case VIDEO: { | 396 case VIDEO: { |
397 VideoDecoderConfig input_video_config = | 397 VideoDecoderConfig input_video_config = |
398 demuxer_stream_->video_decoder_config(); | 398 demuxer_stream_->video_decoder_config(); |
399 video_config_.Initialize(input_video_config.codec(), | 399 video_config_.Initialize(input_video_config.codec(), |
400 input_video_config.profile(), | 400 input_video_config.profile(), |
401 input_video_config.format(), | 401 input_video_config.format(), |
402 VideoFrame::COLOR_SPACE_UNSPECIFIED, | 402 input_video_config.color_space(), |
403 input_video_config.coded_size(), | 403 input_video_config.coded_size(), |
404 input_video_config.visible_rect(), | 404 input_video_config.visible_rect(), |
405 input_video_config.natural_size(), | 405 input_video_config.natural_size(), |
406 input_video_config.extra_data(), | 406 input_video_config.extra_data(), |
407 input_video_config.extra_data_size(), | 407 input_video_config.extra_data_size(), |
408 false, // Output video is not encrypted. | 408 false, // Output video is not encrypted. |
409 false); | 409 false); |
410 break; | 410 break; |
411 } | 411 } |
412 | 412 |
413 default: | 413 default: |
414 NOTREACHED(); | 414 NOTREACHED(); |
415 return; | 415 return; |
416 } | 416 } |
417 } | 417 } |
418 | 418 |
419 } // namespace media | 419 } // namespace media |
OLD | NEW |