2010-05-18 11:58:33 -04:00
|
|
|
/*
|
2010-09-09 08:16:39 -04:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 11:58:33 -04:00
|
|
|
*
|
2010-06-18 12:39:21 -04:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 16:19:40 -04:00
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
2010-06-18 12:39:21 -04:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 16:19:40 -04:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 11:58:33 -04:00
|
|
|
*/
|
|
|
|
|
2012-11-29 16:36:10 -08:00
|
|
|
#ifndef VP9_DECODER_VP9_ONYXD_INT_H_
|
|
|
|
#define VP9_DECODER_VP9_ONYXD_INT_H_
|
2013-07-18 11:29:34 -07:00
|
|
|
|
2012-12-23 07:20:10 -08:00
|
|
|
#include "./vpx_config.h"
|
2013-07-18 11:29:34 -07:00
|
|
|
|
2012-11-27 13:59:17 -08:00
|
|
|
#include "vp9/common/vp9_onyxc_int.h"
|
2013-07-18 11:29:34 -07:00
|
|
|
#include "vp9/decoder/vp9_onyxd.h"
|
2013-07-31 16:15:10 -07:00
|
|
|
#include "vp9/decoder/vp9_thread.h"
|
2011-02-14 14:18:18 -08:00
|
|
|
|
2012-10-30 17:53:32 -07:00
|
|
|
typedef struct VP9Decompressor {
|
2012-07-13 15:21:29 -07:00
|
|
|
DECLARE_ALIGNED(16, MACROBLOCKD, mb);
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2012-10-30 17:53:32 -07:00
|
|
|
DECLARE_ALIGNED(16, VP9_COMMON, common);
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2013-10-31 12:21:49 -07:00
|
|
|
DECLARE_ALIGNED(16, int16_t, qcoeff[MAX_MB_PLANE][64 * 64]);
|
|
|
|
DECLARE_ALIGNED(16, int16_t, dqcoeff[MAX_MB_PLANE][64 * 64]);
|
|
|
|
DECLARE_ALIGNED(16, uint16_t, eobs[MAX_MB_PLANE][256]);
|
|
|
|
|
2012-10-31 14:40:53 -07:00
|
|
|
VP9D_CONFIG oxcf;
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2013-04-02 13:34:20 -07:00
|
|
|
const uint8_t *source;
|
2013-09-24 16:38:30 -07:00
|
|
|
size_t source_sz;
|
2011-11-15 16:15:23 +00:00
|
|
|
|
2012-07-13 15:21:29 -07:00
|
|
|
int64_t last_time_stamp;
|
2013-04-02 13:34:20 -07:00
|
|
|
int ready_for_new_data;
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2013-01-15 13:49:44 -08:00
|
|
|
int refresh_frame_flags;
|
2010-09-09 14:42:48 -04:00
|
|
|
|
2012-07-13 15:21:29 -07:00
|
|
|
int decoded_key_frame;
|
2011-05-02 15:30:51 +02:00
|
|
|
|
Spatial resamping of ZEROMV predictors
This patch allows coding frames using references of different
resolution, in ZEROMV mode. For compound prediction, either
reference may be scaled.
To test, I use the resize_test and enable WRITE_RECON_BUFFER
in vp9_onyxd_if.c. It's also useful to apply this patch to
test/i420_video_source.h:
--- a/test/i420_video_source.h
+++ b/test/i420_video_source.h
@@ -93,6 +93,7 @@ class I420VideoSource : public VideoSource {
virtual void FillFrame() {
// Read a frame from input_file.
+ if (frame_ != 3)
if (fread(img_->img_data, raw_sz_, 1, input_file_) == 0) {
limit_ = frame_;
}
This forces the frame that the resolution changes on to be coded
with no motion, only scaling, and improves the quality of the
result.
Change-Id: I1ee75d19a437ff801192f767fd02a36bcbd1d496
2013-02-24 20:55:14 -08:00
|
|
|
int initial_width;
|
|
|
|
int initial_height;
|
2013-07-19 14:40:34 -07:00
|
|
|
|
|
|
|
int do_loopfilter_inline; // apply loopfilter to available rows immediately
|
2013-07-31 16:15:10 -07:00
|
|
|
VP9Worker lf_worker;
|
2013-10-11 16:14:29 -07:00
|
|
|
|
2013-10-26 14:33:45 +02:00
|
|
|
VP9Worker *tile_workers;
|
|
|
|
int num_tile_workers;
|
|
|
|
|
2013-10-11 16:14:29 -07:00
|
|
|
/* Each tile column has its own MODE_INFO stream. This array indexes them by
|
|
|
|
tile column index. */
|
|
|
|
MODE_INFO **mi_streams;
|
2013-10-24 19:11:07 +02:00
|
|
|
|
2013-10-24 19:43:05 +02:00
|
|
|
ENTROPY_CONTEXT *above_context[MAX_MB_PLANE];
|
2013-10-24 19:11:07 +02:00
|
|
|
PARTITION_CONTEXT *above_seg_context;
|
2013-11-04 16:34:18 -08:00
|
|
|
|
2013-11-05 17:25:38 -08:00
|
|
|
DECLARE_ALIGNED(16, uint8_t, token_cache[1024]);
|
2012-10-30 17:53:32 -07:00
|
|
|
} VP9D_COMP;
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2013-09-29 11:34:21 -07:00
|
|
|
#endif // VP9_DECODER_VP9_ONYXD_INT_H_
|