43 uint32_t lq[64], cq[64];
48 16, 11, 10, 16, 24, 40, 51, 61,
49 12, 12, 14, 19, 26, 58, 60, 55,
50 14, 13, 16, 24, 40, 57, 69, 56,
51 14, 17, 22, 29, 51, 87, 80, 62,
52 18, 22, 37, 56, 68, 109, 103, 77,
53 24, 35, 55, 64, 81, 104, 113, 92,
54 49, 64, 78, 87, 103, 121, 120, 101,
55 72, 92, 95, 98, 112, 100, 103, 99
59 17, 18, 24, 47, 99, 99, 99, 99,
60 18, 21, 26, 66, 99, 99, 99, 99,
61 24, 26, 56, 99, 99, 99, 99, 99,
62 47, 66, 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,
66 99, 99, 99, 99, 99, 99, 99, 99
90 if (size < 2 * 64 * 4) {
94 for (i = 0; i < 64; i++, buf += 4)
96 for (i = 0; i < 64; i++, buf += 4)
107 quality =
FFMAX(quality, 1);
108 for (i = 0; i < 64; i++) {
126 int buf_size = height * width * 3 / 2
129 if (buf_size > INT_MAX/8)
139 "Can't allocate decompression buffer.\n");
145 }
else if (quality != c->
quality)
155 int buf_size = avpkt->
size;
158 int orig_size = buf_size;
163 NUV_UNCOMPRESSED =
'0',
165 NUV_RTJPEG_IN_LZO =
'2',
177 if (buf[0] ==
'D' && buf[1] ==
'R') {
182 ret =
get_quant(avctx, c, buf, buf_size);
189 if (buf_size < 12 || buf[0] !=
'V') {
195 case NUV_RTJPEG_IN_LZO:
210 if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) {
212 int inlen = buf_size;
230 if (buf[0] !=
'V' &&
AV_RL16(&buf[4]) != 0x000c) {
241 buf_size = avpkt->
size;
249 if (size_change || keyframe) {
267 case NUV_UNCOMPRESSED: {
269 if (buf_size < c->
width * height * 3 / 2) {
271 height = buf_size / c->
width / 3 * 2;
277 case NUV_RTJPEG_IN_LZO: