diff options
author | angiebird <angiebird@google.com> | 2019-11-10 20:36:04 -0800 |
---|---|---|
committer | angiebird <angiebird@google.com> | 2019-11-18 11:37:24 -0800 |
commit | 422445a81d4c0da111cbd2d069f37243dfaea893 (patch) | |
tree | 091e9dce27508393e0acf341c1a78ccbc28bef83 /vp9/simple_encode.h | |
parent | 9330bd71a10a216aa0098b2a7a6e17c40c247c27 (diff) | |
download | libvpx-422445a81d4c0da111cbd2d069f37243dfaea893.tar.gz libvpx-422445a81d4c0da111cbd2d069f37243dfaea893.tar.bz2 libvpx-422445a81d4c0da111cbd2d069f37243dfaea893.zip |
Add SimpleEncode::GetCodingFrameNum()
Also add unit tests for GetCodingFrameNum() and EncodeFrame()
Change-Id: I3e7b65f47226be4660409481435f8f784db72a68
Diffstat (limited to 'vp9/simple_encode.h')
-rw-r--r-- | vp9/simple_encode.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vp9/simple_encode.h b/vp9/simple_encode.h index 6308ff5ea..bc8b70bab 100644 --- a/vp9/simple_encode.h +++ b/vp9/simple_encode.h @@ -17,14 +17,22 @@ class SimpleEncode { std::vector<std::vector<double>> ObserveFirstPassStats(); // Initialize the encoder for actual encoding + // This funtion should be called after ComputeFirstPassStats() void StartEncode(); // Free the encoder + // This funtion should be called after StartEncode() or EncodeFrame() void EndEncode(); // Encode a frame + // This funtion should be called after StartEncode() before EndEncode() void EncodeFrame(char *cx_data, size_t *size, size_t max_size); + // Get the number of coding frames for the video. The coding frames include + // show frame and no show frame. + // This funtion should be called after ComputeFirstPassStats() + int GetCodingFrameNum(); + private: class impl; int frame_width; |