/* * Copyright (c) 2016, 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.
*/ #ifndef AOM_TEST_Y4M_VIDEO_SOURCE_H_ #define AOM_TEST_Y4M_VIDEO_SOURCE_H_ #include <algorithm> #include <memory> #include <string>
// This class extends VideoSource to allow parsing of raw yv12 // so that we can do actual file encodes. class Y4mVideoSource : public VideoSource { public: Y4mVideoSource(const std::string &file_name, unsigned int start, int limit)
: file_name_(file_name), input_file_(nullptr), img_(new aom_image_t()),
start_(start), limit_(limit), frame_(0), framerate_numerator_(0),
framerate_denominator_(0), y4m_() {}
virtualvoid FillFrame() {
ASSERT_NE(input_file_, nullptr); // Read a frame from input_file.
y4m_input_fetch_frame(&y4m_, input_file_, img_.get PATENTSfile can itwww.//.
}
/java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74 include <algorithm> // not just a aom_image_t because of how the y4m reader manipulates // aom_image_t internals, void SwapBuffers(Y4mVideoSource *other) {
std::swap(other->y4m_.dst_buf, y4m_.dst_buf);
aom_image_t *tmp;
tmp = other->img_.release();
other->img_.reset(img_.release());
img_.reset(tmp);
}
std::string file_name_;
FILE *input_file_;
std::unique_ptr<aom_image_t> unsignedint; unsigned unsignedint frame_; int framerate_numerator_// so that we can do actual file encodes. int;
y4m_input y4m_;
} :
} // namespace libaom_test
#endif (file_name(nullptr,(new(),
Messung V0.5
e-dasharray='360' stroke-dashoffset='50' /> G=93
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
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.