a5af392aae
This commit adds an encoder workaround to support better compatibility with a non-compliant hardware vp9 profile 2 decoder. The known issue with this decoder is: The decoder assumes a wrong value, 127 instead of the correct value of 511 and 2047, for any assumed top-left corner pixel in UV planes for 10 and 12 bit, respectively. Such assumed top-left corner pixel is used for INTRA prediction when a real decoded/reconstructed pixel is not avalable, e.g. when it is located inside the row above the top row or inside the column left to the leftest column of a video image. Change-Id: Ic15a938a3107e1b85e96cb7903a5c4220986b99d
45 lines
1.7 KiB
C
45 lines
1.7 KiB
C
/*
|
|
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef VP9_COMMON_VP9_COMMON_DATA_H_
|
|
#define VP9_COMMON_VP9_COMMON_DATA_H_
|
|
|
|
#include "vp9/common/vp9_enums.h"
|
|
#include "vpx/vpx_integer.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
extern const uint8_t b_width_log2_lookup[BLOCK_SIZES];
|
|
extern const uint8_t b_height_log2_lookup[BLOCK_SIZES];
|
|
extern const uint8_t mi_width_log2_lookup[BLOCK_SIZES];
|
|
extern const uint8_t num_8x8_blocks_wide_lookup[BLOCK_SIZES];
|
|
extern const uint8_t num_8x8_blocks_high_lookup[BLOCK_SIZES];
|
|
extern const uint8_t num_4x4_blocks_high_lookup[BLOCK_SIZES];
|
|
extern const uint8_t num_4x4_blocks_wide_lookup[BLOCK_SIZES];
|
|
extern const uint8_t size_group_lookup[BLOCK_SIZES];
|
|
extern const uint8_t num_pels_log2_lookup[BLOCK_SIZES];
|
|
extern const PARTITION_TYPE partition_lookup[][BLOCK_SIZES];
|
|
extern const BLOCK_SIZE subsize_lookup[PARTITION_TYPES][BLOCK_SIZES];
|
|
extern const TX_SIZE max_txsize_lookup[BLOCK_SIZES];
|
|
extern const BLOCK_SIZE txsize_to_bsize[TX_SIZES];
|
|
extern const TX_SIZE tx_mode_to_biggest_tx_size[TX_MODES];
|
|
extern const BLOCK_SIZE ss_size_lookup[BLOCK_SIZES][2][2];
|
|
#if CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH
|
|
extern const uint8_t need_top_left[INTRA_MODES];
|
|
#endif // CONFIG_BETTER_HW_COMPATIBILITY && CONFIG_VP9_HIGHBITDEPTH
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // VP9_COMMON_VP9_COMMON_DATA_H_
|