/* * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
namespace { // Read width and height from the payload of the frame if it is a key frame the // same way as the real VP8 decoder. // FakeEncoder writes width, height and frame type. void ParseFakeVp8(constunsignedchar* data, int* width, int* height) { bool key_frame = data[0] == 0; if (key_frame) {
*width = ((data[7] << 8) + data[6]) & 0x3FFF;
*height = ((data[9] << 8) + data[8]) & 0x3FFF;
}
}
} // namespace
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.