• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavformat/

Lines Matching refs:ogg

61     struct ogg *ogg = s->priv_data;
63 av_malloc(sizeof (*ost) + (ogg->nstreams-1) * sizeof (*ogg->streams));
66 ost->curidx = ogg->curidx;
67 ost->next = ogg->state;
68 ost->nstreams = ogg->nstreams;
69 memcpy(ost->streams, ogg->streams, ogg->nstreams * sizeof(*ogg->streams));
71 for (i = 0; i < ogg->nstreams; i++){
72 struct ogg_stream *os = ogg->streams + i;
77 ogg->state = ost;
84 struct ogg *ogg = s->priv_data;
86 struct ogg_state *ost = ogg->state;
92 ogg->state = ost->next;
95 struct ogg_stream *old_streams = ogg->streams;
97 for (i = 0; i < ogg->nstreams; i++)
98 av_free (ogg->streams[i].buf);
101 ogg->curidx = ost->curidx;
102 ogg->nstreams = ost->nstreams;
103 ogg->streams = av_realloc (ogg->streams,
104 ogg->nstreams * sizeof (*ogg->streams));
106 if (ogg->streams) {
107 memcpy(ogg->streams, ost->streams,
108 ost->nstreams * sizeof(*ogg->streams));
111 ogg->nstreams = 0;
120 static int ogg_reset(struct ogg *ogg)
124 for (i = 0; i < ogg->nstreams; i++){
125 struct ogg_stream *os = ogg->streams + i;
139 ogg->curidx = -1;
159 struct ogg *ogg = s->priv_data;
160 int idx = ogg->nstreams++;
164 os = av_realloc (ogg->streams, ogg->nstreams * sizeof (*ogg->streams));
169 ogg->streams = os;
171 memset (ogg->streams + idx, 0, sizeof (*ogg->streams));
172 os = ogg->streams + idx;
190 static int ogg_new_buf(struct ogg *ogg, int idx)
192 struct ogg_stream *os = ogg->streams + idx;
209 struct ogg *ogg = s->priv_data;
238 av_log (s, AV_LOG_INFO, "ogg, can't find sync word\n");
251 idx = ogg_find_stream (ogg, serial);
253 if (ogg->headers) {
256 for (n = 0; n < ogg->nstreams; n++) {
257 av_freep(&ogg->streams[n].buf);
258 if (!ogg->state || ogg->state->streams[n].private != ogg->streams[n].private)
259 av_freep(&ogg->streams[n].private);
261 ogg->curidx = -1;
262 ogg->nstreams = 0;
271 os = ogg->streams + idx;
275 ogg_new_buf(ogg, idx);
330 struct ogg *ogg = s->priv_data;
336 av_dlog(s, "ogg_packet: curidx=%i\n", ogg->curidx);
339 idx = ogg->curidx;
347 os = ogg->streams + idx;
378 ogg->curidx = -1;
389 ogg->curidx = idx;
401 ogg->headers = 1;
407 for (i = 0; i < ogg->nstreams; i++) {
408 struct ogg_stream *cur_os = ogg->streams + i;
447 ogg->curidx = -1;
454 struct ogg *ogg = s->priv_data;
461 }while (!ogg->headers);
470 struct ogg *ogg = s->priv_data;
490 if (ogg->streams[i].granule != -1 && ogg->streams[i].granule != 0 &&
491 ogg->streams[i].codec) {
493 ogg_gptopts (s, i, ogg->streams[i].granule, NULL);
506 struct ogg *ogg = s->priv_data;
509 for (i = 0; i < ogg->nstreams; i++) {
510 av_free(ogg->streams[i].buf);
511 if (ogg->streams[i].codec &&
512 ogg->streams[i].codec->cleanup) {
513 ogg->streams[i].codec->cleanup(s, i);
515 av_free(ogg->streams[i].private);
517 av_free(ogg->streams);
523 struct ogg *ogg = s->priv_data;
525 ogg->curidx = -1;
533 for (i = 0; i < ogg->nstreams; i++)
534 if (ogg->streams[i].header < 0)
535 ogg->streams[i].codec = NULL;
546 struct ogg *ogg = s->priv_data;
547 struct ogg_stream *os = ogg->streams + idx;
576 struct ogg *ogg;
582 //Get an ogg packet
590 ogg = s->priv_data;
591 os = ogg->streams + idx;
619 struct ogg *ogg = s->priv_data;
624 ogg_reset(ogg);
628 struct ogg_stream *os = ogg->streams + stream_index;
636 ogg_reset(ogg);
643 struct ogg *ogg = s->priv_data;
644 struct ogg_stream *os = ogg->streams + stream_index;
654 os = ogg->streams + stream_index;
668 .name = "ogg",
670 .priv_data_size = sizeof(struct ogg),
677 .extensions = "ogg",