Merge "Cleaning up probability/cost functions."
[platform/upstream/libvpx.git] / webmdec.h
1 /*
2  *  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3  *
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.
9  */
10 #ifndef WEBMDEC_H_
11 #define WEBMDEC_H_
12
13 #include "./tools_common.h"
14
15 struct nestegg;
16 struct nestegg_packet;
17 struct VpxInputContext;
18
19 struct WebmInputContext {
20   uint32_t chunk;
21   uint32_t chunks;
22   uint32_t video_track;
23   struct nestegg *nestegg_ctx;
24   struct nestegg_packet *pkt;
25 };
26
27 int file_is_webm(struct WebmInputContext *webm_ctx,
28                  struct VpxInputContext *vpx_ctx);
29
30 int webm_read_frame(struct WebmInputContext *webm_ctx,
31                     uint8_t **buffer,
32                     size_t *bytes_in_buffer,
33                     size_t *buffer_size);
34
35 int webm_guess_framerate(struct WebmInputContext *webm_ctx,
36                          struct VpxInputContext *vpx_ctx);
37
38 void webm_free(struct WebmInputContext *webm_ctx);
39
40 #endif  // WEBMDEC_H_