diff options
author | Adrian Grange <agrange@google.com> | 2014-04-09 14:51:29 -0700 |
---|---|---|
committer | Adrian Grange <agrange@google.com> | 2014-04-14 10:54:19 -0700 |
commit | f7bd1274e38ae8ec631887841ea27a10ba366ba2 (patch) | |
tree | 4c68b0653c32e2a3b2245e4ebf2f506cb3acb5f8 /vpx | |
parent | 07dddfa3fdf11c08c8b91b96fe94907be228f2cc (diff) | |
download | libvpx-f7bd1274e38ae8ec631887841ea27a10ba366ba2.tar.gz libvpx-f7bd1274e38ae8ec631887841ea27a10ba366ba2.tar.bz2 libvpx-f7bd1274e38ae8ec631887841ea27a10ba366ba2.zip |
Enable vpxenc to specify internal coded frame size
Added command line flags "resize-width" & "resize-height"
to allow the user to specify the frame size to encode at.
These two flags are ignored if the "resize-allowed" switch
is not set to 1.
All frames in the clip are then encoded at this size, which
must be smaller than the raw frame size.
Change-Id: I3d64bd9303d5c0bd678461a866a1ea621700d744
Diffstat (limited to 'vpx')
-rw-r--r-- | vpx/vpx_encoder.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vpx/vpx_encoder.h b/vpx/vpx_encoder.h index 2c882c19a..571ad3fc5 100644 --- a/vpx/vpx_encoder.h +++ b/vpx/vpx_encoder.h @@ -396,6 +396,19 @@ extern "C" { */ unsigned int rc_resize_allowed; + /*!\brief Internal coded frame width. + * + * If spatial resampling is enabled this specifies the width of the + * encoded frame. + */ + unsigned int rc_scaled_width; + + /*!\brief Internal coded frame height. + * + * If spatial resampling is enabled this specifies the height of the + * encoded frame. + */ + unsigned int rc_scaled_height; /*!\brief Spatial resampling up watermark. * |