1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libvpx/vp9/encoder/vp9_encodeintra.c Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* 1.5 + * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license 1.8 + * that can be found in the LICENSE file in the root of the source 1.9 + * tree. An additional intellectual property rights grant can be found 1.10 + * in the file PATENTS. All contributing project authors may 1.11 + * be found in the AUTHORS file in the root of the source tree. 1.12 + */ 1.13 + 1.14 +#include "./vpx_config.h" 1.15 +#include "./vp9_rtcd.h" 1.16 +#include "vp9/encoder/vp9_quantize.h" 1.17 +#include "vp9/common/vp9_reconintra.h" 1.18 +#include "vp9/encoder/vp9_encodemb.h" 1.19 +#include "vp9/encoder/vp9_encodeintra.h" 1.20 + 1.21 +int vp9_encode_intra(MACROBLOCK *x, int use_16x16_pred) { 1.22 + MB_MODE_INFO * mbmi = &x->e_mbd.mi_8x8[0]->mbmi; 1.23 + x->skip_encode = 0; 1.24 + mbmi->mode = DC_PRED; 1.25 + mbmi->ref_frame[0] = INTRA_FRAME; 1.26 + mbmi->tx_size = use_16x16_pred ? (mbmi->sb_type >= BLOCK_16X16 ? TX_16X16 1.27 + : TX_8X8) 1.28 + : TX_4X4; 1.29 + vp9_encode_intra_block_y(x, mbmi->sb_type); 1.30 + return vp9_get_mb_ss(x->plane[0].src_diff); 1.31 +}