• Home
  • Raw
  • Download

Lines Matching refs:dyn_cp

368 static int start_ebml_master_crc32(AVIOContext **dyn_cp, MatroskaMuxContext *mkv)  in start_ebml_master_crc32()  argument
372 if (!*dyn_cp && (ret = avio_open_dyn_buf(dyn_cp)) < 0) in start_ebml_master_crc32()
376 …put_ebml_void(*dyn_cp, 6); /* Reserve space for CRC32 so position/size calculations using avio_tel… in start_ebml_master_crc32()
381 static int end_ebml_master_crc32(AVIOContext *pb, AVIOContext **dyn_cp, in end_ebml_master_crc32() argument
389 size = avio_get_dyn_buf(*dyn_cp, &buf); in end_ebml_master_crc32()
390 if ((ret = (*dyn_cp)->error) < 0) in end_ebml_master_crc32()
407 ffio_reset_dyn_buf(*dyn_cp); in end_ebml_master_crc32()
409 ffio_free_dyn_buf(dyn_cp); in end_ebml_master_crc32()
493 AVIOContext *dyn_cp = NULL; in mkv_write_seekhead() local
501 ret = start_ebml_master_crc32(&dyn_cp, mkv); in mkv_write_seekhead()
507 ebml_master seekentry = start_ebml_master(dyn_cp, MATROSKA_ID_SEEKENTRY, in mkv_write_seekhead()
510 put_ebml_id(dyn_cp, MATROSKA_ID_SEEKID); in mkv_write_seekhead()
511 put_ebml_length(dyn_cp, ebml_id_size(entry->elementid), 0); in mkv_write_seekhead()
512 put_ebml_id(dyn_cp, entry->elementid); in mkv_write_seekhead()
514 put_ebml_uint(dyn_cp, MATROSKA_ID_SEEKPOSITION, entry->segmentpos); in mkv_write_seekhead()
515 end_ebml_master(dyn_cp, seekentry); in mkv_write_seekhead()
517 ret = end_ebml_master_crc32(pb, &dyn_cp, mkv, in mkv_write_seekhead()
554 static int mkv_assemble_cues(AVStream **streams, AVIOContext *dyn_cp, in mkv_assemble_cues() argument
595 put_ebml_binary(dyn_cp, MATROSKA_ID_POINTENTRY, buf, size); in mkv_assemble_cues()
713 AVIOContext *dyn_cp) in mkv_write_native_codecprivate() argument
718 return put_xiph_codecpriv(s, dyn_cp, par); in mkv_write_native_codecprivate()
720 return put_flac_codecpriv(s, dyn_cp, par); in mkv_write_native_codecprivate()
722 return put_wv_codecpriv(dyn_cp, par); in mkv_write_native_codecprivate()
724 return ff_isom_write_avcc(dyn_cp, par->extradata, in mkv_write_native_codecprivate()
727 return ff_isom_write_hvcc(dyn_cp, par->extradata, in mkv_write_native_codecprivate()
731 return ff_isom_write_av1c(dyn_cp, par->extradata, in mkv_write_native_codecprivate()
743 avio_write(dyn_cp, par->extradata + 12, in mkv_write_native_codecprivate()
748 avio_write(dyn_cp, par->extradata, par->extradata_size); in mkv_write_native_codecprivate()
755 avio_wl32(dyn_cp, par->codec_tag); in mkv_write_native_codecprivate()
757 avio_write(dyn_cp, par->extradata, par->extradata_size); in mkv_write_native_codecprivate()
767 AVIOContext *dyn_cp; in mkv_write_codecprivate() local
772 ret = avio_open_dyn_buf(&dyn_cp); in mkv_write_codecprivate()
777 ret = mkv_write_native_codecprivate(s, pb, par, dyn_cp); in mkv_write_codecprivate()
787 avio_wb32(dyn_cp, 0x5a + par->extradata_size); in mkv_write_codecprivate()
788 avio_wl32(dyn_cp, par->codec_tag); in mkv_write_codecprivate()
790 avio_w8(dyn_cp, 0); in mkv_write_codecprivate()
792 avio_write(dyn_cp, par->extradata, par->extradata_size); in mkv_write_codecprivate()
807 ff_put_bmp_header(dyn_cp, par, 0, 0, mkv->flipped_raw_rgb); in mkv_write_codecprivate()
820 ff_put_wav_header(s, dyn_cp, par, FF_PUT_WAV_HEADER_FORCE_WAVEFORMATEX); in mkv_write_codecprivate()
824 codecpriv_size = avio_get_dyn_buf(dyn_cp, &codecpriv); in mkv_write_codecprivate()
825 if ((ret = dyn_cp->error) >= 0 && codecpriv_size) in mkv_write_codecprivate()
829 ffio_free_dyn_buf(&dyn_cp); in mkv_write_codecprivate()
840 AVIOContext buf, *dyn_cp = &buf; in mkv_write_video_color() local
844 ffio_init_context(dyn_cp, colour, sizeof(colour), 1, NULL, NULL, NULL, NULL); in mkv_write_video_color()
848 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORTRANSFERCHARACTERISTICS, in mkv_write_video_color()
853 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORMATRIXCOEFF, par->color_space); in mkv_write_video_color()
857 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORPRIMARIES, par->color_primaries); in mkv_write_video_color()
861 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORRANGE, par->color_range); in mkv_write_video_color()
868 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORCHROMASITINGHORZ, (xpos >> 7) + 1); in mkv_write_video_color()
869 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORCHROMASITINGVERT, (ypos >> 7) + 1); in mkv_write_video_color()
876 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORMAXCLL, metadata->MaxCLL); in mkv_write_video_color()
877 put_ebml_uint(dyn_cp, MATROSKA_ID_VIDEOCOLORMAXFALL, metadata->MaxFALL); in mkv_write_video_color()
884 dyn_cp, MATROSKA_ID_VIDEOCOLORMASTERINGMETA, 10 * (2 + 1 + 8)); in mkv_write_video_color()
887 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_RX, in mkv_write_video_color()
889 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_RY, in mkv_write_video_color()
891 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_GX, in mkv_write_video_color()
893 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_GY, in mkv_write_video_color()
895 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_BX, in mkv_write_video_color()
897 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_BY, in mkv_write_video_color()
899 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_WHITEX, in mkv_write_video_color()
901 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_WHITEY, in mkv_write_video_color()
905 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_LUMINANCEMAX, in mkv_write_video_color()
907 put_ebml_float(dyn_cp, MATROSKA_ID_VIDEOCOLOR_LUMINANCEMIN, in mkv_write_video_color()
910 end_ebml_master(dyn_cp, meta_element); in mkv_write_video_color()
913 colorinfo_size = avio_tell(dyn_cp); in mkv_write_video_color()
1643 AVIOContext *dyn_cp = NULL, *dyn_tags = NULL, **tags, *pb = s->pb; in mkv_write_chapters() local
1651 ret = start_ebml_master_crc32(&dyn_cp, mkv); in mkv_write_chapters()
1655 editionentry = start_ebml_master(dyn_cp, MATROSKA_ID_EDITIONENTRY, 0); in mkv_write_chapters()
1657 put_ebml_uint(dyn_cp, MATROSKA_ID_EDITIONFLAGDEFAULT, 1); in mkv_write_chapters()
1685 chapteratom = start_ebml_master(dyn_cp, MATROSKA_ID_CHAPTERATOM, 0); in mkv_write_chapters()
1686 put_ebml_uint(dyn_cp, MATROSKA_ID_CHAPTERUID, uid); in mkv_write_chapters()
1687 put_ebml_uint(dyn_cp, MATROSKA_ID_CHAPTERTIMESTART, chapterstart); in mkv_write_chapters()
1688 put_ebml_uint(dyn_cp, MATROSKA_ID_CHAPTERTIMEEND, chapterend); in mkv_write_chapters()
1690 chapterdisplay = start_ebml_master(dyn_cp, MATROSKA_ID_CHAPTERDISPLAY, 0); in mkv_write_chapters()
1691 put_ebml_string(dyn_cp, MATROSKA_ID_CHAPSTRING, t->value); in mkv_write_chapters()
1692 put_ebml_string(dyn_cp, MATROSKA_ID_CHAPLANG , "und"); in mkv_write_chapters()
1693 end_ebml_master(dyn_cp, chapterdisplay); in mkv_write_chapters()
1695 end_ebml_master(dyn_cp, chapteratom); in mkv_write_chapters()
1704 end_ebml_master(dyn_cp, editionentry); in mkv_write_chapters()
1707 ret = end_ebml_master_crc32(pb, &dyn_cp, mkv, MATROSKA_ID_CHAPTERS, 0, 0, 1); in mkv_write_chapters()
1721 ffio_free_dyn_buf(&dyn_cp); in mkv_write_chapters()
1745 AVIOContext *dyn_cp = NULL, *pb = s->pb; in mkv_write_attachments() local
1751 ret = start_ebml_master_crc32(&dyn_cp, mkv); in mkv_write_attachments()
1765 attached_file = start_ebml_master(dyn_cp, MATROSKA_ID_ATTACHEDFILE, 0); in mkv_write_attachments()
1768 put_ebml_string(dyn_cp, MATROSKA_ID_FILEDESC, t->value); in mkv_write_attachments()
1771 ffio_free_dyn_buf(&dyn_cp); in mkv_write_attachments()
1774 put_ebml_string(dyn_cp, MATROSKA_ID_FILENAME, t->value); in mkv_write_attachments()
1778 put_ebml_string(dyn_cp, MATROSKA_ID_FILEMIMETYPE, mimetype); in mkv_write_attachments()
1779 …put_ebml_binary(dyn_cp, MATROSKA_ID_FILEDATA, st->codecpar->extradata, st->codecpar->extradata_siz… in mkv_write_attachments()
1780 put_ebml_uid(dyn_cp, MATROSKA_ID_FILEUID, track->uid); in mkv_write_attachments()
1781 end_ebml_master(dyn_cp, attached_file); in mkv_write_attachments()
1783 return end_ebml_master_crc32(pb, &dyn_cp, mkv, in mkv_write_attachments()
2264 AVIOContext *dyn_cp; in mkv_check_new_extra_data() local
2267 ret = avio_open_dyn_buf(&dyn_cp); in mkv_check_new_extra_data()
2270 ff_isom_write_av1c(dyn_cp, side_data, side_data_size); in mkv_check_new_extra_data()
2271 codecpriv_size = avio_get_dyn_buf(dyn_cp, &codecpriv); in mkv_check_new_extra_data()
2272 if ((ret = dyn_cp->error) < 0 || in mkv_check_new_extra_data()
2274 ffio_free_dyn_buf(&dyn_cp); in mkv_check_new_extra_data()
2280 ffio_free_dyn_buf(&dyn_cp); in mkv_check_new_extra_data()