History

avcodec/codec_desc, jvdec: JV is not intra-only

It reuses the previous frame and does not code unchanged blocks.

Andreas Rheinhardt committed 2 years ago

Commit 41fc62f1 parent 876a2503 files · +8 −10Browse files

Unified · Split

3 files
  1. libavcodec/codec_desc.c +1 −1
  2. libavcodec/jvdec.c +0 −2
  3. tests/ref/fate/jv-demux +7 −7
libavcodec/codec_desc.c+1−1
@@ -1095,7 +1095,7 @@ static const AVCodecDescriptor codec_descriptors[] = { · 1094 unmodified lines
1095 .type = AVMEDIA_TYPE_VIDEO,1095 .type = AVMEDIA_TYPE_VIDEO,
1096 .name = "jv",1096 .name = "jv",
1097 .long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),1097 .long_name = NULL_IF_CONFIG_SMALL("Bitmap Brothers JV video"),
1098 .props = AV_CODEC_PROP_INTRA_ONLY | AV_CODEC_PROP_LOSSY,1098 .props = AV_CODEC_PROP_LOSSY,
1099 },1099 },
1100 {1100 {
1101 .id = AV_CODEC_ID_DFA,1101 .id = AV_CODEC_ID_DFA,
libavcodec/jvdec.c+0−2
@@ -215,8 +215,6 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *rframe, · 214 unmodified lines
215 }215 }
216 216
217 if (video_size) {217 if (video_size) {
218 s->frame->flags |= AV_FRAME_FLAG_KEY;
219 s->frame->pict_type = AV_PICTURE_TYPE_I;
220#if FF_API_PALETTE_HAS_CHANGED218#if FF_API_PALETTE_HAS_CHANGED
221FF_DISABLE_DEPRECATION_WARNINGS219FF_DISABLE_DEPRECATION_WARNINGS
222 s->frame->palette_has_changed = s->palette_has_changed;220 s->frame->palette_has_changed = s->palette_has_changed;
tests/ref/fate/jv-demux+7−7
@@ -11,13 +11,13 @@ · 10 unmodified lines
110, 0, 0, 1, 6, 0x000a0003110, 0, 0, 1, 6, 0x000a0003
121, 0, 0, 131072, 131072, 0x14c664d6121, 0, 0, 131072, 131072, 0x14c664d6
130, 1, 1, 1, 773, 0x11802a51130, 1, 1, 1, 773, 0x11802a51
140, 2, 2, 1, 12974, 0xc2e466b7140, 2, 2, 1, 12974, 0xc2e466b7, F=0x0
150, 3, 3, 1, 12200, 0x3c0eeb31150, 3, 3, 1, 12200, 0x3c0eeb31, F=0x0
160, 4, 4, 1, 13339, 0x91d82488160, 4, 4, 1, 13339, 0x91d82488, F=0x0
170, 5, 5, 1, 13940, 0x064c350a170, 5, 5, 1, 13940, 0x064c350a, F=0x0
180, 6, 6, 1, 14418, 0x078d2dd2180, 6, 6, 1, 14418, 0x078d2dd2, F=0x0
190, 7, 7, 1, 14539, 0x145167ed190, 7, 7, 1, 14539, 0x145167ed, F=0x0
200, 8, 8, 1, 2552, 0xcf2b1db7, F=0x3200, 8, 8, 1, 2552, 0xcf2b1db7, F=0x2
211, 131072, 131072, 1764, 1764, 0x30be734d211, 131072, 131072, 1764, 1764, 0x30be734d
221, 132836, 132836, 1764, 1764, 0xa4c873a7221, 132836, 132836, 1764, 1764, 0xa4c873a7
231, 134600, 134600, 1764, 1764, 0xd5f17443231, 134600, 134600, 1764, 1764, 0xd5f17443

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