Skip to content

Commit 9dc2c8f

Browse files
committed
testcard: summary - print rather bpc than bpp
bpp represented rather the container size, so both for RGBA and R10k it was 32 b (and eg. for v210 21.33 instead of actual 20). bpc (bit depth per component) seems to be more comprehensible value.
1 parent 6b87da8 commit 9dc2c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/video_capture/testcard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ static int vidcap_testcard_init(struct vidcap_params *params, void **state)
413413

414414
s->last_frame_time = std::chrono::steady_clock::now();
415415

416-
LOG(LOG_LEVEL_INFO) << MOD_NAME << "capture set to " << desc << ", bpp "
417-
<< get_bpp(s->frame->color_spec) * 8 << ", pattern: " << s->pattern
416+
LOG(LOG_LEVEL_INFO) << MOD_NAME << "capture set to " << desc << ", bpc "
417+
<< get_bits_per_component(s->frame->color_spec) << ", pattern: " << s->pattern
418418
<< ", audio " << (s->grab_audio ? "on" : "off") << "\n";
419419

420420
if (strip_fmt != NULL) {

0 commit comments

Comments
 (0)