[FFmpeg-devel] [PATCH v1 0/5] avcodec/v210enc: remove the duplicate code
lance.lmwang at gmail.com
lance.lmwang at gmail.com
Wed Aug 28 18:45:11 EEST 2019
From: Limin Wang <lance.lmwang at gmail.com>
refine the code to support multithread later, for 8K resolution,
it's too slow for the conversion.
Have test with 8bit and 10bit and keep same frame crc with before.
a. yuv422p10le
./ffmpeg -y -f lavfi -i smptehdbars -sws_flags +accurate_rnd+bitexact -vf \
scale=720x576,format=yuv422p10le -c:v v210 -frames 2 -f framecrc -
before:
0, 0, 0, 1, 1105920, 0x3e2cdf85
0, 1, 1, 1, 1105920, 0x3e2cdf85
patched:
0, 0, 0, 1, 1105920, 0x3e2cdf85
0, 1, 1, 1, 1105920, 0x3e2cdf85
b. yuv422p
./ffmpeg -y -f lavfi -i smptehdbars -sws_flags +accurate_rnd+bitexact -vf \
scale=720x576,format=yuv422p -c:v v210 -frames 2 -f framecrc -
before:
0, 0, 0, 1, 1105920, 0xb6542b1b
0, 1, 1, 1, 1105920, 0xb6542b1b
patched:
0, 0, 0, 1, 1105920, 0xb6542b1b
0, 1, 1, 1, 1105920, 0xb6542b1b
Limin Wang (5):
avcodec/v210enc: add depth parameter for WRITE_PIXELS and CLIP
avcodec/v210enc: make 8bit and 10bit function consistent
avcodec/v210enc: define DEFINE_V210_PLANAR_FUNC to remove duplicate
function
avcodec/v210enc: make 8bit and 10bit process consistent
avcodec/v210enc: define DEFINE_V210_ENCODE_FUNC to remove duplicate
code
libavcodec/v210enc.c | 248 +++++++++++++++++++--------------------------------
1 file changed, 94 insertions(+), 154 deletions(-)
--
2.6.4
More information about the ffmpeg-devel
mailing list