]> granicus.if.org Git - libvpx/commit
Change the strategy for deciding the display size
authorAdrian Grange <agrange@google.com>
Fri, 13 Dec 2013 18:15:03 +0000 (10:15 -0800)
committerAdrian Grange <agrange@google.com>
Mon, 13 Jan 2014 19:48:47 +0000 (11:48 -0800)
commit482c39c0e9f30124a26d159ece063510818d4b1d
tree6df72efc26e8d9e3665e2c6275c7c7a41f66e286
parent4ae8ac7be8a7da7490c17ea38d793ced2566dde6
Change the strategy for deciding the display size

There are three contributors to the definition of how the
display size is set:

(1) display width/height set in the container.
(2) display size (optional in the frame header)
(3) decoded frame size (from the frame header)

This patch modifies the way that vpxdec defines the display
size to give preference to these three criteria in the order
given above. If the container sets a non-zero size, it is
used, otherwise the display size specified in the first
decoded frame is used (if specified), with the raw
decoded frame size of the first frame used as a last resort.

The display size set in frames other than the first is
always ignored in this implementation.

Change-Id: I7e98d817d3f5894d559dd2aeb0a6cb1959b9092b
vpxdec.c