History

lavc/texturedsp: require explicitly-set frame dimensions

This change decouples the frame dimensions from avctx, which is useful for DXV decoding, and fixes incorrect behavior in the existing implementation. Tested with `make fate THREADS=7` and `make fate THREADS=7 THREAD_TYPE=slice`.

Connor Worley committed 2 years ago

Commit 1487f611 parent 0895ef09 files · +25 −11Browse files

Showing the changes to libavcodec/dds.c (1 of 9 files). Show all

Unified · Split

libavcodec/dds.c+2−0
@@ -636,6 +636,8 @@ static int dds_decode(AVCodecContext *avctx, AVFrame *frame, · 635 unmodified lines
636 ctx->dec.tex_data.in = gbc->buffer;636 ctx->dec.tex_data.in = gbc->buffer;
637 ctx->dec.frame_data.out = frame->data[0];637 ctx->dec.frame_data.out = frame->data[0];
638 ctx->dec.stride = frame->linesize[0];638 ctx->dec.stride = frame->linesize[0];
639 ctx->dec.width = avctx->coded_width;
640 ctx->dec.height = avctx->coded_height;
639 ff_texturedsp_exec_decompress_threads(avctx, &ctx->dec);641 ff_texturedsp_exec_decompress_threads(avctx, &ctx->dec);
640 } else if (!ctx->paletted && ctx->bpp == 4 && avctx->pix_fmt == AV_PIX_FMT_PAL8) {642 } else if (!ctx->paletted && ctx->bpp == 4 && avctx->pix_fmt == AV_PIX_FMT_PAL8) {
641 uint8_t *dst = frame->data[0];643 uint8_t *dst = frame->data[0];

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