shshankjain / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

api function returning whether a frame is droppable #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the ffmpeg guys have added this useful function we should add a similar one.   

+int ff_vp8_is_reference(AVCodecContext *avctx, const uint8_t *buf, int size)
+{
+    VP8Context *s = avctx->priv_data;
+    decode_frame_header(s, buf, size);
+
+    return s->keyframe || s->update_last || s->update_probabilities ||
+           s->update_lf_deltas || s->segment.update_map ||
+           s->update_altref != VP8_FRAME_NONE ||
+           s->update_golden != VP8_FRAME_NONE;
+}
+

Original issue reported on code.google.com by jimbankoski@google.com on 9 Dec 2010 at 1:29

GoogleCodeExporter commented 9 years ago

Original comment by iss...@webmproject.org on 16 Mar 2011 at 2:51

GoogleCodeExporter commented 9 years ago

Original comment by jkoles...@google.com on 17 Mar 2011 at 12:28

GoogleCodeExporter commented 9 years ago
I guess this was the purpose of the flag VPX_FRAME_IS_DROPPABLE in 
vpx_codec_cx_pkt_t.data.frame.flags? However, AFAICT, the flag is not 
implemented.

(This relates to the discussion in 
https://groups.google.com/a/webmproject.org/group/webm-discuss/browse_thread/thr
ead/cf19558bd7b4e5a6/67c31345ea449363)

Original comment by hlun...@google.com on 19 Apr 2011 at 7:47

GoogleCodeExporter commented 9 years ago
https://review.webmproject.org/2607

Original comment by jkoles...@google.com on 7 Jul 2011 at 2:40