Add reference picture lists to kvz_frame_info.

This commit is contained in:
Arttu Ylä-Outinen 2015-09-09 10:16:59 +03:00
parent d5dceb45f1
commit 7edc1b0b1c
3 changed files with 15 additions and 1 deletions

View file

@ -118,6 +118,7 @@ static void set_frame_info(kvz_frame_info *const info, const encoder_state_t *co
info->poc = state->global->poc,
info->qp = state->global->QP;
info->slice_type = state->global->slicetype;
kvz_encoder_get_ref_lists(state, info->ref_list_len, info->ref_list);
}

View file

@ -217,6 +217,19 @@ typedef struct kvz_frame_info {
*/
enum kvz_slice_type slice_type;
/**
* \brief Reference picture lists
*
* The first list contains the reference picture POCs that are less than the
* POC of this frame and the second one contains those that are greater.
*/
int ref_list[2][16];
/**
* \brief Lengths of the reference picture lists
*/
int ref_list_len[2];
} kvz_frame_info;
/**

View file

@ -21,6 +21,6 @@
****************************************************************************/
// KVZ_API_VERSION is incremented every time the public api changes.
#define KVZ_API_VERSION 5
#define KVZ_API_VERSION 6
#endif // KVAZAAR_VERSION_H_