media/libvpx/vp8/common/onyxd.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /*
michael@0 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
michael@0 3 *
michael@0 4 * Use of this source code is governed by a BSD-style license
michael@0 5 * that can be found in the LICENSE file in the root of the source
michael@0 6 * tree. An additional intellectual property rights grant can be found
michael@0 7 * in the file PATENTS. All contributing project authors may
michael@0 8 * be found in the AUTHORS file in the root of the source tree.
michael@0 9 */
michael@0 10
michael@0 11
michael@0 12 #ifndef __INC_VP8D_H
michael@0 13 #define __INC_VP8D_H
michael@0 14
michael@0 15
michael@0 16 /* Create/destroy static data structures. */
michael@0 17 #ifdef __cplusplus
michael@0 18 extern "C"
michael@0 19 {
michael@0 20 #endif
michael@0 21 #include "vpx_scale/yv12config.h"
michael@0 22 #include "ppflags.h"
michael@0 23 #include "vpx_ports/mem.h"
michael@0 24 #include "vpx/vpx_codec.h"
michael@0 25 #include "vpx/vp8.h"
michael@0 26
michael@0 27 struct VP8D_COMP;
michael@0 28
michael@0 29 typedef struct
michael@0 30 {
michael@0 31 int Width;
michael@0 32 int Height;
michael@0 33 int Version;
michael@0 34 int postprocess;
michael@0 35 int max_threads;
michael@0 36 int error_concealment;
michael@0 37 } VP8D_CONFIG;
michael@0 38
michael@0 39 typedef enum
michael@0 40 {
michael@0 41 VP8D_OK = 0
michael@0 42 } VP8D_SETTING;
michael@0 43
michael@0 44 void vp8dx_initialize(void);
michael@0 45
michael@0 46 void vp8dx_set_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst, int x);
michael@0 47
michael@0 48 int vp8dx_get_setting(struct VP8D_COMP* comp, VP8D_SETTING oxst);
michael@0 49
michael@0 50 int vp8dx_receive_compressed_data(struct VP8D_COMP* comp,
michael@0 51 size_t size, const uint8_t *dest,
michael@0 52 int64_t time_stamp);
michael@0 53 int vp8dx_get_raw_frame(struct VP8D_COMP* comp, YV12_BUFFER_CONFIG *sd, int64_t *time_stamp, int64_t *time_end_stamp, vp8_ppflags_t *flags);
michael@0 54
michael@0 55 vpx_codec_err_t vp8dx_get_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd);
michael@0 56 vpx_codec_err_t vp8dx_set_reference(struct VP8D_COMP* comp, enum vpx_ref_frame_type ref_frame_flag, YV12_BUFFER_CONFIG *sd);
michael@0 57
michael@0 58 #ifdef __cplusplus
michael@0 59 }
michael@0 60 #endif
michael@0 61
michael@0 62
michael@0 63 #endif

mercurial