]> granicus.if.org Git - libvpx/commitdiff
restore vp9 and vpx in libwebm
authorYaowu Xu <yaowu@google.com>
Fri, 9 Sep 2016 00:36:09 +0000 (17:36 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 9 Sep 2016 18:46:13 +0000 (18:46 +0000)
renaming should not have been applied to third_party.

Change-Id: I95be7ec4b7558298cd49ec4c5d1ed15a17ad222b

third_party/libwebm/common/hdr_util.cc
third_party/libwebm/common/hdr_util.h

index 0b53cd5f57708a5d609a7b15c1f5a51fcd1a6beb..e1a9842fb6ea10c720597bffcaadfc92613bb52e 100644 (file)
@@ -112,7 +112,7 @@ bool CopyColour(const mkvparser::Colour& parser_colour,
   return true;
 }
 
-// Format of AVx private data:
+// Format of VPx private data:
 //
 //   0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
 //  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -151,18 +151,20 @@ bool CopyColour(const mkvparser::Colour& parser_colour,
 //   62: Level 6.2
 //
 // See the following link for more information:
-// http://www.webmproject.org/av1/profiles/
-int ParseAvxCodecPrivate(const uint8_t *private_data, int32_t length) {
-  const int kAvxCodecPrivateLength = 3;
-  if (!private_data || length != kAvxCodecPrivateLength) return 0;
+// http://www.webmproject.org/vp9/profiles/
+int ParseVpxCodecPrivate(const uint8_t* private_data, int32_t length) {
+  const int kVpxCodecPrivateLength = 3;
+  if (!private_data || length != kVpxCodecPrivateLength)
+    return 0;
 
   const uint8_t id_byte = *private_data;
   if (id_byte != 1)
     return 0;
 
-  const int kAvxProfileLength = 1;
+  const int kVpxProfileLength = 1;
   const uint8_t length_byte = private_data[1];
-  if (length_byte != kAvxProfileLength) return 0;
+  if (length_byte != kVpxProfileLength)
+    return 0;
 
   const int level = static_cast<int>(private_data[2]);
 
index 1a3ca74cb063ff2b5a5f2c2edd1d383736044613..d30c2b9f2a01c4125014d5793ce32e9ed66058e2 100644 (file)
@@ -43,8 +43,8 @@ bool ColourValuePresent(long long value);
 bool CopyColour(const mkvparser::Colour& parser_colour,
                 mkvmuxer::Colour* muxer_colour);
 
-// Returns AV1 profile upon success or 0 upon failure.
-int ParseAvxCodecPrivate(const uint8_t *private_data, int32_t length);
+// Returns VP9 profile upon success or 0 upon failure.
+int ParseVpxCodecPrivate(const uint8_t* private_data, int32_t length);
 
 }  // namespace libwebm