media/libvpx/vp9/decoder/vp9_onyxd.h

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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 #ifndef VP9_DECODER_VP9_ONYXD_H_
michael@0 12 #define VP9_DECODER_VP9_ONYXD_H_
michael@0 13
michael@0 14 #ifdef __cplusplus
michael@0 15 extern "C" {
michael@0 16 #endif
michael@0 17
michael@0 18 #include "vpx_scale/yv12config.h"
michael@0 19 #include "vp9/common/vp9_ppflags.h"
michael@0 20 #include "vpx/vpx_codec.h"
michael@0 21
michael@0 22 typedef void *VP9D_PTR;
michael@0 23
michael@0 24 typedef struct {
michael@0 25 int width;
michael@0 26 int height;
michael@0 27 int version;
michael@0 28 int postprocess;
michael@0 29 int max_threads;
michael@0 30 int inv_tile_order;
michael@0 31 int input_partition;
michael@0 32 } VP9D_CONFIG;
michael@0 33
michael@0 34 typedef enum {
michael@0 35 VP9_LAST_FLAG = 1,
michael@0 36 VP9_GOLD_FLAG = 2,
michael@0 37 VP9_ALT_FLAG = 4
michael@0 38 } VP9_REFFRAME;
michael@0 39
michael@0 40 void vp9_initialize_dec();
michael@0 41
michael@0 42 int vp9_receive_compressed_data(VP9D_PTR comp,
michael@0 43 size_t size, const uint8_t **dest,
michael@0 44 int64_t time_stamp);
michael@0 45
michael@0 46 int vp9_get_raw_frame(VP9D_PTR comp, YV12_BUFFER_CONFIG *sd,
michael@0 47 int64_t *time_stamp, int64_t *time_end_stamp,
michael@0 48 vp9_ppflags_t *flags);
michael@0 49
michael@0 50 vpx_codec_err_t vp9_copy_reference_dec(VP9D_PTR comp,
michael@0 51 VP9_REFFRAME ref_frame_flag,
michael@0 52 YV12_BUFFER_CONFIG *sd);
michael@0 53
michael@0 54 vpx_codec_err_t vp9_set_reference_dec(VP9D_PTR comp,
michael@0 55 VP9_REFFRAME ref_frame_flag,
michael@0 56 YV12_BUFFER_CONFIG *sd);
michael@0 57
michael@0 58 int vp9_get_reference_dec(VP9D_PTR ptr, int index, YV12_BUFFER_CONFIG **fb);
michael@0 59
michael@0 60
michael@0 61 VP9D_PTR vp9_create_decompressor(VP9D_CONFIG *oxcf);
michael@0 62
michael@0 63 void vp9_remove_decompressor(VP9D_PTR comp);
michael@0 64
michael@0 65 #ifdef __cplusplus
michael@0 66 }
michael@0 67 #endif
michael@0 68
michael@0 69 #endif // VP9_DECODER_VP9_ONYXD_H_

mercurial