]> granicus.if.org Git - libvpx/commitdiff
Upstream changes from Chromium Android Clang build.
authorFrank Galligan <fgalligan@google.com>
Fri, 11 Jan 2013 23:34:05 +0000 (15:34 -0800)
committerFrank Galligan <fgalligan@google.com>
Fri, 11 Jan 2013 23:37:23 +0000 (15:37 -0800)
See https://codereview.chromium.org/11875006/

Change-Id: Ied2a17df2b3222635f84aef120eaa9feb53750d2

vp8/encoder/onyx_if.c
vp8/vp8_cx_iface.c
vp9/vp9_dx_iface.c

index 6858d411d990dc8a143df3875e60fd7619314715..7eb7193bf75f8f1323f391dbc25b5d955dc5d711 100644 (file)
@@ -3466,7 +3466,7 @@ static void encode_frame_to_data_rate
         /* Note that we should not throw out a key frame (especially when
          * spatial resampling is enabled).
          */
-        if ((cm->frame_type == KEY_FRAME))
+        if (cm->frame_type == KEY_FRAME)
         {
             cpi->decimation_count = cpi->decimation_factor;
         }
index 83eecba5ceaabcd0b4f494d9ee2b9c6ff98c98c6..b985cb1b7fa88def67d7fdef3e1e658e809b6701 100644 (file)
@@ -1178,7 +1178,9 @@ static vpx_codec_err_t vp8e_set_scalemode(vpx_codec_alg_priv_t *ctx,
     {
         int res;
         vpx_scaling_mode_t scalemode = *(vpx_scaling_mode_t *)data ;
-        res = vp8_set_internal_size(ctx->cpi, scalemode.h_scaling_mode, scalemode.v_scaling_mode);
+        res = vp8_set_internal_size(ctx->cpi,
+                                    (VPX_SCALING)scalemode.h_scaling_mode,
+                                    (VPX_SCALING)scalemode.v_scaling_mode);
 
         if (!res)
         {
index 321fdb9e0175676237d67103c6b236cced669ca6..2d7e4136965d27cd7d3d019a19c1be1af687e604 100644 (file)
@@ -573,7 +573,8 @@ static vpx_codec_err_t vp9_set_reference(vpx_codec_alg_priv_t *ctx,
 
     image2yuvconfig(&frame->img, &sd);
 
-    return vp9_set_reference_dec(ctx->pbi, frame->frame_type, &sd);
+    return vp9_set_reference_dec(ctx->pbi,
+                                 (VP9_REFFRAME)frame->frame_type, &sd);
   } else
     return VPX_CODEC_INVALID_PARAM;
 
@@ -591,7 +592,8 @@ static vpx_codec_err_t vp9_get_reference(vpx_codec_alg_priv_t *ctx,
 
     image2yuvconfig(&frame->img, &sd);
 
-    return vp9_get_reference_dec(ctx->pbi, frame->frame_type, &sd);
+    return vp9_get_reference_dec(ctx->pbi,
+                                 (VP9_REFFRAME)frame->frame_type, &sd);
   } else
     return VPX_CODEC_INVALID_PARAM;