/* * Copyright (c) 2018, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
*/ #include <string.h>
// // Input buffers containing exactly one Sequence Header OBU. // // Each buffer is named according to the OBU storage format (Annex-B vs Low // Overhead Bitstream Format) and the type of Sequence Header OBU ("Full" // Sequence Header OBUs vs Sequence Header OBUs with the // reduced_still_image_flag set). // const uint8_t kAnnexBFullSequenceHeaderObu[] = { 0x0c, 0x08, 0x00, 0x00, 0x00,
0x04, 0x45, 0x7e, 0x3e, 0xff,
0xfc, 0xc0, 0x20 }; const uint8_t kAnnexBReducedStillImageSequenceHeaderObu[] = {
0x08, 0x08, 0x18, 0x22, 0x2b, 0xf1, 0xfe, 0xc0, 0x20
};
TEST(Av1Config, GetAv1ConfigFromLobfObu) { // Test parsing of a Sequence Header OBU with the reduced_still_picture_header // unset-- aka a full Sequence Header OBU.
ASSERT_TRUE(VerifyAv1c(kLobfFullSequenceHeaderObu, sizeof(kLobfFullSequenceHeaderObu), false));
// Test parsing of a reduced still image Sequence Header OBU.
ASSERT_TRUE(VerifyAv1c(kLobfReducedStillImageSequenceHeaderObu, sizeof(kLobfReducedStillImageSequenceHeaderObu), false));
}
TEST(Av1Config, GetAv1ConfigFromAnnexBObu) { // Test parsing of a Sequence Header OBU with the reduced_still_picture_header // unset-- aka a full Sequence Header OBU.
ASSERT_TRUE(VerifyAv1c(kAnnexBFullSequenceHeaderObu, sizeof(kAnnexBFullSequenceHeaderObu), true));
// Test parsing of a reduced still image Sequence Header OBU.
ASSERT_TRUE(VerifyAv1c(kAnnexBReducedStillImageSequenceHeaderObu, sizeof(kAnnexBReducedStillImageSequenceHeaderObu), true));
}
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.