Lines Matching refs:pby

231     PutByteContext      pby;
427 PutByteContext *pby = &s->pby;
554 bytestream2_init_writer(pby, pkt->data, pkt->size);
556 bytestream2_put_be16(pby, SampleType);
557 bytestream2_put_be16(pby, 9);
559 bytestream2_put_be16(pby, SampleIndexTable);
560 bytestream2_put_be16(pby, s->planes);
563 bytestream2_put_be32(pby, 0);
565 bytestream2_put_be16(pby, TransformType);
566 bytestream2_put_be16(pby, 0);
568 bytestream2_put_be16(pby, NumFrames);
569 bytestream2_put_be16(pby, 1);
571 bytestream2_put_be16(pby, ChannelCount);
572 bytestream2_put_be16(pby, s->planes);
574 bytestream2_put_be16(pby, EncodedFormat);
575 bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 1 : 3 + (s->planes == 4));
577 bytestream2_put_be16(pby, WaveletCount);
578 bytestream2_put_be16(pby, 3);
580 bytestream2_put_be16(pby, SubbandCount);
581 bytestream2_put_be16(pby, SUBBAND_COUNT);
583 bytestream2_put_be16(pby, NumSpatial);
584 bytestream2_put_be16(pby, 2);
586 bytestream2_put_be16(pby, FirstWavelet);
587 bytestream2_put_be16(pby, 3);
589 bytestream2_put_be16(pby, ImageWidth);
590 bytestream2_put_be16(pby, avctx->width);
592 bytestream2_put_be16(pby, ImageHeight);
593 bytestream2_put_be16(pby, avctx->height);
595 bytestream2_put_be16(pby, -FrameNumber);
596 bytestream2_put_be16(pby, frame->pts & 0xFFFF);
598 bytestream2_put_be16(pby, Precision);
599 bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 10 : 12);
601 bytestream2_put_be16(pby, PrescaleTable);
602 bytestream2_put_be16(pby, avctx->pix_fmt == AV_PIX_FMT_YUV422P10 ? 0x2000 : 0x2800);
604 bytestream2_put_be16(pby, SampleFlags);
605 bytestream2_put_be16(pby, 1);
614 bytestream2_put_be16(pby, SampleType);
615 bytestream2_put_be16(pby, 3);
617 bytestream2_put_be16(pby, ChannelNumber);
618 bytestream2_put_be16(pby, p);
621 bytestream2_put_be16(pby, BitstreamMarker);
622 bytestream2_put_be16(pby, 0x1a4a);
624 pos = bytestream2_tell_p(pby);
626 bytestream2_put_be16(pby, LowpassSubband);
627 bytestream2_put_be16(pby, 0);
629 bytestream2_put_be16(pby, NumLevels);
630 bytestream2_put_be16(pby, 3);
632 bytestream2_put_be16(pby, LowpassWidth);
633 bytestream2_put_be16(pby, width);
635 bytestream2_put_be16(pby, LowpassHeight);
636 bytestream2_put_be16(pby, height);
638 bytestream2_put_be16(pby, PixelOffset);
639 bytestream2_put_be16(pby, 0);
641 bytestream2_put_be16(pby, LowpassQuantization);
642 bytestream2_put_be16(pby, 1);
644 bytestream2_put_be16(pby, LowpassPrecision);
645 bytestream2_put_be16(pby, 16);
647 bytestream2_put_be16(pby, BitstreamMarker);
648 bytestream2_put_be16(pby, 0x0f0f);
652 bytestream2_put_be16(pby, data[j]);
656 bytestream2_put_be16(pby, BitstreamMarker);
657 bytestream2_put_be16(pby, 0x1b4b);
671 bytestream2_put_be16(pby, BitstreamMarker);
672 bytestream2_put_be16(pby, 0x0d0d);
674 bytestream2_put_be16(pby, WaveletType);
675 bytestream2_put_be16(pby, 3 + 2 * (l == 2));
677 bytestream2_put_be16(pby, WaveletNumber);
678 bytestream2_put_be16(pby, 3 - l);
680 bytestream2_put_be16(pby, WaveletLevel);
681 bytestream2_put_be16(pby, 3 - l);
683 bytestream2_put_be16(pby, NumBands);
684 bytestream2_put_be16(pby, 4);
686 bytestream2_put_be16(pby, HighpassWidth);
687 bytestream2_put_be16(pby, width);
689 bytestream2_put_be16(pby, HighpassHeight);
690 bytestream2_put_be16(pby, height);
692 bytestream2_put_be16(pby, LowpassBorder);
693 bytestream2_put_be16(pby, 0);
695 bytestream2_put_be16(pby, HighpassBorder);
696 bytestream2_put_be16(pby, 0);
698 bytestream2_put_be16(pby, LowpassScale);
699 bytestream2_put_be16(pby, 1);
701 bytestream2_put_be16(pby, LowpassDivisor);
702 bytestream2_put_be16(pby, 1);
708 bytestream2_put_be16(pby, BitstreamMarker);
709 bytestream2_put_be16(pby, 0x0e0e);
711 bytestream2_put_be16(pby, SubbandNumber);
712 bytestream2_put_be16(pby, i + 1);
714 bytestream2_put_be16(pby, BandCodingFlags);
715 bytestream2_put_be16(pby, 1);
717 bytestream2_put_be16(pby, BandWidth);
718 bytestream2_put_be16(pby, width);
720 bytestream2_put_be16(pby, BandHeight);
721 bytestream2_put_be16(pby, height);
723 bytestream2_put_be16(pby, SubbandBand);
724 bytestream2_put_be16(pby, 1 + l * 3 + i);
726 bytestream2_put_be16(pby, BandEncoding);
727 bytestream2_put_be16(pby, 3);
729 bytestream2_put_be16(pby, Quantization);
730 bytestream2_put_be16(pby, s->plane[p].quantization[1 + l * 3 + i]);
732 bytestream2_put_be16(pby, BandScale);
733 bytestream2_put_be16(pby, 1);
735 bytestream2_put_be16(pby, BandHeader);
736 bytestream2_put_be16(pby, 0);
741 init_put_bits(pb, pkt->data + bytestream2_tell_p(pby), bytestream2_get_bytes_left_p(pby));
769 bytestream2_skip_p(pby, put_bytes_output(pb));
770 padd = (4 - (bytestream2_tell_p(pby) & 3)) & 3;
772 bytestream2_put_byte(pby, 0);
774 bytestream2_put_be16(pby, BandTrailer);
775 bytestream2_put_be16(pby, 0);
778 bytestream2_put_be16(pby, BitstreamMarker);
779 bytestream2_put_be16(pby, 0x0c0c);
782 s->plane[p].size = bytestream2_tell_p(pby) - pos;
785 bytestream2_put_be16(pby, GroupTrailer);
786 bytestream2_put_be16(pby, 0);
788 av_shrink_packet(pkt, bytestream2_tell_p(pby));
792 bytestream2_seek_p(pby, 8, SEEK_SET);
794 bytestream2_put_be32(pby, s->plane[i].size);