vp9_onyxd.h 1.91 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5 6
 *  that can be found in the LICENSE file in the root of the source
 *  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.
John Koleszar's avatar
John Koleszar committed
9 10 11
 */


12 13
#ifndef __INC_ONYXD_H
#define __INC_ONYXD_H
John Koleszar's avatar
John Koleszar committed
14 15 16 17 18 19 20


/* Create/destroy static data structures. */
#ifdef __cplusplus
extern "C"
{
#endif
21
#include "vp9/common/vp9_type_aliases.h"
John Koleszar's avatar
John Koleszar committed
22
#include "vpx_scale/yv12config.h"
23
#include "vp9/common/vp9_ppflags.h"
John Koleszar's avatar
John Koleszar committed
24
#include "vpx_ports/mem.h"
25
#include "vpx/vpx_codec.h"
John Koleszar's avatar
John Koleszar committed
26

27
  typedef void   *VP9D_PTR;
John Koleszar's avatar
John Koleszar committed
28 29 30 31 32 33 34
  typedef struct {
    int     Width;
    int     Height;
    int     Version;
    int     postprocess;
    int     max_threads;
    int     input_partition;
35
  } VP9D_CONFIG;
John Koleszar's avatar
John Koleszar committed
36
  typedef enum {
37 38 39 40
    VP9_LAST_FLAG = 1,
    VP9_GOLD_FLAG = 2,
    VP9_ALT_FLAG = 4
  } VP9_REFFRAME;
John Koleszar's avatar
John Koleszar committed
41

42
  void vp9_initialize_dec(void);
John Koleszar's avatar
John Koleszar committed
43

44
  int vp9_receive_compressed_data(VP9D_PTR comp, unsigned long size,
45
                                  const unsigned char **dest,
46
                                  int64_t time_stamp);
John Koleszar's avatar
John Koleszar committed
47

48
  int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd,
49
                        int64_t *time_stamp, int64_t *time_end_stamp,
50
                        vp9_ppflags_t *flags);
John Koleszar's avatar
John Koleszar committed
51

52 53
  vpx_codec_err_t vp9_get_reference_dec(VP9D_PTR comp,
                                        VP9_REFFRAME ref_frame_flag,
54
                                        YV12_BUFFER_CONFIG *sd);
John Koleszar's avatar
John Koleszar committed
55

56 57
  vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp,
                                        VP9_REFFRAME ref_frame_flag,
58
                                        YV12_BUFFER_CONFIG *sd);
John Koleszar's avatar
John Koleszar committed
59

60
  VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf);
John Koleszar's avatar
John Koleszar committed
61

62
  void vp9_remove_decompressor(VP9D_PTR comp);
John Koleszar's avatar
John Koleszar committed
63 64 65 66 67

#ifdef __cplusplus
}
#endif

68
#endif  // __INC_ONYXD_H