2010-05-18 17:58:33 +02:00
|
|
|
/*
|
2010-09-09 14:16:39 +02:00
|
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
2010-05-18 17:58:33 +02:00
|
|
|
*
|
2010-06-18 18:39:21 +02:00
|
|
|
* Use of this source code is governed by a BSD-style license
|
2010-06-04 22:19:40 +02: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 18:39:21 +02:00
|
|
|
* in the file PATENTS. All contributing project authors may
|
2010-06-04 22:19:40 +02:00
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
2010-05-18 17:58:33 +02:00
|
|
|
*/
|
|
|
|
|
2012-11-30 01:36:10 +01:00
|
|
|
#ifndef VP9_DECODER_VP9_ONYXD_INT_H_
|
|
|
|
#define VP9_DECODER_VP9_ONYXD_INT_H_
|
2013-07-18 20:29:34 +02:00
|
|
|
|
2012-12-23 16:20:10 +01:00
|
|
|
#include "./vpx_config.h"
|
2013-07-18 20:29:34 +02:00
|
|
|
|
2012-11-27 22:59:17 +01:00
|
|
|
#include "vp9/common/vp9_onyxc_int.h"
|
2013-12-28 00:25:54 +01:00
|
|
|
#include "vp9/decoder/vp9_dthread.h"
|
2013-07-18 20:29:34 +02:00
|
|
|
#include "vp9/decoder/vp9_onyxd.h"
|
2013-08-01 01:15:10 +02:00
|
|
|
#include "vp9/decoder/vp9_thread.h"
|
2011-02-14 23:18:18 +01:00
|
|
|
|
2014-01-18 21:16:11 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-10-31 01:53:32 +01:00
|
|
|
typedef struct VP9Decompressor {
|
2012-07-14 00:21:29 +02:00
|
|
|
DECLARE_ALIGNED(16, MACROBLOCKD, mb);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2012-10-31 01:53:32 +01:00
|
|
|
DECLARE_ALIGNED(16, VP9_COMMON, common);
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-10-31 20:21:49 +01:00
|
|
|
DECLARE_ALIGNED(16, int16_t, dqcoeff[MAX_MB_PLANE][64 * 64]);
|
|
|
|
|
2012-10-31 22:40:53 +01:00
|
|
|
VP9D_CONFIG oxcf;
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-04-02 22:34:20 +02:00
|
|
|
const uint8_t *source;
|
2013-09-25 01:38:30 +02:00
|
|
|
size_t source_sz;
|
2011-11-15 17:15:23 +01:00
|
|
|
|
2012-07-14 00:21:29 +02:00
|
|
|
int64_t last_time_stamp;
|
2013-04-02 22:34:20 +02:00
|
|
|
int ready_for_new_data;
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2013-01-15 22:49:44 +01:00
|
|
|
int refresh_frame_flags;
|
2010-09-09 20:42:48 +02:00
|
|
|
|
2012-07-14 00:21:29 +02: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-25 05:55:14 +01:00
|
|
|
int initial_width;
|
|
|
|
int initial_height;
|
2013-07-19 23:40:34 +02:00
|
|
|
|
|
|
|
int do_loopfilter_inline; // apply loopfilter to available rows immediately
|
2013-08-01 01:15:10 +02:00
|
|
|
VP9Worker lf_worker;
|
2013-10-12 01:14:29 +02:00
|
|
|
|
2013-10-26 14:33:45 +02:00
|
|
|
VP9Worker *tile_workers;
|
|
|
|
int num_tile_workers;
|
|
|
|
|
2013-12-28 00:25:54 +01:00
|
|
|
VP9LfSync lf_row_sync;
|
|
|
|
|
2013-10-12 01:14:29 +02: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;
|
2012-10-31 01:53:32 +01:00
|
|
|
} VP9D_COMP;
|
2010-05-18 17:58:33 +02:00
|
|
|
|
2014-01-18 21:16:11 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} // extern "C"
|
|
|
|
#endif
|
|
|
|
|
2013-09-29 20:34:21 +02:00
|
|
|
#endif // VP9_DECODER_VP9_ONYXD_INT_H_
|