OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "content/renderer/pepper/pepper_video_decoder_host.h" | 5 #include "content/renderer/pepper/pepper_video_decoder_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 return media::H264PROFILE_SCALABLEBASELINE; | 58 return media::H264PROFILE_SCALABLEBASELINE; |
59 case PP_VIDEOPROFILE_H264SCALABLEHIGH: | 59 case PP_VIDEOPROFILE_H264SCALABLEHIGH: |
60 return media::H264PROFILE_SCALABLEHIGH; | 60 return media::H264PROFILE_SCALABLEHIGH; |
61 case PP_VIDEOPROFILE_H264STEREOHIGH: | 61 case PP_VIDEOPROFILE_H264STEREOHIGH: |
62 return media::H264PROFILE_STEREOHIGH; | 62 return media::H264PROFILE_STEREOHIGH; |
63 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: | 63 case PP_VIDEOPROFILE_H264MULTIVIEWHIGH: |
64 return media::H264PROFILE_MULTIVIEWHIGH; | 64 return media::H264PROFILE_MULTIVIEWHIGH; |
65 case PP_VIDEOPROFILE_VP8_ANY: | 65 case PP_VIDEOPROFILE_VP8_ANY: |
66 return media::VP8PROFILE_ANY; | 66 return media::VP8PROFILE_ANY; |
67 case PP_VIDEOPROFILE_VP9_ANY: | 67 case PP_VIDEOPROFILE_VP9_ANY: |
68 return media::VP9PROFILE_ANY; | 68 return media::VP9PROFILE_PROFILE0; |
69 // No default case, to catch unhandled PP_VideoProfile values. | 69 // No default case, to catch unhandled PP_VideoProfile values. |
70 } | 70 } |
71 | 71 |
72 return media::VIDEO_CODEC_PROFILE_UNKNOWN; | 72 return media::VIDEO_CODEC_PROFILE_UNKNOWN; |
73 } | 73 } |
74 | 74 |
75 } // namespace | 75 } // namespace |
76 | 76 |
77 PepperVideoDecoderHost::PendingDecode::PendingDecode( | 77 PepperVideoDecoderHost::PendingDecode::PendingDecode( |
78 int32_t decode_id, | 78 int32_t decode_id, |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 530 |
531 PepperVideoDecoderHost::PendingDecodeList::iterator | 531 PepperVideoDecoderHost::PendingDecodeList::iterator |
532 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { | 532 PepperVideoDecoderHost::GetPendingDecodeById(int32_t decode_id) { |
533 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), | 533 return std::find_if(pending_decodes_.begin(), pending_decodes_.end(), |
534 [decode_id](const PendingDecode& item) { | 534 [decode_id](const PendingDecode& item) { |
535 return item.decode_id == decode_id; | 535 return item.decode_id == decode_id; |
536 }); | 536 }); |
537 } | 537 } |
538 | 538 |
539 } // namespace content | 539 } // namespace content |
OLD | NEW |