summaryrefslogtreecommitdiff
path: root/libavcodec/sbcdec_data.c
diff options
context:
space:
mode:
authorLinjie Fu <linjie.fu@intel.com>2020-03-08 16:28:46 +0800
committerMark Thompson <sw@jkqxz.net>2020-03-09 23:44:04 +0000
commit2847c5c6f93b00c0ec9fb82dba7c382faf7335cc (patch)
tree52a12b4639b74dd662ee4f872b839f2438a38f78 /libavcodec/sbcdec_data.c
parente6c5329a4302e3085855e7e6e7f147ec28c7f02b (diff)
lavc/vaapi_encode_h265: fix conf_win_xxx_offset for 4:2:2/4:4:4 encoding
Use desc->log2_chroma_w/h to calculate the sps->conf_win_right/bottom_offset. Based on Table 6-1, SubWidthC and SubHeightC depend on chroma format(log2_chroma_w/h). Based on D-28 and D-29, set the correct cropped width/height. croppedWidth = pic_width_in_luma_samples − SubWidthC * ( conf_win_right_offset + conf_win_left_offset ); croppedHeight = pic_height_in_luma_samples − SubHeightC * ( conf_win_bottom_offset + conf_win_top_offset ); Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Diffstat (limited to 'libavcodec/sbcdec_data.c')
0 files changed, 0 insertions, 0 deletions