64 uint8_t *plane1, ptrdiff_t stride1,
76 for (
i = 0;
i < 8;
i++)
77 dst[
i] = (
tmp >> (
i * 3)) & 0x7;
90 }
else if (
code == 0) {
92 }
else if (
code == 1) {
97 (
code - 1) * yo1) / 7);
101 }
else if (
code == 7) {
105 (
code - 1) * yo1) / 5);
114 uint8_t *plane1, ptrdiff_t stride1,
128 for (y = 0; y < 4; y++) {
129 for (x = 0; x < 4; x++) {
130 int co_code = co_indices[x + y * 4];
131 int cg_code = cg_indices[x + y * 4];
152 for (y = 0; y < 4; y++) {
153 for (x = 0; x < 4; x++) {
154 int yo_code = yo_indices[x + y * 4];
163 uint8_t *unused0, ptrdiff_t unused1,
177 uint8_t *plane3, ptrdiff_t stride1,
196 int slice,
int thread_nb)
204 int start_slice, end_slice;
206 start_slice = h_block * slice /
ctx->slice_count;
207 end_slice = h_block * (slice + 1) /
ctx->slice_count;
209 if (
ctx->tex_funct) {
210 for (y = start_slice; y < end_slice; y++) {
212 int off = y * w_block;
213 for (x = 0; x < w_block; x++) {
215 d + (off + x) *
ctx->tex_step);
221 for (y = start_slice; y < end_slice; y++) {
224 int off = y * w_block;
225 for (x = 0; x < w_block; x++) {
228 d + (off + x) *
ctx->tex_step);
234 start_slice = h_block * slice /
ctx->slice_count;
235 end_slice = h_block * (slice + 1) /
ctx->slice_count;
237 for (y = start_slice; y < end_slice; y++) {
240 int off = y * w_block;
241 for (x = 0; x < w_block; x++) {
244 c + (off + x) *
ctx->ctex_step);
258 #define CHECKPOINT(x) \
261 if (bytestream2_get_bytes_left(gbc) < 4) \
262 return AVERROR_INVALIDDATA; \
263 value = bytestream2_get_le32(gbc); \
274 idx = (bytestream2_get_byte(gbc) + 2) * x; \
276 av_log(avctx, AV_LOG_ERROR, "idx %d > %d\n", idx, pos); \
277 return AVERROR_INVALIDDATA; \
281 idx = (bytestream2_get_le16(gbc) + 0x102) * x; \
283 av_log(avctx, AV_LOG_ERROR, "idx %d > %d\n", idx, pos); \
284 return AVERROR_INVALIDDATA; \
295 int idx = 0,
state = 0;
299 AV_WL32(
ctx->tex_data, bytestream2_get_le32(gbc));
300 AV_WL32(
ctx->tex_data + 4, bytestream2_get_le32(gbc));
303 while (
pos + 2 <=
ctx->tex_size / 4) {
321 prev = bytestream2_get_le32(gbc);
330 prev = bytestream2_get_le32(gbc);
347 unsigned half = 512,
bits = 1023, left = 1024, input,
mask;
348 int value, counter = 0, rshift = 10, lshift = 30;
350 mask = bytestream2_get_le32(gb) >> 2;
363 input = bytestream2_get_le16(gb);
364 mask += input << lshift;
374 for (; !
table[counter - 1]; counter--)
378 *nb_elements = counter;
381 memset(&
table[counter], 0, 4 * (256 - counter));
391 unsigned table2[256] = { 0 };
393 int val0, val1,
i, j = 2, k = 0;
395 table2[0] = table0[0];
396 for (
i = 0;
i < nb_elements - 1;
i++, table2[
i] = val0) {
397 val0 = table0[
i + 1] + table2[
i];
403 }
while (!table2[k]);
407 for (
i = 1024;
i > 0;
i--) {
408 for (table1[x].val1 = k; k < 256 && j > table2[k]; k++);
409 x = (x - 383) & 0x3FF;
414 memcpy(&table2[0], table0, 4 * nb_elements);
416 for (
i = 0;
i < 1024;
i++) {
417 val0 = table1[
i].
val1;
423 table1[
i].
val2 = 10 - x;
424 table1[
i].
next = (val1 << table1[
i].
val2) - 1024;
433 int sum, x,
val, lshift, rshift, ret,
i, idx;
435 unsigned endoffset, newoffset,
offset;
443 size_in_bits = bytestream2_get_le32(gb);
444 endoffset = ((size_in_bits + 7) >> 3) - 4;
450 rshift = (((size_in_bits & 0xFF) - 1) & 7) + 15;
451 lshift = 32 - rshift;
452 idx = (next >> rshift) & 0x3FF;
453 for (
i = 0;
i < op_size;
i++) {
454 dst[
i] = optable[idx].
val1;
457 x = (next << lshift) >> 1 >> (31 -
val);
458 newoffset =
offset - (sum >> 3);
460 idx = x + optable[idx].
next;
475 int flag = bytestream2_peek_byte(gb);
477 if ((
flag & 3) == 0) {
480 if (read_size != op_size)
482 }
else if ((
flag & 3) == 1) {
484 memset(dstp, bytestream2_get_byte(gb), op_size);
500 uint8_t *tex_data,
int tex_size,
508 uint8_t *tptr0, *tptr1, *tptr3;
516 opcode = op_data[oi++];
518 v = bytestream2_get_byte(gb);
523 opcode = bytestream2_get_le16(gb);
525 }
while (opcode == 0xFFFF);
539 vv = (8 +
offset) * (bytestream2_get_le16(gb) + 1);
540 if (vv < 0 || vv > dst - tex_data)
546 tab0[0x9E3779B1 * (uint16_t)v >> 24] = dst;
547 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
550 AV_WL32(dst, bytestream2_get_le32(gb));
551 AV_WL32(dst + 4, bytestream2_get_le32(gb));
552 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
553 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
556 tptr3 =
tab1[bytestream2_get_byte(gb)];
559 AV_WL16(dst, bytestream2_get_le16(gb));
562 AV_WL16(dst + 5, bytestream2_get_le16(gb));
563 dst[7] = bytestream2_get_byte(gb);
564 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
567 tptr3 =
tab1[bytestream2_get_byte(gb)];
570 AV_WL16(dst, bytestream2_get_le16(gb));
571 AV_WL16(dst + 2, bytestream2_get_le16(gb));
572 dst[4] = bytestream2_get_byte(gb);
575 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
576 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
579 tptr0 =
tab1[bytestream2_get_byte(gb)];
582 tptr1 =
tab1[bytestream2_get_byte(gb)];
585 AV_WL16(dst, bytestream2_get_le16(gb));
590 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
593 v = (8 +
offset) * (bytestream2_get_le16(gb) + 1);
594 if (v < 0 || v > dst - tex_data)
597 AV_WL16(dst, bytestream2_get_le16(gb));
600 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
601 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
604 tptr1 = tab0[bytestream2_get_byte(gb)];
608 AV_WL16(dst + 2, bytestream2_get_le16(gb));
609 AV_WL32(dst + 4, bytestream2_get_le32(gb));
610 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
613 tptr1 = tab0[bytestream2_get_byte(gb)];
616 tptr3 =
tab1[bytestream2_get_byte(gb)];
622 AV_WL16(dst + 5, bytestream2_get_le16(gb));
623 dst[7] = bytestream2_get_byte(gb);
624 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
627 tptr1 = tab0[bytestream2_get_byte(gb)];
630 tptr3 =
tab1[bytestream2_get_byte(gb)];
634 AV_WL16(dst + 2, bytestream2_get_le16(gb));
635 dst[4] = bytestream2_get_byte(gb);
638 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
641 tptr0 = tab0[bytestream2_get_byte(gb)];
644 tptr3 =
tab1[bytestream2_get_byte(gb)];
647 tptr1 =
tab1[bytestream2_get_byte(gb)];
657 tptr1 = tab0[bytestream2_get_byte(gb)];
660 v = (8 +
offset) * (bytestream2_get_le16(gb) + 1);
661 if (v < 0 || v > dst - tex_data)
667 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
671 AV_WL16(dst + 2, bytestream2_get_le16(gb));
672 AV_WL32(dst + 4, bytestream2_get_le32(gb));
673 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
676 tptr3 =
tab1[bytestream2_get_byte(gb)];
682 AV_WL16(dst + 5, bytestream2_get_le16(gb));
683 dst[7] = bytestream2_get_byte(gb);
684 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
687 tptr3 =
tab1[bytestream2_get_byte(gb)];
691 AV_WL16(dst + 2, bytestream2_get_le16(gb));
692 dst[4] = bytestream2_get_byte(gb);
695 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
698 tptr3 =
tab1[bytestream2_get_byte(gb)];
701 tptr1 =
tab1[bytestream2_get_byte(gb)];
711 v = (8 +
offset) * (bytestream2_get_le16(gb) + 1);
712 if (v < 0 || v > dst - tex_data)
717 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFFu) >> 24] = dst + 2;
728 if (dst - tex_data + 8 > tex_size)
740 uint8_t *tex_data,
int tex_size,
742 int max_op_size0,
int max_op_size1)
744 uint8_t *dst, *
tab2[256] = { 0 }, *tab0[256] = { 0 }, *tab3[256] = { 0 }, *
tab1[256] = { 0 };
745 int op_offset = bytestream2_get_le32(gb);
746 unsigned op_size0 = bytestream2_get_le32(gb);
747 unsigned op_size1 = bytestream2_get_le32(gb);
749 int skip0, skip1, oi0 = 0, oi1 = 0;
750 int ret, state0 = 0, state1 = 0;
757 if (op_size0 > max_op_size0)
762 if (op_size1 > max_op_size1)
769 AV_WL32(dst, bytestream2_get_le32(gb));
770 AV_WL32(dst + 4, bytestream2_get_le32(gb));
771 AV_WL32(dst + 8, bytestream2_get_le32(gb));
772 AV_WL32(dst + 12, bytestream2_get_le32(gb));
774 tab0[0x9E3779B1 *
AV_RL16(dst) >> 24] = dst;
775 tab1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFF) >> 24] = dst + 2;
776 tab2[0x9E3779B1 *
AV_RL16(dst + 8) >> 24] = dst + 8;
777 tab3[0x9E3779B1 * (
AV_RL32(dst + 10) & 0xFFFFFF) >> 24] = dst + 10;
779 while (dst + 10 < tex_data + tex_size) {
781 &dst, &state0, tab0,
tab1, 8);
785 &dst, &state1,
tab2, tab3, 8);
790 bytestream2_seek(gb, data_start - 12 + op_offset + skip0 + skip1, SEEK_SET);
796 uint8_t *tex_data,
int tex_size,
797 uint8_t *op_data,
int max_op_size)
799 int op_offset = bytestream2_get_le32(gb);
800 unsigned op_size = bytestream2_get_le32(gb);
802 uint8_t *dst, *table0[256] = { 0 }, *table1[256] = { 0 };
803 int ret,
state = 0, skip, oi = 0, v, vv;
810 if (op_size > max_op_size)
817 v = bytestream2_get_le32(gb);
819 vv = bytestream2_get_le32(gb);
820 table0[0x9E3779B1 * (uint16_t)v >> 24] = dst;
822 table1[0x9E3779B1 * (
AV_RL32(dst + 2) & 0xFFFFFF) >> 24] = dst + 2;
825 while (dst < tex_data + tex_size) {
827 &dst, &
state, table0, table1, 0);
844 ctx->op_data[0],
ctx->op_size[0]);
849 ctx->op_data[1],
ctx->op_data[2],
850 ctx->op_size[1],
ctx->op_size[2]);
860 ctx->op_data[0],
ctx->op_data[3],
861 ctx->op_size[0],
ctx->op_size[3]);
866 ctx->op_data[1],
ctx->op_data[2],
867 ctx->op_size[1],
ctx->op_size[2]);
881 AV_WL32(
ctx->tex_data + 0, bytestream2_get_le32(gbc));
882 AV_WL32(
ctx->tex_data + 4, bytestream2_get_le32(gbc));
883 AV_WL32(
ctx->tex_data + 8, bytestream2_get_le32(gbc));
884 AV_WL32(
ctx->tex_data + 12, bytestream2_get_le32(gbc));
887 while (
pos + 2 <=
ctx->tex_size / 4) {
901 value = bytestream2_get_le32(gbc);
911 check = bytestream2_get_byte(gbc) + 1;
914 probe = bytestream2_get_le16(gbc);
916 }
while (
probe == 0xFFFF);
943 run = bytestream2_get_byte(gbc);
946 probe = bytestream2_get_le16(gbc);
948 }
while (
probe == 0xFFFF);
962 idx = 8 + 4 * bytestream2_get_le16(gbc);
963 if (idx >
pos || (
unsigned int)(
pos - idx) + 2 >
ctx->tex_size / 4)
975 prev = bytestream2_get_le32(gbc);
979 prev = bytestream2_get_le32(gbc);
987 if (
pos + 2 >
ctx->tex_size / 4)
992 if (idx >
pos || (
unsigned int)(
pos - idx) + 2 >
ctx->tex_size / 4)
1004 if (
op && (idx >
pos || (
unsigned int)(
pos - idx) + 2 >
ctx->tex_size / 4))
1009 prev = bytestream2_get_le32(gbc);
1018 prev = bytestream2_get_le32(gbc);
1030 unsigned old_size =
ctx->tex_data_size;
1032 old_size =
FFMAX(old_size,
ctx->tex_size);
1033 if (
ctx->tex_data_size > old_size)
1034 memset(
ctx->tex_data + old_size, 0,
ctx->tex_data_size - old_size);
1057 const char *msgcomp, *msgtext;
1059 int version_major, version_minor = 0;
1060 int size = 0, old_type = 0;
1067 ctx->texture_block_h = 4;
1068 ctx->texture_block_w = 4;
1074 ctx->tex_funct_planar[0] =
NULL;
1075 ctx->tex_funct_planar[1] =
NULL;
1077 tag = bytestream2_get_le32(gbc);
1079 case MKBETAG(
'D',
'X',
'T',
'1'):
1081 ctx->tex_funct =
ctx->texdsp.dxt1_block;
1087 case MKBETAG(
'D',
'X',
'T',
'5'):
1089 ctx->tex_funct =
ctx->texdsp.dxt5_block;
1095 case MKBETAG(
'Y',
'C',
'G',
'6'):
1101 ctx->ctex_step = 16;
1102 msgcomp =
"YOCOCG6";
1105 ctx->texture_block_h = 4;
1106 ctx->texture_block_w = 16;
1107 ctx->ctexture_block_h = 4;
1108 ctx->ctexture_block_w = 4;
1112 case MKBETAG(
'Y',
'G',
'1',
'0'):
1118 ctx->ctex_step = 16;
1119 msgcomp =
"YAOCOCG10";
1122 ctx->texture_block_h = 4;
1123 ctx->texture_block_w = 16;
1124 ctx->ctexture_block_h = 4;
1125 ctx->ctexture_block_w = 4;
1132 old_type =
tag >> 24;
1133 version_major = (old_type & 0x0F) - 1;
1135 if (old_type & 0x80) {
1143 if (old_type & 0x40) {
1146 ctx->tex_funct =
ctx->texdsp.dxt5_block;
1148 }
else if (old_type & 0x20 || version_major == 1) {
1151 ctx->tex_funct =
ctx->texdsp.dxt1_block;
1165 ctx->ctexture_block_h));
1169 version_major = bytestream2_get_byte(gbc) - 1;
1170 version_minor = bytestream2_get_byte(gbc);
1173 if (bytestream2_get_byte(gbc)) {
1180 size = bytestream2_get_le32(gbc);
1183 "%s compression with %s texture (version %d.%d)\n",
1184 msgcomp, msgtext, version_major, version_minor);
1188 "Incomplete or invalid file (header %d, left %u).\n",
1194 old_size =
ctx->tex_data_size;
1198 ctx->tex_data = ptr;
1200 if (
ctx->tex_data_size > old_size)
1201 memset(
ctx->tex_data + old_size, 0,
ctx->tex_data_size - old_size);
1203 if (
ctx->ctex_size) {
1211 old_size =
ctx->ctex_data_size;
1215 ctx->ctex_data = ptr;
1216 if (old_size < ctx->ctex_data_size)
1217 memset(
ctx->ctex_data + old_size, 0,
ctx->ctex_data_size - old_size);
1219 for (
i = 0;
i < 4;
i++) {
1227 ret = decompress_tex(avctx);
1233 if (w_block * h_block *
ctx->tex_step >
ctx->tex_size * 8LL)
1279 ctx->tex_data_size = 0;
1282 ctx->ctex_data_size = 0;
static int probe(const AVProbeData *p)
static double val(void *priv, double ch)
Libavcodec external API header.
static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline int bytestream2_get_bytes_left(GetByteContext *g)
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
static av_always_inline void bytestream2_skip(GetByteContext *g, unsigned int size)
static av_always_inline int bytestream2_seek(GetByteContext *g, int offset, int whence)
static av_always_inline int bytestream2_tell(GetByteContext *g)
#define MKBETAG(a, b, c, d)
static int dxv_decompress_yg10(AVCodecContext *avctx)
static void decompress_indices(uint8_t *dst, const uint8_t *src)
static int dxv_decompress_cgo(DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data, int *oindex, int op_size, uint8_t **dstp, int *statep, uint8_t **tab0, uint8_t **tab1, int offset)
static int dxv_close(AVCodecContext *avctx)
static int dxv_decompress_dxt1(AVCodecContext *avctx)
static int dxv_decompress_cocg(DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data0, uint8_t *op_data1, int max_op_size0, int max_op_size1)
static int extract_component(int yo0, int yo1, int code)
static int fill_optable(unsigned *table0, OpcodeTable *table1, int nb_elements)
static int dxv_decompress_dxt5(AVCodecContext *avctx)
static int yo_block(uint8_t *dst, ptrdiff_t stride, uint8_t *unused0, ptrdiff_t unused1, const uint8_t *block)
static int dxv_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
static int get_opcodes(GetByteContext *gb, uint32_t *table, uint8_t *dst, int op_size, int nb_elements)
static int dxv_decompress_raw(AVCodecContext *avctx)
static int decompress_texture_thread(AVCodecContext *avctx, void *arg, int slice, int thread_nb)
static int dxv_decompress_yo(DXVContext *ctx, GetByteContext *gb, uint8_t *tex_data, int tex_size, uint8_t *op_data, int max_op_size)
static int dxv_decompress_ycg6(AVCodecContext *avctx)
static int dxv_init(AVCodecContext *avctx)
static int fill_ltable(GetByteContext *gb, uint32_t *table, int *nb_elements)
static int yao_block(uint8_t *plane0, ptrdiff_t stride0, uint8_t *plane3, ptrdiff_t stride1, const uint8_t *block)
static void yao_subblock(uint8_t *dst, uint8_t *yo_indices, ptrdiff_t stride, const uint8_t *block)
static int dxv_decompress_opcodes(GetByteContext *gb, void *dstp, size_t op_size)
static int cocg_block(uint8_t *plane0, ptrdiff_t stride0, uint8_t *plane1, ptrdiff_t stride1, const uint8_t *block)
static int dxv_decompress_lzf(AVCodecContext *avctx)
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * av_fast_realloc(void *ptr, unsigned int *size, size_t min_size)
Reallocate the given buffer if it is not large enough, otherwise do nothing.
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of the image can be address...
@ AV_PICTURE_TYPE_I
Intra.
static int op(uint8_t **dst, const uint8_t *dst_end, GetByteContext *gb, int pixel, int count, int *x, int width, int linesize)
Perform decode operation.
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
#define FF_CODEC_CAP_INIT_CLEANUP
The codec allows calling the close function for deallocation even if the init function returned a fai...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int ff_lzf_uncompress(GetByteContext *gb, uint8_t **buf, size_t *size, unsigned *allocated_size)
Decompress LZF data into *buf, reallocating it as needed.
static const uint16_t mask[17]
static uint8_t half(int a, int b)
#define check(x, y, S, v)
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
@ AVCOL_SPC_RGB
order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB)
static const uint16_t table[]
FF_ENABLE_DEPRECATION_WARNINGS int ff_thread_get_buffer(AVCodecContext *avctx, ThreadFrame *f, int flags)
Wrapper around get_buffer() for frame-multithreaded codecs.
static const ElemCat * elements[ELEMENT_COUNT]
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
enum AVColorSpace colorspace
YUV colorspace type.
int thread_count
thread count is used to decide how many independent tasks should be passed to execute()
int(* execute2)(struct AVCodecContext *c, int(*func)(struct AVCodecContext *c2, void *arg, int jobnr, int threadnr), void *arg2, int *ret, int count)
The codec may call this to execute several independent things.
int coded_width
Bitstream width / height, may be different from width/height e.g.
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int key_frame
1 -> keyframe, 0-> not
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
enum AVPictureType pict_type
Picture type of the frame.
This structure stores compressed data.
int(* tex_funct)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* tex_funct_planar[2])(uint8_t *plane0, ptrdiff_t stride0, uint8_t *plane1, ptrdiff_t stride1, const uint8_t *block)
av_cold void ff_texturedsp_init(TextureDSPContext *c)
Texture block (4x4) module.
static const uint8_t offset[127][2]