]> granicus.if.org Git - libvpx/commitdiff
Deadline is not supported in VP9 decoder, removing it completely.
authorDmitry Kovalev <dkovalev@google.com>
Wed, 14 May 2014 00:35:46 +0000 (17:35 -0700)
committerDmitry Kovalev <dkovalev@google.com>
Wed, 14 May 2014 00:35:46 +0000 (17:35 -0700)
Change-Id: I7675f23150404913f4b457add69fb846f6921997

vp9/decoder/vp9_decoder.c
vp9/decoder/vp9_decoder.h
vp9/vp9_dx_iface.c

index 6f310c765903c938daa27b65a7014291d3d61536..80f0727c135382094f3fc7607ee0d079eb0ca9fb 100644 (file)
@@ -219,8 +219,7 @@ static void swap_frame_buffers(VP9Decoder *pbi) {
 }
 
 int vp9_receive_compressed_data(VP9Decoder *pbi,
-                                size_t size, const uint8_t **psource,
-                                int64_t time_stamp) {
+                                size_t size, const uint8_t **psource) {
   VP9_COMMON *const cm = &pbi->common;
   const uint8_t *source = *psource;
   int retcode = 0;
@@ -294,14 +293,12 @@ int vp9_receive_compressed_data(VP9Decoder *pbi,
   }
 
   pbi->ready_for_new_data = 0;
-  pbi->last_time_stamp = time_stamp;
 
   cm->error.setjmp = 0;
   return retcode;
 }
 
 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;
 
@@ -313,8 +310,6 @@ int vp9_get_raw_frame(VP9Decoder *pbi, YV12_BUFFER_CONFIG *sd,
     return ret;
 
   pbi->ready_for_new_data = 1;
-  *time_stamp = pbi->last_time_stamp;
-  *time_end_stamp = 0;
 
 #if CONFIG_VP9_POSTPROC
   ret = vp9_post_proc_frame(&pbi->common, sd, flags);
index d6110c47eace671d321eba5b1e5bd3c03f309914..12014a782bf042fd80eaaa13020fe3474fa43273 100644 (file)
@@ -32,7 +32,6 @@ typedef struct VP9Decoder {
 
   DECLARE_ALIGNED(16, VP9_COMMON, common);
 
-  int64_t last_time_stamp;
   int ready_for_new_data;
 
   int refresh_frame_flags;
@@ -56,12 +55,9 @@ typedef struct VP9Decoder {
 void vp9_initialize_dec();
 
 int vp9_receive_compressed_data(struct VP9Decoder *pbi,
-                                size_t size, const uint8_t **dest,
-                                int64_t time_stamp);
+                                size_t size, const uint8_t **dest);
 
-int vp9_get_raw_frame(struct VP9Decoder *pbi,
-                      YV12_BUFFER_CONFIG *sd,
-                      int64_t *time_stamp, int64_t *time_end_stamp,
+int vp9_get_raw_frame(struct VP9Decoder *pbi, YV12_BUFFER_CONFIG *sd,
                       vp9_ppflags_t *flags);
 
 vpx_codec_err_t vp9_copy_reference_dec(struct VP9Decoder *pbi,
index 6198250203636786467ede8970ee1be1c77fc129..9ba4d56854375eb0c9499f43973485c2ff89dc0c 100644 (file)
@@ -267,10 +267,11 @@ static vpx_codec_err_t decode_one(vpx_codec_alg_priv_t *ctx,
                                   const uint8_t **data, unsigned int data_sz,
                                   void *user_priv, int64_t deadline) {
   YV12_BUFFER_CONFIG sd = { 0 };
-  int64_t time_stamp = 0, time_end_stamp = 0;
   vp9_ppflags_t flags = {0};
   VP9_COMMON *cm = NULL;
 
+  (void)deadline;
+
   ctx->img_avail = 0;
 
   // Determine the stream parameters. Note that we rely on peek_si to
@@ -300,13 +301,13 @@ static vpx_codec_err_t decode_one(vpx_codec_alg_priv_t *ctx,
 
   cm = &ctx->pbi->common;
 
-  if (vp9_receive_compressed_data(ctx->pbi, data_sz, data, deadline))
+  if (vp9_receive_compressed_data(ctx->pbi, data_sz, data))
     return update_error_state(ctx, &cm->error);
 
   if (ctx->base.init_flags & VPX_CODEC_USE_POSTPROC)
     set_ppflags(ctx, &flags);
 
-  if (vp9_get_raw_frame(ctx->pbi, &sd, &time_stamp, &time_end_stamp, &flags))
+  if (vp9_get_raw_frame(ctx->pbi, &sd, &flags))
     return update_error_state(ctx, &cm->error);
 
   yuvconfig2image(&ctx->img, &sd, user_priv);