summaryrefslogtreecommitdiff
path: root/test/decode_api_test.cc
AgeCommit message (Collapse)Author
2015-02-13Add VP9 decoder control to get frame sizeAdrian Grange
Adds a control function that allows the caller to get the size of the current frame. Change-Id: Iddfdedc0f3aa9aa46119f87d294681c82f275c9f
2014-12-18Ensure the error-concealment code is availableJohann
When it's configured, make sure it can be configured. When it's not, make sure it fails. Change-Id: I857d4b8014547ddbad70395f17e58d5838bd142f
2014-08-12decode_api_test: fix type conversion warningJames Zern
size_t -> uint32 in the call to vpx_codec_decode() Change-Id: Ibf39d3749321c97292b35ac0631fa22211cff800
2014-08-12get_ref_frame: check ref_frame_map valueJames Zern
'ref_frame_map' is initialized to -1. avoids using an invalid index if VP9_GET_REFERENCE/VP8_COPY_REFERENCE controls are issued after a decode error. Change-Id: I4599762c4d0b07a5943a72bf4a86ccb596cc062a
2014-08-12VP8D_GET_FRAME_CORRUPTED: check frame pointerJames Zern
if the decode of the first frame fails, frame_to_show may not be set. fixes a crash in vpxdec with corrupt data. Change-Id: I5ab9476d005778a13fd42a39d05876bb6c90a93c
2014-08-11vpx_codec_decode: check data sizeJames Zern
When a valid data pointer is given make sure the size is greater than zero. A previous check for vp9 was incorrectly removed in: 7050074 Make the api behavior conform to api spec. No semantics for valid pointers + 0-sized frames are defined for VPx codecs, so move the check to vpx_codec_decode(). This avoids an assert in vp9. + add some basic invalid param testing for decoder init/decode/destroy Change-Id: I99f9cef6076d15874fd72ac973f2685d8a2353c3