]> granicus.if.org Git - libvpx/commitdiff
cleanup -wextra warnings:
authorYaowu Xu <yaowu@google.com>
Tue, 13 May 2014 17:28:47 +0000 (10:28 -0700)
committerYaowu Xu <yaowu@google.com>
Thu, 15 May 2014 22:59:25 +0000 (15:59 -0700)
  vp9_decoder.c
  vp9_dthread.c

Change-Id: Iaafe941545db98e9e3559096a955894646084ac2

vp9/decoder/vp9_decodeframe.c
vp9/decoder/vp9_decoder.c
vp9/decoder/vp9_dthread.c
vp9/decoder/vp9_dthread.h

index 57ee4cdfc26d15ce84bf7e4aad4a8d77d2c81abc..099e685f0b25e84fa5b7b0a1d42e8b0b090c2d07 100644 (file)
@@ -1350,7 +1350,7 @@ int vp9_decode_frame(VP9Decoder *pbi,
     *p_data_end = decode_tiles_mt(pbi, data + first_partition_size, data_end);
     // If multiple threads are used to decode tiles, then we use those threads
     // to do parallel loopfiltering.
-    vp9_loop_filter_frame_mt(new_fb, pbi, cm, cm->lf.filter_level, 0, 0);
+    vp9_loop_filter_frame_mt(new_fb, pbi, cm, cm->lf.filter_level, 0);
   } else {
     if (do_loopfilter_inline && pbi->lf_worker.data1 == NULL) {
       CHECK_MEM_ERROR(cm, pbi->lf_worker.data1,
index 6f310c765903c938daa27b65a7014291d3d61536..9e0811fbcb211daf0eab51517138d43b3554d5a4 100644 (file)
@@ -304,11 +304,14 @@ int vp9_get_raw_frame(VP9Decoder *pbi, YV12_BUFFER_CONFIG *sd,
                       int64_t *time_stamp, int64_t *time_end_stamp,
                       vp9_ppflags_t *flags) {
   int ret = -1;
+#if !CONFIG_VP9_POSTPROC
+  (void)*flags;
+#endif
 
   if (pbi->ready_for_new_data == 1)
     return ret;
 
-  /* ie no raw frame to show!!! */
+  /* no raw frame to show!!! */
   if (pbi->common.show_frame == 0)
     return ret;
 
@@ -319,8 +322,8 @@ int vp9_get_raw_frame(VP9Decoder *pbi, YV12_BUFFER_CONFIG *sd,
 #if CONFIG_VP9_POSTPROC
   ret = vp9_post_proc_frame(&pbi->common, sd, flags);
 #else
-    *sd = *pbi->common.frame_to_show;
-    ret = 0;
+  *sd = *pbi->common.frame_to_show;
+  ret = 0;
 #endif /*!CONFIG_POSTPROC*/
   vp9_clear_system_state();
   return ret;
index 5fe5ed79a364d8f7cdd32f0337042295eafcaf47..504fb9eda6632525e98c1bd8d5661b2f6f908831 100644 (file)
@@ -135,7 +135,7 @@ static int loop_filter_row_worker(void *arg1, void *arg2) {
 void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame,
                               VP9Decoder *pbi, VP9_COMMON *cm,
                               int frame_filter_level,
-                              int y_only, int partial_frame) {
+                              int y_only) {
   VP9LfSync *const lf_sync = &pbi->lf_row_sync;
   // Number of superblock rows and cols
   const int sb_rows = mi_cols_aligned_to_sb(cm->mi_rows) >> MI_BLOCK_SIZE_LOG2;
index c3b7a293b8476198c2564162abfc545925ed9a1f..a727e2aef260c1970f038ce1a69e5c76acfe0416 100644 (file)
@@ -52,6 +52,6 @@ void vp9_loop_filter_frame_mt(YV12_BUFFER_CONFIG *frame,
                               struct VP9Decoder *pbi,
                               struct VP9Common *cm,
                               int frame_filter_level,
-                              int y_only, int partial_frame);
+                              int y_only);
 
 #endif  // VP9_DECODER_VP9_DTHREAD_H_