41 uint32_t lq[64], cq[64];
47 16, 11, 10, 16, 24, 40, 51, 61,
48 12, 12, 14, 19, 26, 58, 60, 55,
49 14, 13, 16, 24, 40, 57, 69, 56,
50 14, 17, 22, 29, 51, 87, 80, 62,
51 18, 22, 37, 56, 68, 109, 103, 77,
52 24, 35, 55, 64, 81, 104, 113, 92,
53 49, 64, 78, 87, 103, 121, 120, 101,
54 72, 92, 95, 98, 112, 100, 103, 99
58 17, 18, 24, 47, 99, 99, 99, 99,
59 18, 21, 26, 66, 99, 99, 99, 99,
60 24, 26, 56, 99, 99, 99, 99, 99,
61 47, 66, 99, 99, 99, 99, 99, 99,
62 99, 99, 99, 99, 99, 99, 99, 99,
63 99, 99, 99, 99, 99, 99, 99, 99,
64 99, 99, 99, 99, 99, 99, 99, 99,
65 99, 99, 99, 99, 99, 99, 99, 99
89 if (size < 2 * 64 * 4) {
93 for (i = 0; i < 64; i++, buf += 4)
95 for (i = 0; i < 64; i++, buf += 4)
106 quality =
FFMAX(quality, 1);
107 for (i = 0; i < 64; i++) {
126 if (buf_size > INT_MAX/8)
136 "Can't allocate decompression buffer.\n");
142 }
else if (quality != c->
quality)
153 int buf_size = avpkt->
size;
156 int orig_size = buf_size;
161 NUV_UNCOMPRESSED =
'0',
163 NUV_RTJPEG_IN_LZO =
'2',
175 if (buf[0] ==
'D' && buf[1] ==
'R') {
180 ret =
get_quant(avctx, c, buf, buf_size);
188 if (buf_size < 12 || buf[0] !=
'V') {
194 case NUV_RTJPEG_IN_LZO:
209 if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) {
225 if (buf[0] !=
'V' &&
AV_RL16(&buf[4]) != 0x000c) {
236 buf_size = avpkt->
size;
244 if (size_change || keyframe) {
262 case NUV_UNCOMPRESSED: {
264 if (buf_size < c->
width * height * 3 / 2) {
266 height = buf_size / c->
width / 3 * 2;
272 case NUV_RTJPEG_IN_LZO: