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"
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2013-07-18 11:29:34 -07:00
|
|
|
#include "vp9/decoder/vp9_idct_blk.h"
|
|
|
|
#include "vp9/decoder/vp9_onyxd.h"
|
|
|
|
#include "vp9/decoder/vp9_treereader.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
|
|
|
|
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;
|
|
|
|
uint32_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
|
2012-10-30 17:53:32 -07:00
|
|
|
} VP9D_COMP;
|
2010-05-18 11:58:33 -04:00
|
|
|
|
2012-12-18 15:31:19 -08:00
|
|
|
#endif // VP9_DECODER_VP9_TREEREADER_H_
|