You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

663 lines
19KB

  1. /*
  2. * H261 decoder
  3. * Copyright (c) 2002-2004 Michael Niedermayer <michaelni@gmx.at>
  4. * Copyright (c) 2004 Maarten Daniels
  5. *
  6. * This file is part of FFmpeg.
  7. *
  8. * FFmpeg is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * FFmpeg is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with FFmpeg; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  21. */
  22. /**
  23. * @file
  24. * H.261 decoder.
  25. */
  26. #include "dsputil.h"
  27. #include "avcodec.h"
  28. #include "mpegvideo.h"
  29. #include "h263.h"
  30. #include "h261.h"
  31. #include "h261data.h"
  32. #define H261_MBA_VLC_BITS 9
  33. #define H261_MTYPE_VLC_BITS 6
  34. #define H261_MV_VLC_BITS 7
  35. #define H261_CBP_VLC_BITS 9
  36. #define TCOEFF_VLC_BITS 9
  37. #define MBA_STUFFING 33
  38. #define MBA_STARTCODE 34
  39. extern uint8_t ff_h261_rl_table_store[2][2*MAX_RUN + MAX_LEVEL + 3];
  40. static VLC h261_mba_vlc;
  41. static VLC h261_mtype_vlc;
  42. static VLC h261_mv_vlc;
  43. static VLC h261_cbp_vlc;
  44. static int h261_decode_block(H261Context * h, DCTELEM * block, int n, int coded);
  45. static av_cold void h261_decode_init_vlc(H261Context *h){
  46. static int done = 0;
  47. if(!done){
  48. done = 1;
  49. INIT_VLC_STATIC(&h261_mba_vlc, H261_MBA_VLC_BITS, 35,
  50. ff_h261_mba_bits, 1, 1,
  51. ff_h261_mba_code, 1, 1, 662);
  52. INIT_VLC_STATIC(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10,
  53. ff_h261_mtype_bits, 1, 1,
  54. ff_h261_mtype_code, 1, 1, 80);
  55. INIT_VLC_STATIC(&h261_mv_vlc, H261_MV_VLC_BITS, 17,
  56. &ff_h261_mv_tab[0][1], 2, 1,
  57. &ff_h261_mv_tab[0][0], 2, 1, 144);
  58. INIT_VLC_STATIC(&h261_cbp_vlc, H261_CBP_VLC_BITS, 63,
  59. &ff_h261_cbp_tab[0][1], 2, 1,
  60. &ff_h261_cbp_tab[0][0], 2, 1, 512);
  61. ff_init_rl(&ff_h261_rl_tcoeff, ff_h261_rl_table_store);
  62. INIT_VLC_RL(ff_h261_rl_tcoeff, 552);
  63. }
  64. }
  65. static av_cold int h261_decode_init(AVCodecContext *avctx){
  66. H261Context *h= avctx->priv_data;
  67. MpegEncContext * const s = &h->s;
  68. // set defaults
  69. ff_MPV_decode_defaults(s);
  70. s->avctx = avctx;
  71. s->width = s->avctx->coded_width;
  72. s->height = s->avctx->coded_height;
  73. s->codec_id = s->avctx->codec->id;
  74. s->out_format = FMT_H261;
  75. s->low_delay= 1;
  76. avctx->pix_fmt= PIX_FMT_YUV420P;
  77. s->codec_id= avctx->codec->id;
  78. h261_decode_init_vlc(h);
  79. h->gob_start_code_skipped = 0;
  80. return 0;
  81. }
  82. /**
  83. * Decode the group of blocks header or slice header.
  84. * @return <0 if an error occurred
  85. */
  86. static int h261_decode_gob_header(H261Context *h){
  87. unsigned int val;
  88. MpegEncContext * const s = &h->s;
  89. if ( !h->gob_start_code_skipped ){
  90. /* Check for GOB Start Code */
  91. val = show_bits(&s->gb, 15);
  92. if(val)
  93. return -1;
  94. /* We have a GBSC */
  95. skip_bits(&s->gb, 16);
  96. }
  97. h->gob_start_code_skipped = 0;
  98. h->gob_number = get_bits(&s->gb, 4); /* GN */
  99. s->qscale = get_bits(&s->gb, 5); /* GQUANT */
  100. /* Check if gob_number is valid */
  101. if (s->mb_height==18){ //cif
  102. if ((h->gob_number<=0) || (h->gob_number>12))
  103. return -1;
  104. }
  105. else{ //qcif
  106. if ((h->gob_number!=1) && (h->gob_number!=3) && (h->gob_number!=5))
  107. return -1;
  108. }
  109. /* GEI */
  110. while (get_bits1(&s->gb) != 0) {
  111. skip_bits(&s->gb, 8);
  112. }
  113. if(s->qscale==0) {
  114. av_log(s->avctx, AV_LOG_ERROR, "qscale has forbidden 0 value\n");
  115. if (s->avctx->err_recognition & (AV_EF_BITSTREAM | AV_EF_COMPLIANT))
  116. return -1;
  117. }
  118. // For the first transmitted macroblock in a GOB, MBA is the absolute address. For
  119. // subsequent macroblocks, MBA is the difference between the absolute addresses of
  120. // the macroblock and the last transmitted macroblock.
  121. h->current_mba = 0;
  122. h->mba_diff = 0;
  123. return 0;
  124. }
  125. /**
  126. * Decode the group of blocks / video packet header.
  127. * @return <0 if no resync found
  128. */
  129. static int ff_h261_resync(H261Context *h){
  130. MpegEncContext * const s = &h->s;
  131. int left, ret;
  132. if ( h->gob_start_code_skipped ){
  133. ret= h261_decode_gob_header(h);
  134. if(ret>=0)
  135. return 0;
  136. }
  137. else{
  138. if(show_bits(&s->gb, 15)==0){
  139. ret= h261_decode_gob_header(h);
  140. if(ret>=0)
  141. return 0;
  142. }
  143. //OK, it is not where it is supposed to be ...
  144. s->gb= s->last_resync_gb;
  145. align_get_bits(&s->gb);
  146. left= get_bits_left(&s->gb);
  147. for(;left>15+1+4+5; left-=8){
  148. if(show_bits(&s->gb, 15)==0){
  149. GetBitContext bak= s->gb;
  150. ret= h261_decode_gob_header(h);
  151. if(ret>=0)
  152. return 0;
  153. s->gb= bak;
  154. }
  155. skip_bits(&s->gb, 8);
  156. }
  157. }
  158. return -1;
  159. }
  160. /**
  161. * Decode skipped macroblocks.
  162. * @return 0
  163. */
  164. static int h261_decode_mb_skipped(H261Context *h, int mba1, int mba2 )
  165. {
  166. MpegEncContext * const s = &h->s;
  167. int i;
  168. s->mb_intra = 0;
  169. for(i=mba1; i<mba2; i++){
  170. int j, xy;
  171. s->mb_x= ((h->gob_number-1) % 2) * 11 + i % 11;
  172. s->mb_y= ((h->gob_number-1) / 2) * 3 + i / 11;
  173. xy = s->mb_x + s->mb_y * s->mb_stride;
  174. ff_init_block_index(s);
  175. ff_update_block_index(s);
  176. for(j=0;j<6;j++)
  177. s->block_last_index[j] = -1;
  178. s->mv_dir = MV_DIR_FORWARD;
  179. s->mv_type = MV_TYPE_16X16;
  180. s->current_picture.f.mb_type[xy] = MB_TYPE_SKIP | MB_TYPE_16x16 | MB_TYPE_L0;
  181. s->mv[0][0][0] = 0;
  182. s->mv[0][0][1] = 0;
  183. s->mb_skipped = 1;
  184. h->mtype &= ~MB_TYPE_H261_FIL;
  185. ff_MPV_decode_mb(s, s->block);
  186. }
  187. return 0;
  188. }
  189. static int decode_mv_component(GetBitContext *gb, int v){
  190. static const int mvmap[17] = {
  191. 0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15, -16
  192. };
  193. int mv_diff = get_vlc2(gb, h261_mv_vlc.table, H261_MV_VLC_BITS, 2);
  194. /* check if mv_diff is valid */
  195. if ( mv_diff < 0 )
  196. return v;
  197. mv_diff = mvmap[mv_diff];
  198. if(mv_diff && !get_bits1(gb))
  199. mv_diff= -mv_diff;
  200. v += mv_diff;
  201. if (v <=-16) v+= 32;
  202. else if(v >= 16) v-= 32;
  203. return v;
  204. }
  205. static int h261_decode_mb(H261Context *h){
  206. MpegEncContext * const s = &h->s;
  207. int i, cbp, xy;
  208. cbp = 63;
  209. // Read mba
  210. do{
  211. h->mba_diff = get_vlc2(&s->gb, h261_mba_vlc.table, H261_MBA_VLC_BITS, 2);
  212. /* Check for slice end */
  213. /* NOTE: GOB can be empty (no MB data) or exist only of MBA_stuffing */
  214. if (h->mba_diff == MBA_STARTCODE){ // start code
  215. h->gob_start_code_skipped = 1;
  216. return SLICE_END;
  217. }
  218. }
  219. while( h->mba_diff == MBA_STUFFING ); // stuffing
  220. if ( h->mba_diff < 0 ){
  221. if (get_bits_left(&s->gb) <= 7)
  222. return SLICE_END;
  223. av_log(s->avctx, AV_LOG_ERROR, "illegal mba at %d %d\n", s->mb_x, s->mb_y);
  224. return SLICE_ERROR;
  225. }
  226. h->mba_diff += 1;
  227. h->current_mba += h->mba_diff;
  228. if ( h->current_mba > MBA_STUFFING )
  229. return SLICE_ERROR;
  230. s->mb_x= ((h->gob_number-1) % 2) * 11 + ((h->current_mba-1) % 11);
  231. s->mb_y= ((h->gob_number-1) / 2) * 3 + ((h->current_mba-1) / 11);
  232. xy = s->mb_x + s->mb_y * s->mb_stride;
  233. ff_init_block_index(s);
  234. ff_update_block_index(s);
  235. // Read mtype
  236. h->mtype = get_vlc2(&s->gb, h261_mtype_vlc.table, H261_MTYPE_VLC_BITS, 2);
  237. if (h->mtype < 0) {
  238. av_log(s->avctx, AV_LOG_ERROR, "illegal mtype %d\n", h->mtype);
  239. return SLICE_ERROR;
  240. }
  241. h->mtype = ff_h261_mtype_map[h->mtype];
  242. // Read mquant
  243. if ( IS_QUANT ( h->mtype ) ){
  244. ff_set_qscale(s, get_bits(&s->gb, 5));
  245. }
  246. s->mb_intra = IS_INTRA4x4(h->mtype);
  247. // Read mv
  248. if ( IS_16X16 ( h->mtype ) ){
  249. // Motion vector data is included for all MC macroblocks. MVD is obtained from the macroblock vector by subtracting the
  250. // vector of the preceding macroblock. For this calculation the vector of the preceding macroblock is regarded as zero in the
  251. // following three situations:
  252. // 1) evaluating MVD for macroblocks 1, 12 and 23;
  253. // 2) evaluating MVD for macroblocks in which MBA does not represent a difference of 1;
  254. // 3) MTYPE of the previous macroblock was not MC.
  255. if ( ( h->current_mba == 1 ) || ( h->current_mba == 12 ) || ( h->current_mba == 23 ) ||
  256. ( h->mba_diff != 1))
  257. {
  258. h->current_mv_x = 0;
  259. h->current_mv_y = 0;
  260. }
  261. h->current_mv_x= decode_mv_component(&s->gb, h->current_mv_x);
  262. h->current_mv_y= decode_mv_component(&s->gb, h->current_mv_y);
  263. }else{
  264. h->current_mv_x = 0;
  265. h->current_mv_y = 0;
  266. }
  267. // Read cbp
  268. if ( HAS_CBP( h->mtype ) ){
  269. cbp = get_vlc2(&s->gb, h261_cbp_vlc.table, H261_CBP_VLC_BITS, 2) + 1;
  270. }
  271. if(s->mb_intra){
  272. s->current_picture.f.mb_type[xy] = MB_TYPE_INTRA;
  273. goto intra;
  274. }
  275. //set motion vectors
  276. s->mv_dir = MV_DIR_FORWARD;
  277. s->mv_type = MV_TYPE_16X16;
  278. s->current_picture.f.mb_type[xy] = MB_TYPE_16x16 | MB_TYPE_L0;
  279. s->mv[0][0][0] = h->current_mv_x * 2;//gets divided by 2 in motion compensation
  280. s->mv[0][0][1] = h->current_mv_y * 2;
  281. intra:
  282. /* decode each block */
  283. if(s->mb_intra || HAS_CBP(h->mtype)){
  284. s->dsp.clear_blocks(s->block[0]);
  285. for (i = 0; i < 6; i++) {
  286. if (h261_decode_block(h, s->block[i], i, cbp&32) < 0){
  287. return SLICE_ERROR;
  288. }
  289. cbp+=cbp;
  290. }
  291. }else{
  292. for (i = 0; i < 6; i++)
  293. s->block_last_index[i]= -1;
  294. }
  295. ff_MPV_decode_mb(s, s->block);
  296. return SLICE_OK;
  297. }
  298. /**
  299. * Decode a macroblock.
  300. * @return <0 if an error occurred
  301. */
  302. static int h261_decode_block(H261Context * h, DCTELEM * block,
  303. int n, int coded)
  304. {
  305. MpegEncContext * const s = &h->s;
  306. int code, level, i, j, run;
  307. RLTable *rl = &ff_h261_rl_tcoeff;
  308. const uint8_t *scan_table;
  309. // For the variable length encoding there are two code tables, one being used for
  310. // the first transmitted LEVEL in INTER, INTER+MC and INTER+MC+FIL blocks, the second
  311. // for all other LEVELs except the first one in INTRA blocks which is fixed length
  312. // coded with 8 bits.
  313. // NOTE: the two code tables only differ in one VLC so we handle that manually.
  314. scan_table = s->intra_scantable.permutated;
  315. if (s->mb_intra){
  316. /* DC coef */
  317. level = get_bits(&s->gb, 8);
  318. // 0 (00000000b) and -128 (10000000b) are FORBIDDEN
  319. if((level&0x7F) == 0){
  320. av_log(s->avctx, AV_LOG_ERROR, "illegal dc %d at %d %d\n", level, s->mb_x, s->mb_y);
  321. return -1;
  322. }
  323. // The code 1000 0000 is not used, the reconstruction level of 1024 being coded as 1111 1111.
  324. if (level == 255)
  325. level = 128;
  326. block[0] = level;
  327. i = 1;
  328. }else if(coded){
  329. // Run Level Code
  330. // EOB Not possible for first level when cbp is available (that's why the table is different)
  331. // 0 1 1s
  332. // * * 0*
  333. int check = show_bits(&s->gb, 2);
  334. i = 0;
  335. if ( check & 0x2 ){
  336. skip_bits(&s->gb, 2);
  337. block[0] = ( check & 0x1 ) ? -1 : 1;
  338. i = 1;
  339. }
  340. }else{
  341. i = 0;
  342. }
  343. if(!coded){
  344. s->block_last_index[n] = i - 1;
  345. return 0;
  346. }
  347. for(;;){
  348. code = get_vlc2(&s->gb, rl->vlc.table, TCOEFF_VLC_BITS, 2);
  349. if (code < 0){
  350. av_log(s->avctx, AV_LOG_ERROR, "illegal ac vlc code at %dx%d\n", s->mb_x, s->mb_y);
  351. return -1;
  352. }
  353. if (code == rl->n) {
  354. /* escape */
  355. // The remaining combinations of (run, level) are encoded with a 20-bit word consisting of 6 bits escape, 6 bits run and 8 bits level.
  356. run = get_bits(&s->gb, 6);
  357. level = get_sbits(&s->gb, 8);
  358. }else if(code == 0){
  359. break;
  360. }else{
  361. run = rl->table_run[code];
  362. level = rl->table_level[code];
  363. if (get_bits1(&s->gb))
  364. level = -level;
  365. }
  366. i += run;
  367. if (i >= 64){
  368. av_log(s->avctx, AV_LOG_ERROR, "run overflow at %dx%d\n", s->mb_x, s->mb_y);
  369. return -1;
  370. }
  371. j = scan_table[i];
  372. block[j] = level;
  373. i++;
  374. }
  375. s->block_last_index[n] = i-1;
  376. return 0;
  377. }
  378. /**
  379. * Decode the H.261 picture header.
  380. * @return <0 if no startcode found
  381. */
  382. static int h261_decode_picture_header(H261Context *h){
  383. MpegEncContext * const s = &h->s;
  384. int format, i;
  385. uint32_t startcode= 0;
  386. for(i= get_bits_left(&s->gb); i>24; i-=1){
  387. startcode = ((startcode << 1) | get_bits(&s->gb, 1)) & 0x000FFFFF;
  388. if(startcode == 0x10)
  389. break;
  390. }
  391. if (startcode != 0x10){
  392. av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n");
  393. return -1;
  394. }
  395. /* temporal reference */
  396. i= get_bits(&s->gb, 5); /* picture timestamp */
  397. if(i < (s->picture_number&31))
  398. i += 32;
  399. s->picture_number = (s->picture_number&~31) + i;
  400. s->avctx->time_base= (AVRational){1001, 30000};
  401. s->current_picture.f.pts = s->picture_number;
  402. /* PTYPE starts here */
  403. skip_bits1(&s->gb); /* split screen off */
  404. skip_bits1(&s->gb); /* camera off */
  405. skip_bits1(&s->gb); /* freeze picture release off */
  406. format = get_bits1(&s->gb);
  407. //only 2 formats possible
  408. if (format == 0){//QCIF
  409. s->width = 176;
  410. s->height = 144;
  411. s->mb_width = 11;
  412. s->mb_height = 9;
  413. }else{//CIF
  414. s->width = 352;
  415. s->height = 288;
  416. s->mb_width = 22;
  417. s->mb_height = 18;
  418. }
  419. s->mb_num = s->mb_width * s->mb_height;
  420. skip_bits1(&s->gb); /* still image mode off */
  421. skip_bits1(&s->gb); /* Reserved */
  422. /* PEI */
  423. while (get_bits1(&s->gb) != 0){
  424. skip_bits(&s->gb, 8);
  425. }
  426. // h261 has no I-FRAMES, but if we pass AV_PICTURE_TYPE_I for the first frame, the codec crashes if it does
  427. // not contain all I-blocks (e.g. when a packet is lost)
  428. s->pict_type = AV_PICTURE_TYPE_P;
  429. h->gob_number = 0;
  430. return 0;
  431. }
  432. static int h261_decode_gob(H261Context *h){
  433. MpegEncContext * const s = &h->s;
  434. ff_set_qscale(s, s->qscale);
  435. /* decode mb's */
  436. while(h->current_mba <= MBA_STUFFING)
  437. {
  438. int ret;
  439. /* DCT & quantize */
  440. ret= h261_decode_mb(h);
  441. if(ret<0){
  442. if(ret==SLICE_END){
  443. h261_decode_mb_skipped(h, h->current_mba, 33);
  444. return 0;
  445. }
  446. av_log(s->avctx, AV_LOG_ERROR, "Error at MB: %d\n", s->mb_x + s->mb_y*s->mb_stride);
  447. return -1;
  448. }
  449. h261_decode_mb_skipped(h, h->current_mba-h->mba_diff, h->current_mba-1);
  450. }
  451. return -1;
  452. }
  453. /**
  454. * returns the number of bytes consumed for building the current frame
  455. */
  456. static int get_consumed_bytes(MpegEncContext *s, int buf_size){
  457. int pos= get_bits_count(&s->gb)>>3;
  458. if(pos==0) pos=1; //avoid infinite loops (i doubt that is needed but ...)
  459. if(pos+10>buf_size) pos=buf_size; // oops ;)
  460. return pos;
  461. }
  462. static int h261_decode_frame(AVCodecContext *avctx,
  463. void *data, int *data_size,
  464. AVPacket *avpkt)
  465. {
  466. const uint8_t *buf = avpkt->data;
  467. int buf_size = avpkt->size;
  468. H261Context *h= avctx->priv_data;
  469. MpegEncContext *s = &h->s;
  470. int ret;
  471. AVFrame *pict = data;
  472. av_dlog(avctx, "*****frame %d size=%d\n", avctx->frame_number, buf_size);
  473. av_dlog(avctx, "bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
  474. s->flags= avctx->flags;
  475. s->flags2= avctx->flags2;
  476. h->gob_start_code_skipped=0;
  477. retry:
  478. init_get_bits(&s->gb, buf, buf_size*8);
  479. if(!s->context_initialized){
  480. if (ff_MPV_common_init(s) < 0) //we need the idct permutaton for reading a custom matrix
  481. return -1;
  482. }
  483. //we need to set current_picture_ptr before reading the header, otherwise we cannot store anyting im there
  484. if (s->current_picture_ptr == NULL || s->current_picture_ptr->f.data[0]) {
  485. int i= ff_find_unused_picture(s, 0);
  486. if (i < 0)
  487. return i;
  488. s->current_picture_ptr= &s->picture[i];
  489. }
  490. ret = h261_decode_picture_header(h);
  491. /* skip if the header was thrashed */
  492. if (ret < 0){
  493. av_log(s->avctx, AV_LOG_ERROR, "header damaged\n");
  494. return -1;
  495. }
  496. if (s->width != avctx->coded_width || s->height != avctx->coded_height){
  497. ParseContext pc= s->parse_context; //FIXME move this demuxing hack to libavformat
  498. s->parse_context.buffer=0;
  499. ff_MPV_common_end(s);
  500. s->parse_context= pc;
  501. }
  502. if (!s->context_initialized) {
  503. avcodec_set_dimensions(avctx, s->width, s->height);
  504. goto retry;
  505. }
  506. // for skipping the frame
  507. s->current_picture.f.pict_type = s->pict_type;
  508. s->current_picture.f.key_frame = s->pict_type == AV_PICTURE_TYPE_I;
  509. if( (avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type==AV_PICTURE_TYPE_B)
  510. ||(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type!=AV_PICTURE_TYPE_I)
  511. || avctx->skip_frame >= AVDISCARD_ALL)
  512. return get_consumed_bytes(s, buf_size);
  513. if(ff_MPV_frame_start(s, avctx) < 0)
  514. return -1;
  515. ff_er_frame_start(s);
  516. /* decode each macroblock */
  517. s->mb_x=0;
  518. s->mb_y=0;
  519. while(h->gob_number < (s->mb_height==18 ? 12 : 5)){
  520. if(ff_h261_resync(h)<0)
  521. break;
  522. h261_decode_gob(h);
  523. }
  524. ff_MPV_frame_end(s);
  525. assert(s->current_picture.f.pict_type == s->current_picture_ptr->f.pict_type);
  526. assert(s->current_picture.f.pict_type == s->pict_type);
  527. *pict = s->current_picture_ptr->f;
  528. ff_print_debug_info(s, pict);
  529. *data_size = sizeof(AVFrame);
  530. return get_consumed_bytes(s, buf_size);
  531. }
  532. static av_cold int h261_decode_end(AVCodecContext *avctx)
  533. {
  534. H261Context *h= avctx->priv_data;
  535. MpegEncContext *s = &h->s;
  536. ff_MPV_common_end(s);
  537. return 0;
  538. }
  539. AVCodec ff_h261_decoder = {
  540. .name = "h261",
  541. .type = AVMEDIA_TYPE_VIDEO,
  542. .id = CODEC_ID_H261,
  543. .priv_data_size = sizeof(H261Context),
  544. .init = h261_decode_init,
  545. .close = h261_decode_end,
  546. .decode = h261_decode_frame,
  547. .capabilities = CODEC_CAP_DR1,
  548. .long_name = NULL_IF_CONFIG_SMALL("H.261"),
  549. };