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++) {
125 buf_size > INT_MAX/8)
133 "Can't allocate decompression buffer.\n");
139 }
else if (quality != c->
quality)
150 int buf_size = avpkt->
size;
153 int orig_size = buf_size;
158 NUV_UNCOMPRESSED =
'0',
160 NUV_RTJPEG_IN_LZO =
'2',
172 if (buf[0] ==
'D' && buf[1] ==
'R') {
177 ret =
get_quant(avctx, c, buf, buf_size);
185 if (buf_size < 12 || buf[0] !=
'V') {
191 case NUV_RTJPEG_IN_LZO:
206 if (comptype == NUV_RTJPEG_IN_LZO || comptype == NUV_LZO) {
223 if (buf[0] !=
'V' &&
AV_RL16(&buf[4]) != 0x000c) {
235 buf_size = avpkt->
size;
243 if ((size_change || keyframe) && c->
pic.
data[0])
259 case NUV_UNCOMPRESSED: {
261 if (buf_size < c->
width * height * 3 / 2) {
263 height = buf_size / c->
width / 3 * 2;
269 case NUV_RTJPEG_IN_LZO: