diff options
author | Cheng Chen <chengchen@google.com> | 2022-08-26 14:29:32 -0700 |
---|---|---|
committer | Cheng Chen <chengchen@google.com> | 2022-08-26 14:32:17 -0700 |
commit | fd45d113807eb00fd5b9e58784e48e662a6797b9 (patch) | |
tree | 4a715e5fbcfc7906372f7206fec542d0851a518b /vpx | |
parent | 4bfab03e812f32167259f1e84356f862eb71fd44 (diff) | |
download | libvpx-fd45d113807eb00fd5b9e58784e48e662a6797b9.tar libvpx-fd45d113807eb00fd5b9e58784e48e662a6797b9.tar.gz libvpx-fd45d113807eb00fd5b9e58784e48e662a6797b9.tar.bz2 libvpx-fd45d113807eb00fd5b9e58784e48e662a6797b9.zip |
L2E: Add gop size and ARF existence to frame info
Pass the encode frame info to external ml model, with the information
of gop size and whether alt ref is used.
Change-Id: I55be2d3de83d7182c1a1a174e44ead7e19045c9d
Diffstat (limited to 'vpx')
-rw-r--r-- | vpx/vpx_ext_ratectrl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vpx/vpx_ext_ratectrl.h b/vpx/vpx_ext_ratectrl.h index b6c950d87..95b883413 100644 --- a/vpx/vpx_ext_ratectrl.h +++ b/vpx/vpx_ext_ratectrl.h @@ -100,6 +100,14 @@ typedef struct vpx_rc_encodeframe_info { * 1: Valid */ int ref_frame_valid_list[3]; + /*! + * The length of the current GOP. + */ + int gop_size; + /*! + * Whether the current GOP uses an alt ref. + */ + int use_alt_ref; } vpx_rc_encodeframe_info_t; /*!\brief Frame coding result |