]> granicus.if.org Git - libvpx/commitdiff
Merge changes from topic 'missing-proto'
authorJames Zern <jzern@google.com>
Fri, 23 Jun 2017 05:44:24 +0000 (05:44 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Fri, 23 Jun 2017 05:44:24 +0000 (05:44 +0000)
* changes:
  onyxd_int.h: add missing prototypes
  onyxd.h: add vp8dx_references_buffer prototype
  vp[89],vpx_dsp: add missing includes
  vp8,encodeframe.h: correct prototypes
  vp8: add temporal_filter.h
  add picklpf.h
  add ethreading.h
  vp8,bitstream.h: add missing prototypes
  vp8: remove vp8_fast_quantize_b_mmx
  vp8,loopfilter_filters: make some functions static
  vp9_ratectrl: make adjust_gf_boost_lag_one_pass_vbr static
  vp9_encodeframe: make scale_part_thresh_sumdiff static
  vp9_alt_ref_aq: correct vp9_alt_ref_aq_create proto
  tiny_ssim: make some functions static

1  2 
vp8/vp8_dx_iface.c
vp9/encoder/vp9_encodeframe.c
vp9/encoder/vp9_ratectrl.c

diff --combined vp8/vp8_dx_iface.c
index 8ed0f40e6028d617408cf1e483d78e2a95fe9524,4868f15a63f80077dd57ea29f6bf6e1070daa9f5..987a5b8a4fde9274f0a473be6fc5853de1c39e5d
@@@ -228,8 -228,7 +228,8 @@@ static void yuvconfig2image(vpx_image_
  }
  
  static int update_fragments(vpx_codec_alg_priv_t *ctx, const uint8_t *data,
 -                            unsigned int data_sz, vpx_codec_err_t *res) {
 +                            unsigned int data_sz,
 +                            volatile vpx_codec_err_t *res) {
    *res = VPX_CODEC_OK;
  
    if (ctx->fragments.count == 0) {
  static vpx_codec_err_t vp8_decode(vpx_codec_alg_priv_t *ctx,
                                    const uint8_t *data, unsigned int data_sz,
                                    void *user_priv, long deadline) {
 -  vpx_codec_err_t res = VPX_CODEC_OK;
 +  volatile vpx_codec_err_t res;
    unsigned int resolution_change = 0;
    unsigned int w, h;
  
@@@ -581,7 -580,6 +581,6 @@@ static vpx_codec_err_t vp8_get_last_ref
    }
  }
  
- extern int vp8dx_references_buffer(VP8_COMMON *oci, int ref_frame);
  static vpx_codec_err_t vp8_get_last_ref_frame(vpx_codec_alg_priv_t *ctx,
                                                va_list args) {
    int *ref_info = va_arg(args, int *);
index 786efd24a5c000660de5c7c2e5ab942386c64baf,895e56af68c04e228c3a74cf39ff47145b092b2c..2b694a389c3e48cdc587b8675cd7e0edaeb50a83
@@@ -489,8 -489,9 +489,9 @@@ static int set_vt_partitioning(VP9_COM
    return 0;
  }
  
- int64_t scale_part_thresh_sumdiff(int64_t threshold_base, int speed, int width,
-                                   int height, int content_state) {
+ static int64_t scale_part_thresh_sumdiff(int64_t threshold_base, int speed,
+                                          int width, int height,
+                                          int content_state) {
    if (speed >= 8) {
      if (width <= 640 && height <= 480)
        return (5 * threshold_base) >> 2;
@@@ -1022,9 -1023,6 +1023,9 @@@ static void avg_source_sad(VP9_COMP *cp
    if (tmp_variance < (tmp_sse >> 3) && (tmp_sse - tmp_variance) > 10000)
      x->content_state_sb = kLowVarHighSumdiff;
  
 +  if (tmp_sad > (avg_source_sad_threshold << 1))
 +    x->content_state_sb = kVeryHighSad;
 +
    if (cpi->content_state_sb_fd != NULL) {
      if (tmp_sad < avg_source_sad_threshold2) {
        // Cap the increment to 255.
@@@ -1200,9 -1198,7 +1201,9 @@@ static int choose_partitioning(VP9_COM
      set_ref_ptrs(cm, xd, mi->ref_frame[0], mi->ref_frame[1]);
      vp9_build_inter_predictors_sb(xd, mi_row, mi_col, BLOCK_64X64);
  
 -    x->sb_is_skin = skin_sb_split(cpi, x, low_res, mi_row, mi_col, force_split);
 +    if (cpi->use_skin_detection)
 +      x->sb_is_skin =
 +          skin_sb_split(cpi, x, low_res, mi_row, mi_col, force_split);
  
      d = xd->plane[0].dst.buf;
      dp = xd->plane[0].dst.stride;
index 25dba189edb9962b978250f84f826a810cc76a71,12a42490cbfaf9766b0ab42a9752202d2e69ec7f..1b5279412ab011078867d42c759355ba75d6319a
@@@ -209,7 -209,7 +209,7 @@@ int vp9_estimate_bits_at_q(FRAME_TYPE f
    const int bpm =
        (int)(vp9_rc_bits_per_mb(frame_type, q, correction_factor, bit_depth));
    return VPXMAX(FRAME_OVERHEAD_BITS,
 -                (int)((uint64_t)bpm * mbs) >> BPER_MB_NORMBITS);
 +                (int)(((uint64_t)bpm * mbs) >> BPER_MB_NORMBITS));
  }
  
  int vp9_rc_clamp_pframe_target_size(const VP9_COMP *const cpi, int target) {
@@@ -2070,7 -2070,8 +2070,8 @@@ int vp9_resize_one_pass_cbr(VP9_COMP *c
    return resize_action;
  }
  
- void adjust_gf_boost_lag_one_pass_vbr(VP9_COMP *cpi, uint64_t avg_sad_current) {
+ static void adjust_gf_boost_lag_one_pass_vbr(VP9_COMP *cpi,
+                                              uint64_t avg_sad_current) {
    VP9_COMMON *const cm = &cpi->common;
    RATE_CONTROL *const rc = &cpi->rc;
    int target;