00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00029 #include "avcodec.h"
00030 #include "dsputil.h"
00031 #include "mpegvideo.h"
00032 #include "h263.h"
00033 #include "internal.h"
00034 #include "libavutil/avassert.h"
00035 #include "svq1.h"
00036 #include "svq1enc_cb.h"
00037
00038
00039 typedef struct SVQ1Context {
00040
00041
00042
00043 MpegEncContext m;
00044 AVCodecContext *avctx;
00045 DSPContext dsp;
00046 AVFrame picture;
00047 AVFrame current_picture;
00048 AVFrame last_picture;
00049 PutBitContext pb;
00050 GetBitContext gb;
00051
00052
00053
00054 PutBitContext reorder_pb[6];
00055
00056 int frame_width;
00057 int frame_height;
00058
00059
00060 int y_block_width;
00061 int y_block_height;
00062
00063
00064 int c_block_width;
00065 int c_block_height;
00066
00067 uint16_t *mb_type;
00068 uint32_t *dummy;
00069 int16_t (*motion_val8[3])[2];
00070 int16_t (*motion_val16[3])[2];
00071
00072 int64_t rd_total;
00073
00074 uint8_t *scratchbuf;
00075 } SVQ1Context;
00076
00077 static void svq1_write_header(SVQ1Context *s, int frame_type)
00078 {
00079 int i;
00080
00081
00082 put_bits(&s->pb, 22, 0x20);
00083
00084
00085 put_bits(&s->pb, 8, 0x00);
00086
00087
00088 put_bits(&s->pb, 2, frame_type - 1);
00089
00090 if (frame_type == AV_PICTURE_TYPE_I) {
00091
00092
00093
00094 put_bits(&s->pb, 5, 2);
00095
00096 i = ff_match_2uint16((void*)ff_svq1_frame_size_table,
00097 FF_ARRAY_ELEMS(ff_svq1_frame_size_table),
00098 s->frame_width, s->frame_height);
00099 put_bits(&s->pb, 3, i);
00100
00101 if (i == 7) {
00102 put_bits(&s->pb, 12, s->frame_width);
00103 put_bits(&s->pb, 12, s->frame_height);
00104 }
00105 }
00106
00107
00108 put_bits(&s->pb, 2, 0);
00109 }
00110
00111 #define QUALITY_THRESHOLD 100
00112 #define THRESHOLD_MULTIPLIER 0.6
00113
00114 static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref,
00115 uint8_t *decoded, int stride, int level,
00116 int threshold, int lambda, int intra)
00117 {
00118 int count, y, x, i, j, split, best_mean, best_score, best_count;
00119 int best_vector[6];
00120 int block_sum[7] = { 0, 0, 0, 0, 0, 0 };
00121 int w = 2 << (level + 2 >> 1);
00122 int h = 2 << (level + 1 >> 1);
00123 int size = w * h;
00124 int16_t block[7][256];
00125 const int8_t *codebook_sum, *codebook;
00126 const uint16_t(*mean_vlc)[2];
00127 const uint8_t(*multistage_vlc)[2];
00128
00129 best_score = 0;
00130
00131 if (intra) {
00132 codebook_sum = svq1_intra_codebook_sum[level];
00133 codebook = ff_svq1_intra_codebooks[level];
00134 mean_vlc = ff_svq1_intra_mean_vlc;
00135 multistage_vlc = ff_svq1_intra_multistage_vlc[level];
00136 for (y = 0; y < h; y++) {
00137 for (x = 0; x < w; x++) {
00138 int v = src[x + y * stride];
00139 block[0][x + w * y] = v;
00140 best_score += v * v;
00141 block_sum[0] += v;
00142 }
00143 }
00144 } else {
00145 codebook_sum = svq1_inter_codebook_sum[level];
00146 codebook = ff_svq1_inter_codebooks[level];
00147 mean_vlc = ff_svq1_inter_mean_vlc + 256;
00148 multistage_vlc = ff_svq1_inter_multistage_vlc[level];
00149 for (y = 0; y < h; y++) {
00150 for (x = 0; x < w; x++) {
00151 int v = src[x + y * stride] - ref[x + y * stride];
00152 block[0][x + w * y] = v;
00153 best_score += v * v;
00154 block_sum[0] += v;
00155 }
00156 }
00157 }
00158
00159 best_count = 0;
00160 best_score -= (int)((unsigned)block_sum[0] * block_sum[0] >> (level + 3));
00161 best_mean = block_sum[0] + (size >> 1) >> (level + 3);
00162
00163 if (level < 4) {
00164 for (count = 1; count < 7; count++) {
00165 int best_vector_score = INT_MAX;
00166 int best_vector_sum = -999, best_vector_mean = -999;
00167 const int stage = count - 1;
00168 const int8_t *vector;
00169
00170 for (i = 0; i < 16; i++) {
00171 int sum = codebook_sum[stage * 16 + i];
00172 int sqr, diff, score;
00173
00174 vector = codebook + stage * size * 16 + i * size;
00175 sqr = s->dsp.ssd_int8_vs_int16(vector, block[stage], size);
00176 diff = block_sum[stage] - sum;
00177 score = sqr - (diff * (int64_t)diff >> (level + 3));
00178 if (score < best_vector_score) {
00179 int mean = diff + (size >> 1) >> (level + 3);
00180 av_assert2(mean > -300 && mean < 300);
00181 mean = av_clip(mean, intra ? 0 : -256, 255);
00182 best_vector_score = score;
00183 best_vector[stage] = i;
00184 best_vector_sum = sum;
00185 best_vector_mean = mean;
00186 }
00187 }
00188 av_assert0(best_vector_mean != -999);
00189 vector = codebook + stage * size * 16 + best_vector[stage] * size;
00190 for (j = 0; j < size; j++)
00191 block[stage + 1][j] = block[stage][j] - vector[j];
00192 block_sum[stage + 1] = block_sum[stage] - best_vector_sum;
00193 best_vector_score += lambda *
00194 (+1 + 4 * count +
00195 multistage_vlc[1 + count][1]
00196 + mean_vlc[best_vector_mean][1]);
00197
00198 if (best_vector_score < best_score) {
00199 best_score = best_vector_score;
00200 best_count = count;
00201 best_mean = best_vector_mean;
00202 }
00203 }
00204 }
00205
00206 split = 0;
00207 if (best_score > threshold && level) {
00208 int score = 0;
00209 int offset = level & 1 ? stride * h / 2 : w / 2;
00210 PutBitContext backup[6];
00211
00212 for (i = level - 1; i >= 0; i--)
00213 backup[i] = s->reorder_pb[i];
00214 score += encode_block(s, src, ref, decoded, stride, level - 1,
00215 threshold >> 1, lambda, intra);
00216 score += encode_block(s, src + offset, ref + offset, decoded + offset,
00217 stride, level - 1, threshold >> 1, lambda, intra);
00218 score += lambda;
00219
00220 if (score < best_score) {
00221 best_score = score;
00222 split = 1;
00223 } else {
00224 for (i = level - 1; i >= 0; i--)
00225 s->reorder_pb[i] = backup[i];
00226 }
00227 }
00228 if (level > 0)
00229 put_bits(&s->reorder_pb[level], 1, split);
00230
00231 if (!split) {
00232 av_assert1(best_mean >= 0 && best_mean < 256 || !intra);
00233 av_assert1(best_mean >= -256 && best_mean < 256);
00234 av_assert1(best_count >= 0 && best_count < 7);
00235 av_assert1(level < 4 || best_count == 0);
00236
00237
00238 put_bits(&s->reorder_pb[level],
00239 multistage_vlc[1 + best_count][1],
00240 multistage_vlc[1 + best_count][0]);
00241 put_bits(&s->reorder_pb[level], mean_vlc[best_mean][1],
00242 mean_vlc[best_mean][0]);
00243
00244 for (i = 0; i < best_count; i++) {
00245 av_assert2(best_vector[i] >= 0 && best_vector[i] < 16);
00246 put_bits(&s->reorder_pb[level], 4, best_vector[i]);
00247 }
00248
00249 for (y = 0; y < h; y++)
00250 for (x = 0; x < w; x++)
00251 decoded[x + y * stride] = src[x + y * stride] -
00252 block[best_count][x + w * y] +
00253 best_mean;
00254 }
00255
00256 return best_score;
00257 }
00258
00259 static int svq1_encode_plane(SVQ1Context *s, int plane,
00260 unsigned char *src_plane,
00261 unsigned char *ref_plane,
00262 unsigned char *decoded_plane,
00263 int width, int height, int src_stride, int stride)
00264 {
00265 int x, y;
00266 int i;
00267 int block_width, block_height;
00268 int level;
00269 int threshold[6];
00270 uint8_t *src = s->scratchbuf + stride * 16;
00271 const int lambda = (s->picture.quality * s->picture.quality) >>
00272 (2 * FF_LAMBDA_SHIFT);
00273
00274
00275 threshold[5] = QUALITY_THRESHOLD;
00276 for (level = 4; level >= 0; level--)
00277 threshold[level] = threshold[level + 1] * THRESHOLD_MULTIPLIER;
00278
00279 block_width = (width + 15) / 16;
00280 block_height = (height + 15) / 16;
00281
00282 if (s->picture.pict_type == AV_PICTURE_TYPE_P) {
00283 s->m.avctx = s->avctx;
00284 s->m.current_picture_ptr = &s->m.current_picture;
00285 s->m.last_picture_ptr = &s->m.last_picture;
00286 s->m.last_picture.f.data[0] = ref_plane;
00287 s->m.linesize =
00288 s->m.last_picture.f.linesize[0] =
00289 s->m.new_picture.f.linesize[0] =
00290 s->m.current_picture.f.linesize[0] = stride;
00291 s->m.width = width;
00292 s->m.height = height;
00293 s->m.mb_width = block_width;
00294 s->m.mb_height = block_height;
00295 s->m.mb_stride = s->m.mb_width + 1;
00296 s->m.b8_stride = 2 * s->m.mb_width + 1;
00297 s->m.f_code = 1;
00298 s->m.pict_type = s->picture.pict_type;
00299 s->m.me_method = s->avctx->me_method;
00300 s->m.me.scene_change_score = 0;
00301 s->m.flags = s->avctx->flags;
00302
00303
00304 s->m.lambda = s->picture.quality;
00305 s->m.qscale = s->m.lambda * 139 +
00306 FF_LAMBDA_SCALE * 64 >>
00307 FF_LAMBDA_SHIFT + 7;
00308 s->m.lambda2 = s->m.lambda * s->m.lambda +
00309 FF_LAMBDA_SCALE / 2 >>
00310 FF_LAMBDA_SHIFT;
00311
00312 if (!s->motion_val8[plane]) {
00313 s->motion_val8[plane] = av_mallocz((s->m.b8_stride *
00314 block_height * 2 + 2) *
00315 2 * sizeof(int16_t));
00316 s->motion_val16[plane] = av_mallocz((s->m.mb_stride *
00317 (block_height + 2) + 1) *
00318 2 * sizeof(int16_t));
00319 }
00320
00321 s->m.mb_type = s->mb_type;
00322
00323
00324 s->m.current_picture.mb_mean = (uint8_t *)s->dummy;
00325 s->m.current_picture.mb_var = (uint16_t *)s->dummy;
00326 s->m.current_picture.mc_mb_var = (uint16_t *)s->dummy;
00327 s->m.current_picture.f.mb_type = s->dummy;
00328
00329 s->m.current_picture.f.motion_val[0] = s->motion_val8[plane] + 2;
00330 s->m.p_mv_table = s->motion_val16[plane] +
00331 s->m.mb_stride + 1;
00332 s->m.dsp = s->dsp;
00333 ff_init_me(&s->m);
00334
00335 s->m.me.dia_size = s->avctx->dia_size;
00336 s->m.first_slice_line = 1;
00337 for (y = 0; y < block_height; y++) {
00338 s->m.new_picture.f.data[0] = src - y * 16 * stride;
00339 s->m.mb_y = y;
00340
00341 for (i = 0; i < 16 && i + 16 * y < height; i++) {
00342 memcpy(&src[i * stride], &src_plane[(i + 16 * y) * src_stride],
00343 width);
00344 for (x = width; x < 16 * block_width; x++)
00345 src[i * stride + x] = src[i * stride + x - 1];
00346 }
00347 for (; i < 16 && i + 16 * y < 16 * block_height; i++)
00348 memcpy(&src[i * stride], &src[(i - 1) * stride],
00349 16 * block_width);
00350
00351 for (x = 0; x < block_width; x++) {
00352 s->m.mb_x = x;
00353 ff_init_block_index(&s->m);
00354 ff_update_block_index(&s->m);
00355
00356 ff_estimate_p_frame_motion(&s->m, x, y);
00357 }
00358 s->m.first_slice_line = 0;
00359 }
00360
00361 ff_fix_long_p_mvs(&s->m);
00362 ff_fix_long_mvs(&s->m, NULL, 0, s->m.p_mv_table, s->m.f_code,
00363 CANDIDATE_MB_TYPE_INTER, 0);
00364 }
00365
00366 s->m.first_slice_line = 1;
00367 for (y = 0; y < block_height; y++) {
00368 for (i = 0; i < 16 && i + 16 * y < height; i++) {
00369 memcpy(&src[i * stride], &src_plane[(i + 16 * y) * src_stride],
00370 width);
00371 for (x = width; x < 16 * block_width; x++)
00372 src[i * stride + x] = src[i * stride + x - 1];
00373 }
00374 for (; i < 16 && i + 16 * y < 16 * block_height; i++)
00375 memcpy(&src[i * stride], &src[(i - 1) * stride], 16 * block_width);
00376
00377 s->m.mb_y = y;
00378 for (x = 0; x < block_width; x++) {
00379 uint8_t reorder_buffer[3][6][7 * 32];
00380 int count[3][6];
00381 int offset = y * 16 * stride + x * 16;
00382 uint8_t *decoded = decoded_plane + offset;
00383 uint8_t *ref = ref_plane + offset;
00384 int score[4] = { 0, 0, 0, 0 }, best;
00385 uint8_t *temp = s->scratchbuf;
00386
00387 if (s->pb.buf_end - s->pb.buf -
00388 (put_bits_count(&s->pb) >> 3) < 3000) {
00389 av_log(s->avctx, AV_LOG_ERROR, "encoded frame too large\n");
00390 return -1;
00391 }
00392
00393 s->m.mb_x = x;
00394 ff_init_block_index(&s->m);
00395 ff_update_block_index(&s->m);
00396
00397 if (s->picture.pict_type == AV_PICTURE_TYPE_I ||
00398 (s->m.mb_type[x + y * s->m.mb_stride] &
00399 CANDIDATE_MB_TYPE_INTRA)) {
00400 for (i = 0; i < 6; i++)
00401 init_put_bits(&s->reorder_pb[i], reorder_buffer[0][i],
00402 7 * 32);
00403 if (s->picture.pict_type == AV_PICTURE_TYPE_P) {
00404 const uint8_t *vlc = ff_svq1_block_type_vlc[SVQ1_BLOCK_INTRA];
00405 put_bits(&s->reorder_pb[5], vlc[1], vlc[0]);
00406 score[0] = vlc[1] * lambda;
00407 }
00408 score[0] += encode_block(s, src + 16 * x, NULL, temp, stride,
00409 5, 64, lambda, 1);
00410 for (i = 0; i < 6; i++) {
00411 count[0][i] = put_bits_count(&s->reorder_pb[i]);
00412 flush_put_bits(&s->reorder_pb[i]);
00413 }
00414 } else
00415 score[0] = INT_MAX;
00416
00417 best = 0;
00418
00419 if (s->picture.pict_type == AV_PICTURE_TYPE_P) {
00420 const uint8_t *vlc = ff_svq1_block_type_vlc[SVQ1_BLOCK_INTER];
00421 int mx, my, pred_x, pred_y, dxy;
00422 int16_t *motion_ptr;
00423
00424 motion_ptr = ff_h263_pred_motion(&s->m, 0, 0, &pred_x, &pred_y);
00425 if (s->m.mb_type[x + y * s->m.mb_stride] &
00426 CANDIDATE_MB_TYPE_INTER) {
00427 for (i = 0; i < 6; i++)
00428 init_put_bits(&s->reorder_pb[i], reorder_buffer[1][i],
00429 7 * 32);
00430
00431 put_bits(&s->reorder_pb[5], vlc[1], vlc[0]);
00432
00433 s->m.pb = s->reorder_pb[5];
00434 mx = motion_ptr[0];
00435 my = motion_ptr[1];
00436 av_assert1(mx >= -32 && mx <= 31);
00437 av_assert1(my >= -32 && my <= 31);
00438 av_assert1(pred_x >= -32 && pred_x <= 31);
00439 av_assert1(pred_y >= -32 && pred_y <= 31);
00440 ff_h263_encode_motion(&s->m, mx - pred_x, 1);
00441 ff_h263_encode_motion(&s->m, my - pred_y, 1);
00442 s->reorder_pb[5] = s->m.pb;
00443 score[1] += lambda * put_bits_count(&s->reorder_pb[5]);
00444
00445 dxy = (mx & 1) + 2 * (my & 1);
00446
00447 s->dsp.put_pixels_tab[0][dxy](temp + 16,
00448 ref + (mx >> 1) +
00449 stride * (my >> 1),
00450 stride, 16);
00451
00452 score[1] += encode_block(s, src + 16 * x, temp + 16,
00453 decoded, stride, 5, 64, lambda, 0);
00454 best = score[1] <= score[0];
00455
00456 vlc = ff_svq1_block_type_vlc[SVQ1_BLOCK_SKIP];
00457 score[2] = s->dsp.sse[0](NULL, src + 16 * x, ref,
00458 stride, 16);
00459 score[2] += vlc[1] * lambda;
00460 if (score[2] < score[best] && mx == 0 && my == 0) {
00461 best = 2;
00462 s->dsp.put_pixels_tab[0][0](decoded, ref, stride, 16);
00463 for (i = 0; i < 6; i++)
00464 count[2][i] = 0;
00465 put_bits(&s->pb, vlc[1], vlc[0]);
00466 }
00467 }
00468
00469 if (best == 1) {
00470 for (i = 0; i < 6; i++) {
00471 count[1][i] = put_bits_count(&s->reorder_pb[i]);
00472 flush_put_bits(&s->reorder_pb[i]);
00473 }
00474 } else {
00475 motion_ptr[0] =
00476 motion_ptr[1] =
00477 motion_ptr[2] =
00478 motion_ptr[3] =
00479 motion_ptr[0 + 2 * s->m.b8_stride] =
00480 motion_ptr[1 + 2 * s->m.b8_stride] =
00481 motion_ptr[2 + 2 * s->m.b8_stride] =
00482 motion_ptr[3 + 2 * s->m.b8_stride] = 0;
00483 }
00484 }
00485
00486 s->rd_total += score[best];
00487
00488 for (i = 5; i >= 0; i--)
00489 avpriv_copy_bits(&s->pb, reorder_buffer[best][i],
00490 count[best][i]);
00491 if (best == 0)
00492 s->dsp.put_pixels_tab[0][0](decoded, temp, stride, 16);
00493 }
00494 s->m.first_slice_line = 0;
00495 }
00496 return 0;
00497 }
00498
00499 static av_cold int svq1_encode_init(AVCodecContext *avctx)
00500 {
00501 SVQ1Context *const s = avctx->priv_data;
00502
00503 ff_dsputil_init(&s->dsp, avctx);
00504 avctx->coded_frame = &s->picture;
00505
00506 s->frame_width = avctx->width;
00507 s->frame_height = avctx->height;
00508
00509 s->y_block_width = (s->frame_width + 15) / 16;
00510 s->y_block_height = (s->frame_height + 15) / 16;
00511
00512 s->c_block_width = (s->frame_width / 4 + 15) / 16;
00513 s->c_block_height = (s->frame_height / 4 + 15) / 16;
00514
00515 s->avctx = avctx;
00516 s->m.avctx = avctx;
00517 s->m.picture_structure = PICT_FRAME;
00518 s->m.me.temp =
00519 s->m.me.scratchpad = av_mallocz((avctx->width + 64) *
00520 2 * 16 * 2 * sizeof(uint8_t));
00521 s->m.me.map = av_mallocz(ME_MAP_SIZE * sizeof(uint32_t));
00522 s->m.me.score_map = av_mallocz(ME_MAP_SIZE * sizeof(uint32_t));
00523 s->mb_type = av_mallocz((s->y_block_width + 1) *
00524 s->y_block_height * sizeof(int16_t));
00525 s->dummy = av_mallocz((s->y_block_width + 1) *
00526 s->y_block_height * sizeof(int32_t));
00527 ff_h263_encode_init(&s->m);
00528
00529 return 0;
00530 }
00531
00532 static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
00533 const AVFrame *pict, int *got_packet)
00534 {
00535 SVQ1Context *const s = avctx->priv_data;
00536 AVFrame *const p = &s->picture;
00537 AVFrame temp;
00538 int i, ret;
00539
00540 if ((ret = ff_alloc_packet2(avctx, pkt, s->y_block_width * s->y_block_height *
00541 MAX_MB_BYTES*3 + FF_MIN_BUFFER_SIZE) < 0))
00542 return ret;
00543
00544 if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) {
00545 av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n");
00546 return -1;
00547 }
00548
00549 if (!s->current_picture.data[0]) {
00550 if ((ret = ff_get_buffer(avctx, &s->current_picture) < 0) ||
00551 (ret = ff_get_buffer(avctx, &s->last_picture)) < 0) {
00552 return ret;
00553 }
00554 s->scratchbuf = av_malloc(s->current_picture.linesize[0] * 16 * 2);
00555 }
00556
00557 temp = s->current_picture;
00558 s->current_picture = s->last_picture;
00559 s->last_picture = temp;
00560
00561 init_put_bits(&s->pb, pkt->data, pkt->size);
00562
00563 *p = *pict;
00564 p->pict_type = avctx->gop_size && avctx->frame_number % avctx->gop_size ?
00565 AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
00566 p->key_frame = p->pict_type == AV_PICTURE_TYPE_I;
00567
00568 svq1_write_header(s, p->pict_type);
00569 for (i = 0; i < 3; i++)
00570 if (svq1_encode_plane(s, i,
00571 s->picture.data[i],
00572 s->last_picture.data[i],
00573 s->current_picture.data[i],
00574 s->frame_width / (i ? 4 : 1),
00575 s->frame_height / (i ? 4 : 1),
00576 s->picture.linesize[i],
00577 s->current_picture.linesize[i]) < 0)
00578 return -1;
00579
00580
00581 while (put_bits_count(&s->pb) & 31)
00582 put_bits(&s->pb, 1, 0);
00583
00584 flush_put_bits(&s->pb);
00585
00586 pkt->size = put_bits_count(&s->pb) / 8;
00587 if (p->pict_type == AV_PICTURE_TYPE_I)
00588 pkt->flags |= AV_PKT_FLAG_KEY;
00589 *got_packet = 1;
00590
00591 return 0;
00592 }
00593
00594 static av_cold int svq1_encode_end(AVCodecContext *avctx)
00595 {
00596 SVQ1Context *const s = avctx->priv_data;
00597 int i;
00598
00599 av_log(avctx, AV_LOG_DEBUG, "RD: %f\n",
00600 s->rd_total / (double)(avctx->width * avctx->height *
00601 avctx->frame_number));
00602
00603 av_freep(&s->m.me.scratchpad);
00604 av_freep(&s->m.me.map);
00605 av_freep(&s->m.me.score_map);
00606 av_freep(&s->mb_type);
00607 av_freep(&s->dummy);
00608 av_freep(&s->scratchbuf);
00609
00610 for (i = 0; i < 3; i++) {
00611 av_freep(&s->motion_val8[i]);
00612 av_freep(&s->motion_val16[i]);
00613 }
00614 if(s->current_picture.data[0])
00615 avctx->release_buffer(avctx, &s->current_picture);
00616 if(s->last_picture.data[0])
00617 avctx->release_buffer(avctx, &s->last_picture);
00618
00619 return 0;
00620 }
00621
00622 AVCodec ff_svq1_encoder = {
00623 .name = "svq1",
00624 .type = AVMEDIA_TYPE_VIDEO,
00625 .id = AV_CODEC_ID_SVQ1,
00626 .priv_data_size = sizeof(SVQ1Context),
00627 .init = svq1_encode_init,
00628 .encode2 = svq1_encode_frame,
00629 .close = svq1_encode_end,
00630 .pix_fmts = (const enum PixelFormat[]) { AV_PIX_FMT_YUV410P,
00631 AV_PIX_FMT_NONE },
00632 .long_name = NULL_IF_CONFIG_SMALL("Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1"),
00633 };