Initial version of alpha channel support
This is a mostly-working implementation of an extra channel in the bitstream. Configure with --enable-alpha to test. Notable TODOs: - Add extra channel to all mismatch tests, PSNR, SSIM, etc - Configurable subsampling - Variable number of planes (currently always uses all 4) - Loop filtering - Per-plane lossless quantizer - ARNR support This implementation just uses the same contents as the Y channel for the A channel, due to lack of content and general pain in playing back 4 channel content. A later patch will use the actual alpha channel passed in from outside the codec. Change-Id: Ibf81f023b1c570bd84b3064e9b4b8ae52e087592
This commit is contained in:
@@ -44,7 +44,6 @@ static void subtract_plane(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize, int plane) {
|
||||
const uint8_t *src = x->plane[plane].src.buf;
|
||||
const int src_stride = x->plane[plane].src.stride;
|
||||
|
||||
assert(plane < 3);
|
||||
vp9_subtract_block(bh, bw,
|
||||
x->plane[plane].src_diff, bw, src, src_stride,
|
||||
xd->plane[plane].dst.buf, xd->plane[plane].dst.stride);
|
||||
|
||||
Reference in New Issue
Block a user