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

Lines Matching defs:vp

646     VideoPicture *vp;
654 vp = &is->pictq[is->pictq_rindex];
655 if (vp->bmp) {
657 if (vp->picref->video->pixel_aspect.num == 0)
660 aspect_ratio = av_q2d(vp->picref->video->pixel_aspect);
673 aspect_ratio *= (float)vp->width / (float)vp->height;
681 if (vp->pts >= sp->pts + ((float) sp->sub.start_display_time / 1000))
683 SDL_LockYUVOverlay (vp->bmp);
685 pict.data[0] = vp->bmp->pixels[0];
686 pict.data[1] = vp->bmp->pixels[2];
687 pict.data[2] = vp->bmp->pixels[1];
689 pict.linesize[0] = vp->bmp->pitches[0];
690 pict.linesize[1] = vp->bmp->pitches[2];
691 pict.linesize[2] = vp->bmp->pitches[1];
695 vp->bmp->w, vp->bmp->h);
697 SDL_UnlockYUVOverlay (vp->bmp);
717 SDL_DisplayYUVOverlay(vp->bmp, &rect);
1080 VideoPicture *vp;
1092 vp = &is->pictq[is->pictq_rindex];
1094 if (time < vp->target_clock)
1097 is->video_current_pts = vp->pts;
1099 is->video_current_pos = vp->pos;
1102 assert(nextvp->target_clock >= vp->target_clock);
1105 next_target = vp->target_clock + is->video_clock - vp->pts; // FIXME pass durations cleanly
1220 VideoPicture *vp;
1229 vp = &is->pictq[i];
1231 if (vp->picref) {
1232 avfilter_unref_buffer(vp->picref);
1233 vp->picref = NULL;
1236 if (vp->bmp) {
1237 SDL_FreeYUVOverlay(vp->bmp);
1238 vp->bmp = NULL;
1275 VideoPicture *vp;
1277 vp = &is->pictq[is->pictq_windex];
1279 if (vp->bmp)
1280 SDL_FreeYUVOverlay(vp->bmp);
1283 if (vp->picref)
1284 avfilter_unref_buffer(vp->picref);
1285 vp->picref = NULL;
1287 vp->width = is->out_video_filter->inputs[0]->w;
1288 vp->height = is->out_video_filter->inputs[0]->h;
1289 vp->pix_fmt = is->out_video_filter->inputs[0]->format;
1291 vp->width = is->video_st->codec->width;
1292 vp->height = is->video_st->codec->height;
1293 vp->pix_fmt = is->video_st->codec->pix_fmt;
1296 vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,
1299 if (!vp->bmp || vp->bmp->pitches[0] < vp->width) {
1304 "to reduce the image size.\n", vp->width, vp->height );
1309 vp->allocated = 1;
1320 VideoPicture *vp;
1341 vp = &is->pictq[is->pictq_windex];
1344 if (!vp->bmp || vp->reallocate ||
1346 vp->width != is->out_video_filter->inputs[0]->w ||
1347 vp->height != is->out_video_filter->inputs[0]->h) {
1349 vp->width != is->video_st->codec->width ||
1350 vp->height != is->video_st->codec->height) {
1354 vp->allocated = 0;
1355 vp->reallocate = 0;
1365 while (!vp->allocated && !is->videoq.abort_request) {
1375 if (vp->bmp) {
1378 if (vp->picref)
1379 avfilter_unref_buffer(vp->picref);
1380 vp->picref = src_frame->opaque;
1384 SDL_LockYUVOverlay (vp->bmp);
1387 pict.data[0] = vp->bmp->pixels[0];
1388 pict.data[1] = vp->bmp->pixels[2];
1389 pict.data[2] = vp->bmp->pixels[1];
1391 pict.linesize[0] = vp->bmp->pitches[0];
1392 pict.linesize[1] = vp->bmp->pitches[2];
1393 pict.linesize[2] = vp->bmp->pitches[1];
1406 vp->pix_fmt, vp->width, vp->height);
1410 vp->width, vp->height, vp->pix_fmt, vp->width, vp->height,
1417 0, vp->height, pict.data, pict.linesize);
1420 SDL_UnlockYUVOverlay(vp->bmp);
1422 vp->pts = pts;
1423 vp->pos = pos;
1429 vp->target_clock = compute_target_time(vp->pts, is);