Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flow control to print CTU stats to stats file when the stats-file-prefix is set #15

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/encoder_state-bitstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include "threadqueue.h"
#include "videoframe.h"
#include "reshape.h"
#include "rate_control.h"

#define JVET_S0266_VUI_length 1
#define LUMA_ADAPTIVE_DEBLOCKING_FILTER_QP_OFFSET 1
Expand Down Expand Up @@ -1574,6 +1575,9 @@ static void encoder_state_write_bitstream_main(encoder_state_t * const state)
state->frame->total_bits_coded = state->previous_encoder_state->frame->total_bits_coded;
}
state->frame->total_bits_coded += newpos - curpos;
if(state->encoder_control->cfg.stats_file_prefix) {
uvg_update_after_picture(state);
}

state->frame->cur_gop_bits_coded = state->previous_encoder_state->frame->cur_gop_bits_coded;
state->frame->cur_gop_bits_coded += newpos - curpos;
Expand Down
Loading