Skip to content

Commit

Permalink
Merge "mm-video-v4l2: venc: set correct color range to driver"
Browse files Browse the repository at this point in the history
  • Loading branch information
qctecmdr Service authored and Gerrit - the friendly Code Review server committed Dec 11, 2018
2 parents d427981 + c17e19e commit e04d46f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm-video-v4l2/vidc/venc/src/video_encoder_device_v4l2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4260,10 +4260,10 @@ bool venc_dev::venc_empty_buf(void *buffer, void *pmem_data_buf, unsigned index,
}
} else {
// color_format == 1 ==> RGBA to YUV Color-converted buffer
// Buffers color-converted via C2D have 601-Limited color
// Buffers color-converted via C2D have 601 color
if (!streaming[OUTPUT_PORT]) {
DEBUG_PRINT_HIGH("Setting colorspace 601-L for Color-converted buffer");
venc_set_colorspace(MSM_VIDC_BT601_6_625, 0 /*range-limited*/,
DEBUG_PRINT_HIGH("Setting colorspace 601 for Color-converted buffer");
venc_set_colorspace(MSM_VIDC_BT601_6_625, color_space.range,
MSM_VIDC_TRANSFER_601_6_525, MSM_VIDC_MATRIX_601_6_525);
}
plane[0].m.userptr = (unsigned long) bufhdr->pBuffer;
Expand Down

0 comments on commit e04d46f

Please sign in to comment.