diff options
author | angiebird <angiebird@google.com> | 2019-11-10 10:48:22 -0800 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2019-11-18 11:37:24 -0800 |
commit | 7ee697a5daea0dfd7470cc9d1b352de01af0836f (patch) | |
tree | abc449cf893241be2d95df1a7aecbe3f6f13477a /vp9/vp9_cx_iface.c | |
parent | 9f33d7530ab42e21c2ec2151a5db94fc623823f1 (diff) | |
download | libvpx-7ee697a5daea0dfd7470cc9d1b352de01af0836f.tar libvpx-7ee697a5daea0dfd7470cc9d1b352de01af0836f.tar.gz libvpx-7ee697a5daea0dfd7470cc9d1b352de01af0836f.tar.bz2 libvpx-7ee697a5daea0dfd7470cc9d1b352de01af0836f.zip |
Add ComputeFirstPassStats()
Change-Id: Iaed87a4fa35f456aec5d88d07fade636280eb211
Diffstat (limited to 'vp9/vp9_cx_iface.c')
-rw-r--r-- | vp9/vp9_cx_iface.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index e3ae48bd1..47c7be1df 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -22,6 +22,7 @@ #include "vp9/encoder/vp9_encoder.h" #include "vpx/vp8cx.h" #include "vp9/common/vp9_alloccommon.h" +#include "vp9/vp9_cx_iface.h" #include "vp9/encoder/vp9_firstpass.h" #include "vp9/encoder/vp9_lookahead.h" #include "vp9/vp9_cx_iface.h" @@ -1086,18 +1087,6 @@ static int write_superframe_index(vpx_codec_alg_priv_t *ctx) { return index_sz; } -static int64_t timebase_units_to_ticks(const vpx_rational64_t *timestamp_ratio, - int64_t n) { - return n * timestamp_ratio->num / timestamp_ratio->den; -} - -static int64_t ticks_to_timebase_units(const vpx_rational64_t *timestamp_ratio, - int64_t n) { - int64_t round = timestamp_ratio->num / 2; - if (round > 0) --round; - return (n * timestamp_ratio->den + round) / timestamp_ratio->num; -} - static vpx_codec_frame_flags_t get_frame_pkt_flags(const VP9_COMP *cpi, unsigned int lib_flags) { vpx_codec_frame_flags_t flags = lib_flags << 16; |