• Home
  • Raw
  • Download

Lines Matching refs:odata

148 {	OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ;  in vorbis_read_header()  local
165 if (!odata->opacket.b_o_s) in vorbis_read_header()
170 if (ogg_stream_packetpeek (&odata->ostream, NULL)) in vorbis_read_header()
175 if (vorbis_synthesis_headerin (&vdata->vinfo, &vdata->vcomment, &odata->opacket) < 0) in vorbis_read_header()
195 { nn = ogg_stream_packetout (&odata->ostream, &odata->opacket) ; in vorbis_read_header()
198 { nn = ogg_stream_next_page (psf, odata) ; in vorbis_read_header()
216 vorbis_synthesis_headerin (&vdata->vinfo, &vdata->vcomment, &odata->opacket) ; in vorbis_read_header()
221 while (ogg_stream_packetout (&odata->ostream, &odata->opacket) == 1) in vorbis_read_header()
240 ogg_stream_unpack_page (psf, odata) ; in vorbis_read_header()
241 vdata->pcm_start = odata->pkt [odata->pkt_len - 1].granulepos ; in vorbis_read_header()
260 …last_page = ogg_sync_last_page_before (psf, odata, &vdata->pcm_end, psf->filelength, odata->ostrea… in vorbis_read_header()
262 { if (!ogg_page_eos (&odata->opage)) in vorbis_read_header()
264 psf->datalength = last_page + odata->opage.header_len + odata->opage.body_len - psf->dataoffset ; in vorbis_read_header()
318 OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_write_header() local
377 ogg_stream_init (&odata->ostream, psf_rand_int32 ()) ; in vorbis_write_header()
392 ogg_stream_packetin (&odata->ostream, &header) ; /* automatically placed in its own page */ in vorbis_write_header()
393 ogg_stream_packetin (&odata->ostream, &header_comm) ; in vorbis_write_header()
394 ogg_stream_packetin (&odata->ostream, &header_code) ; in vorbis_write_header()
399 while ((result = ogg_stream_flush (&odata->ostream, &odata->opage)) != 0) in vorbis_write_header()
400 { ogg_write_page (psf, &odata->opage) ; in vorbis_write_header()
409 { OGG_PRIVATE* odata = psf->container_data ; in vorbis_close() local
412 if (odata == NULL || vdata == NULL) in vorbis_close()
431 while (vorbis_bitrate_flushpacket (&vdata->vdsp, &odata->opacket)) in vorbis_close()
433 ogg_stream_packetin (&odata->ostream, &odata->opacket) ; in vorbis_close()
436 while (!odata->eos) in vorbis_close()
437 { int result = ogg_stream_pageout (&odata->ostream, &odata->opage) ; in vorbis_close()
439 ogg_write_page (psf, &odata->opage) ; in vorbis_close()
444 if (ogg_page_eos (&odata->opage)) odata->eos = 1 ; in vorbis_close()
463 { OGG_PRIVATE* odata = psf->container_data ; in ogg_vorbis_open() local
467 if (odata == NULL) in ogg_vorbis_open()
620 OGG_PRIVATE *odata = psf->container_data ; in vorbis_read_sample() local
645 if (odata->pkt_indx == odata->pkt_len) in vorbis_read_sample()
647 nn = ogg_stream_unpack_page (psf, odata) ; in vorbis_read_sample()
652 vdata->loc = odata->pkt [odata->pkt_len - 1].granulepos ; in vorbis_read_sample()
658 …if (vorbis_synthesis (&vdata->vblock, &(odata->pkt [odata->pkt_indx])) == 0) /* test for success! … in vorbis_read_sample()
660 odata->pkt_indx++ ; in vorbis_read_sample()
690 vorbis_write_samples (SF_PRIVATE *psf, OGG_PRIVATE *odata, VORBIS_PRIVATE *vdata, int in_frames) in vorbis_write_samples() argument
705 while (vorbis_bitrate_flushpacket (&vdata->vdsp, &odata->opacket)) in vorbis_write_samples()
708 ogg_stream_packetin (&odata->ostream, &odata->opacket) ; in vorbis_write_samples()
711 while (!odata->eos) in vorbis_write_samples()
712 { int result = ogg_stream_pageout (&odata->ostream, &odata->opage) ; in vorbis_write_samples()
715 ogg_write_page (psf, &odata->opage) ; in vorbis_write_samples()
719 if (ogg_page_eos (&odata->opage)) in vorbis_write_samples()
720 odata->eos = 1 ; in vorbis_write_samples()
733 OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_write_s() local
741 vorbis_write_samples (psf, odata, vdata, in_frames) ; in vorbis_write_s()
749 OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_write_i() local
757 vorbis_write_samples (psf, odata, vdata, in_frames) ; in vorbis_write_i()
765 OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_write_f() local
773 vorbis_write_samples (psf, odata, vdata, in_frames) ; in vorbis_write_f()
781 OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_write_d() local
789 vorbis_write_samples (psf, odata, vdata, in_frames) ; in vorbis_write_d()
796 { OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_seek() local
801 if (odata == NULL || vdata == NULL) in vorbis_seek()
823 ret = ogg_stream_seek_page_search (psf, odata, target, vdata->pcm_start, in vorbis_seek()
826 { ret = ogg_stream_unpack_page (psf, odata) ; in vorbis_seek()
838 ogg_stream_reset_serialno (&odata->ostream, odata->ostream.serialno) ; in vorbis_seek()
839 odata->pkt_len = 0 ; in vorbis_seek()
840 odata->pkt_indx = 0 ; in vorbis_seek()
878 { OGG_PRIVATE *odata = (OGG_PRIVATE *) psf->container_data ; in vorbis_calculate_page_duration() local
886 for (i = 0 ; i < odata->pkt_len ; i++) in vorbis_calculate_page_duration()
887 { thisblock = vorbis_packet_blocksize (&vdata->vinfo, &(odata->pkt [i])) ; in vorbis_calculate_page_duration()