History

avcodec/ffv1enc: Fix RCT for GBR colorspace

It performs better when its less buggy Compression changes for rgb_scanline_half_piz_dw_t08 (using float16 with remaping) from 56086 byte to 34371 (with a single slice its 28122 byte) prior remap it was 188186 bytes ACES_OT_VWG_SampleFrames/ACES_OT_VWG_SampleFrames improves too but only by a fraction of a percent

Michael Niedermayer committed 1 year ago

Commit 62c98cd1 parent 497b2051 file · +4 −0Browse files

Unified · Split

libavcodec/ffv1enc.c+4−0
@@ -1046,6 +1046,10 @@ static void choose_rct_params(const FFV1Context *f, FFV1SliceContext *sc, · 1045 unmodified lines
1046 r = p[0];1046 r = p[0];
1047 g = p[1];1047 g = p[1];
1048 b = p[2];1048 b = p[2];
1049 } else if (f->use32bit || transparency) {
1050 g = *((const uint16_t *)(src[0] + x*2 + stride[0]*y));
1051 b = *((const uint16_t *)(src[1] + x*2 + stride[1]*y));
1052 r = *((const uint16_t *)(src[2] + x*2 + stride[2]*y));
1049 } else {1053 } else {
1050 b = *((const uint16_t*)(src[0] + x*2 + stride[0]*y));1054 b = *((const uint16_t*)(src[0] + x*2 + stride[0]*y));
1051 g = *((const uint16_t*)(src[1] + x*2 + stride[1]*y));1055 g = *((const uint16_t*)(src[1] + x*2 + stride[1]*y));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t