Lines Matching refs:CODE_ADD
60 #define CODE_ADD(name, val, length) do { \ macro
445 CODE_ADD(c, frame == PFRAME ? 0x2 : 0x3, 13); in mpeg1_frame_header()
446 CODE_ADD(c, 0xffff, 16); in mpeg1_frame_header()
447 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4); in mpeg1_frame_header()
449 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4); in mpeg1_frame_header()
451 CODE_ADD(c, 0, 4); /* Is this supposed to be here?? */ in mpeg1_frame_header()
452 CODE_ADD(c, 0, 3); /* What is this?? */ in mpeg1_frame_header()
456 CODE_ADD(c, 0, j); in mpeg1_frame_header()
459 CODE_ADD(c, 0x1, 24); in mpeg1_frame_header()
460 CODE_ADD(c, 0xb5, 8); in mpeg1_frame_header()
461 CODE_ADD(c, 0x844, 12); in mpeg1_frame_header()
462 CODE_ADD(c, frame == PFRAME ? 0xff : 0x44, 8); in mpeg1_frame_header()
464 CODE_ADD(c, pict_struct, 4); in mpeg1_frame_header()
466 CODE_ADD(c, 0x000, 11); in mpeg1_frame_header()
468 CODE_ADD(c, 0x200, 11); in mpeg1_frame_header()
470 CODE_ADD(c, 0x3, 4); in mpeg1_frame_header()
471 CODE_ADD(c, 0x20c, 11); in mpeg1_frame_header()
476 CODE_ADD(c, 0, j); in mpeg1_frame_header()
480 CODE_ADD(c, 1, 24); in mpeg1_frame_header()
481 CODE_ADD(c, i + 1, 8); in mpeg1_frame_header()
482 CODE_ADD(c, 0x2, 6); in mpeg1_frame_header()
483 CODE_ADD(c, 0x1, 1); in mpeg1_frame_header()
484 CODE_ADD(c, mb_code, mb_len); in mpeg1_frame_header()
486 CODE_ADD(c, 0x1, 2); in mpeg1_frame_header()
487 CODE_ADD(c, pict_struct == 1 ? 0x0 : 0x1, 1); in mpeg1_frame_header()
490 CODE_ADD(c, 0x3, 2); in mpeg1_frame_header()
492 CODE_ADD(c, pict_struct == 1 ? 0x0 : 0x1, 1); in mpeg1_frame_header()
494 CODE_ADD(c, 0x3, 2); in mpeg1_frame_header()
496 CODE_ADD(c, 0x8, 11); in mpeg1_frame_header()
497 CODE_ADD(c, addrinctab[j][0], addrinctab[j][1]); in mpeg1_frame_header()
498 CODE_ADD(c, mb_code, mb_len); in mpeg1_frame_header()
500 CODE_ADD(c, 0x1, 2); in mpeg1_frame_header()
501 CODE_ADD(c, pict_struct == 1 ? 0x0 : 0x1, 1); in mpeg1_frame_header()
504 CODE_ADD(c, 0x3, 2); in mpeg1_frame_header()
506 CODE_ADD(c, pict_struct == 1 ? 0x0 : 0x1, 1); in mpeg1_frame_header()
508 CODE_ADD(c, 0x3, 2); in mpeg1_frame_header()
513 CODE_ADD(c, 0, j); in mpeg1_frame_header()
575 CODE_ADD(c, go->width, 12); in mpeg1_sequence_header()
576 CODE_ADD(c, go->height, 12); in mpeg1_sequence_header()
577 CODE_ADD(c, aspect_ratio, 4); in mpeg1_sequence_header()
578 CODE_ADD(c, picture_rate, 4); in mpeg1_sequence_header()
579 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 20000 : 0x3ffff, 18); in mpeg1_sequence_header()
580 CODE_ADD(c, 1, 1); in mpeg1_sequence_header()
581 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 112 : 20, 10); in mpeg1_sequence_header()
582 CODE_ADD(c, 0, 3); in mpeg1_sequence_header()
587 CODE_ADD(c, 0, i); in mpeg1_sequence_header()
590 CODE_ADD(c, 0x1, 24); in mpeg1_sequence_header()
591 CODE_ADD(c, 0xb5, 8); in mpeg1_sequence_header()
592 CODE_ADD(c, 0x148, 12); in mpeg1_sequence_header()
594 CODE_ADD(c, 0x20001, 20); in mpeg1_sequence_header()
596 CODE_ADD(c, 0xa0001, 20); in mpeg1_sequence_header()
597 CODE_ADD(c, 0, 16); in mpeg1_sequence_header()
602 CODE_ADD(c, 0, i); in mpeg1_sequence_header()
605 CODE_ADD(c, 0x1, 24); in mpeg1_sequence_header()
606 CODE_ADD(c, 0xb52, 12); in mpeg1_sequence_header()
607 CODE_ADD(c, go->standard == GO7007_STD_NTSC ? 2 : 1, 3); in mpeg1_sequence_header()
608 CODE_ADD(c, 0x105, 9); in mpeg1_sequence_header()
609 CODE_ADD(c, 0x505, 16); in mpeg1_sequence_header()
610 CODE_ADD(c, go->width, 14); in mpeg1_sequence_header()
611 CODE_ADD(c, 1, 1); in mpeg1_sequence_header()
612 CODE_ADD(c, go->height, 14); in mpeg1_sequence_header()
617 CODE_ADD(c, 0, i); in mpeg1_sequence_header()
724 CODE_ADD(c, frame == PFRAME ? 0x1 : 0x2, 2); in mpeg4_frame_header()
726 CODE_ADD(c, 0x1, 1); in mpeg4_frame_header()
727 CODE_ADD(c, 0x1, 2); in mpeg4_frame_header()
728 CODE_ADD(c, 0, vti_bitlen(go)); in mpeg4_frame_header()
729 CODE_ADD(c, 0x3, 2); in mpeg4_frame_header()
731 CODE_ADD(c, 0, 1); in mpeg4_frame_header()
732 CODE_ADD(c, 0xc, 11); in mpeg4_frame_header()
734 CODE_ADD(c, 0x4, 3); in mpeg4_frame_header()
739 CODE_ADD(c, 0x1, 1); in mpeg4_frame_header()
742 CODE_ADD(c, 0x47, 8); in mpeg4_frame_header()
745 CODE_ADD(c, 0x27, 7); in mpeg4_frame_header()
748 CODE_ADD(c, 0x5f, 8); in mpeg4_frame_header()
758 CODE_ADD(c, 0, 1); in mpeg4_frame_header()
759 CODE_ADD(c, (1 << (i - 1)) - 1, i - 1); in mpeg4_frame_header()
794 CODE_ADD(c, 0x191, 17); in mpeg4_sequence_header()
795 CODE_ADD(c, aspect_ratio, 4); in mpeg4_sequence_header()
796 CODE_ADD(c, 0x1, 4); in mpeg4_sequence_header()
797 CODE_ADD(c, fps, 16); in mpeg4_sequence_header()
798 CODE_ADD(c, 0x3, 2); in mpeg4_sequence_header()
799 CODE_ADD(c, 1001, vti_bitlen(go)); in mpeg4_sequence_header()
800 CODE_ADD(c, 1, 1); in mpeg4_sequence_header()
801 CODE_ADD(c, go->width, 13); in mpeg4_sequence_header()
802 CODE_ADD(c, 1, 1); in mpeg4_sequence_header()
803 CODE_ADD(c, go->height, 13); in mpeg4_sequence_header()
804 CODE_ADD(c, 0x2830, 14); in mpeg4_sequence_header()
808 CODE_ADD(c, 0, 1); in mpeg4_sequence_header()
809 CODE_ADD(c, (1 << (i - 1)) - 1, i - 1); in mpeg4_sequence_header()