History

Bink version 'b' video decoder

Based on original patch by Kostya Shishkov

Peter Ross committed 15 years ago

Commit e00f41d1 parent b0294c85 files · +371 −20Browse files

Showing the changes to libavcodec/binkdata.h (1 of 5 files). Show all

Unified · Split

libavcodec/binkdata.h+41−0
@@ -611,4 +611,45 @@ static const uint32_t bink_inter_quant[16][64] = { · 610 unmodified lines
611611 },
612612 };
613613
614+static const uint8_t binkb_runbits[64] = {
615+ 6, 6, 6, 6, 6, 6, 6, 6,
616+ 6, 6, 6, 6, 6, 6, 6, 6,
617+ 6, 6, 6, 6, 6, 6, 6, 6,
618+ 6, 6, 6, 6, 6, 6, 6, 6,
619+ 5, 5, 5, 5, 5, 5, 5, 5,
620+ 5, 5, 5, 5, 5, 5, 5, 5,
621+ 4, 4, 4, 4, 4, 4, 4, 4,
622+ 3, 3, 3, 3, 2, 2, 1, 0,
623+};
624+
625+static const uint8_t binkb_intra_seed[64] = {
626+ 16, 16, 16, 19, 16, 19, 22, 22,
627+ 22, 22, 26, 24, 26, 22, 22, 27,
628+ 27, 27, 26, 26, 26, 29, 29, 29,
629+ 27, 27, 27, 26, 34, 34, 34, 29,
630+ 29, 29, 27, 27, 37, 34, 34, 32,
631+ 32, 29, 29, 38, 37, 35, 35, 34,
632+ 35, 40, 40, 40, 38, 38, 48, 48,
633+ 46, 46, 58, 56, 56, 69, 69, 83,
634+};
635+
636+static const uint8_t binkb_inter_seed[64] = {
637+ 16, 17, 17, 18, 18, 18, 19, 19,
638+ 19, 19, 20, 20, 20, 20, 20, 21,
639+ 21, 21, 21, 21, 21, 22, 22, 22,
640+ 22, 22, 22, 22, 23, 23, 23, 23,
641+ 23, 23, 23, 23, 24, 24, 24, 25,
642+ 24, 24, 24, 25, 26, 26, 26, 26,
643+ 25, 27, 27, 27, 27, 27, 28, 28,
644+ 28, 28, 30, 30, 30, 31, 31, 33,
645+};
646+
647+static const uint8_t binkb_num[16] = {
648+ 1, 4, 5, 2, 7, 8, 3, 7, 4, 9, 5, 6, 7, 8, 9, 10
649+};
650+
651+static const uint8_t binkb_den[16] = {
652+ 1, 3, 3, 1, 3, 3, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1
653+};
654+
614655 #endif /* AVCODEC_BINKDATA_H */

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