Chromium Code Reviews| 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 MEDIA_FORMATS_MP4_FOURCCS_H_ | 5 #ifndef MEDIA_FORMATS_MP4_FOURCCS_H_ |
| 6 #define MEDIA_FORMATS_MP4_FOURCCS_H_ | 6 #define MEDIA_FORMATS_MP4_FOURCCS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "media/media_features.h" | 10 #include "media/media_features.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 FOURCC_TFHD = 0x74666864, | 89 FOURCC_TFHD = 0x74666864, |
| 90 FOURCC_TKHD = 0x746b6864, | 90 FOURCC_TKHD = 0x746b6864, |
| 91 FOURCC_TRAF = 0x74726166, | 91 FOURCC_TRAF = 0x74726166, |
| 92 FOURCC_TRAK = 0x7472616b, | 92 FOURCC_TRAK = 0x7472616b, |
| 93 FOURCC_TREX = 0x74726578, | 93 FOURCC_TREX = 0x74726578, |
| 94 FOURCC_TRUN = 0x7472756e, | 94 FOURCC_TRUN = 0x7472756e, |
| 95 FOURCC_UDTA = 0x75647461, | 95 FOURCC_UDTA = 0x75647461, |
| 96 FOURCC_UUID = 0x75756964, | 96 FOURCC_UUID = 0x75756964, |
| 97 FOURCC_VIDE = 0x76696465, | 97 FOURCC_VIDE = 0x76696465, |
| 98 FOURCC_VMHD = 0x766d6864, | 98 FOURCC_VMHD = 0x766d6864, |
| 99 FOURCC_VP08 = 0x76703038, | |
| 100 FOURCC_VP09 = 0x76703039, | |
| 101 FOURCC_VPCC = 0x76706343, | |
|
ddorwin
2016/01/27 01:39:15
What is VPCC?
kqyang
2016/01/29 00:34:17
VP codec configuration box. Removed, since it is n
| |
| 99 FOURCC_WIDE = 0x77696465, | 102 FOURCC_WIDE = 0x77696465, |
| 100 }; | 103 }; |
| 101 | 104 |
| 102 const inline std::string FourCCToString(FourCC fourcc) { | 105 const inline std::string FourCCToString(FourCC fourcc) { |
| 103 char buf[5]; | 106 char buf[5]; |
| 104 buf[0] = (fourcc >> 24) & 0xff; | 107 buf[0] = (fourcc >> 24) & 0xff; |
| 105 buf[1] = (fourcc >> 16) & 0xff; | 108 buf[1] = (fourcc >> 16) & 0xff; |
| 106 buf[2] = (fourcc >> 8) & 0xff; | 109 buf[2] = (fourcc >> 8) & 0xff; |
| 107 buf[3] = (fourcc) & 0xff; | 110 buf[3] = (fourcc) & 0xff; |
| 108 buf[4] = 0; | 111 buf[4] = 0; |
| 109 return std::string(buf); | 112 return std::string(buf); |
| 110 } | 113 } |
| 111 | 114 |
| 112 } // namespace mp4 | 115 } // namespace mp4 |
| 113 } // namespace media | 116 } // namespace media |
| 114 | 117 |
| 115 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_ | 118 #endif // MEDIA_FORMATS_MP4_FOURCCS_H_ |
| OLD | NEW |