Home | History | Annotate | Download | only in encoder
      1 /*
      2  * Copyright (c) 2016, Alliance for Open Media. All rights reserved
      3  *
      4  * This source code is subject to the terms of the BSD 2 Clause License and
      5  * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
      6  * was not distributed with this source code in the LICENSE file, you can
      7  * obtain it at www.aomedia.org/license/software. If the Alliance for Open
      8  * Media Patent License 1.0 was not distributed with this source code in the
      9  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
     10  */
     11 
     12 #ifndef AOM_AV1_ENCODER_ENCODEFRAME_H_
     13 #define AOM_AV1_ENCODER_ENCODEFRAME_H_
     14 
     15 #include "aom/aom_integer.h"
     16 #include "av1/common/blockd.h"
     17 #include "av1/common/enums.h"
     18 
     19 #ifdef __cplusplus
     20 extern "C" {
     21 #endif
     22 
     23 #define DELTAQ_MODULATION 1  // 0: variance based, 1: wavelet AC energy based
     24 
     25 struct macroblock;
     26 struct yv12_buffer_config;
     27 struct AV1_COMP;
     28 struct ThreadData;
     29 
     30 void av1_setup_src_planes(struct macroblock *x,
     31                           const struct yv12_buffer_config *src, int mi_row,
     32                           int mi_col, const int num_planes, BLOCK_SIZE bsize);
     33 
     34 void av1_encode_frame(struct AV1_COMP *cpi);
     35 
     36 void av1_alloc_tile_data(struct AV1_COMP *cpi);
     37 void av1_init_tile_data(struct AV1_COMP *cpi);
     38 void av1_encode_tile(struct AV1_COMP *cpi, struct ThreadData *td, int tile_row,
     39                      int tile_col);
     40 void av1_encode_sb_row(struct AV1_COMP *cpi, struct ThreadData *td,
     41                        int tile_row, int tile_col, int mi_row);
     42 
     43 #ifdef __cplusplus
     44 }  // extern "C"
     45 #endif
     46 
     47 #endif  // AOM_AV1_ENCODER_ENCODEFRAME_H_
     48