2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
13 #include "./tools_common.h"
20 struct nestegg_packet;
21 struct VpxInputContext;
23 struct WebmInputContext {
27 struct nestegg *nestegg_ctx;
28 struct nestegg_packet *pkt;
31 int file_is_webm(struct WebmInputContext *webm_ctx,
32 struct VpxInputContext *vpx_ctx);
34 int webm_read_frame(struct WebmInputContext *webm_ctx,
36 size_t *bytes_in_buffer,
39 int webm_guess_framerate(struct WebmInputContext *webm_ctx,
40 struct VpxInputContext *vpx_ctx);
42 void webm_free(struct WebmInputContext *webm_ctx);