| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ | 5 #ifndef PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ |
| 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ | 6 #define PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/c/ppb_audio_buffer.h" | 10 #include "ppapi/c/ppb_audio_buffer.h" |
| 9 #include "ppapi/c/ppb_video_frame.h" | 11 #include "ppapi/c/ppb_video_frame.h" |
| 10 | 12 |
| 11 namespace ppapi { | 13 namespace ppapi { |
| 12 | 14 |
| 13 union MediaStreamBuffer { | 15 union MediaStreamBuffer { |
| 14 enum Type { | 16 enum Type { |
| 15 TYPE_UNKNOWN = 0, | 17 TYPE_UNKNOWN = 0, |
| 16 TYPE_AUDIO = 1, | 18 TYPE_AUDIO = 1, |
| 17 TYPE_VIDEO = 2, | 19 TYPE_VIDEO = 2, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 66 |
| 65 Header header; | 67 Header header; |
| 66 Video video; | 68 Video video; |
| 67 Audio audio; | 69 Audio audio; |
| 68 Bitstream bitstream; | 70 Bitstream bitstream; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace ppapi | 73 } // namespace ppapi |
| 72 | 74 |
| 73 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ | 75 #endif // PPAPI_SHARED_IMPL_MEDIA_STREAM_BUFFER_H_ |
| OLD | NEW |