Skip to content

Commit 362f3ce

Browse files
committed
compress/openapv: Remove RC param
Rate control is selected automatically based on whether QP or bitrate was specified
1 parent f6499ed commit 362f3ce

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

src/video_compress/openapv.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ bool state_video_compress_oapv::parse_fmt(char *fmt)
186186
return false;
187187
}
188188
cdsc.threads = threads;
189-
} else if (IS_KEY_PREFIX(tok, "rc")) {
190-
const int rc = atoi(val);
191-
if (rc != OAPV_RC_CQP && rc != OAPV_RC_ABR) {
192-
MSG(ERROR, "Invalid rc type '%s' (0 = CQP, 1 = ABR).\n", val);
193-
return false;
194-
}
195-
cdsc.param[FRM_INDEX].rc_type = rc;
196189
} else if (IS_KEY_PREFIX(tok, "qp")) {
197190
const int qp = atoi(val);
198191
if ((qp < 0 || qp > 75) && qp != OAPVE_PARAM_QP_AUTO) {
@@ -368,7 +361,7 @@ shared_ptr<video_frame> openapv_compress_tile(void *state, shared_ptr<video_fram
368361
void openapv_print_help(){
369362
color_printf(TBOLD("OpenAPV") " compression usage:\n");
370363
color_printf("\t" TBOLD(
371-
TRED("-c openapv") "[:threads=<n>][:rc=<0|1>][:qp=<n>][:bitrate=<br>]"
364+
TRED("-c openapv") "[:threads=<n>][:qp=<n>][:bitrate=<br>]"
372365
"[:preset=<0-4>][:tile_w=<n>][:tile_h=<n>]"
373366
"[:use_filler=<0|1>][:qp_offset_c1=<n>][:qp_offset_c2=<n>][:qp_offset_c3=<n>]") "\n");
374367
color_printf("\t" TBOLD(TRED("-c openapv") ":help") "\n");

0 commit comments

Comments
 (0)