• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/

Lines Matching defs:vp

798 static void free_picture(VideoPicture *vp)
800 if (vp->bmp) {
801 SDL_FreeYUVOverlay(vp->bmp);
802 vp->bmp = NULL;
844 VideoPicture *vp;
850 vp = &is->pictq[(is->pictq_rindex + is->pictq_rindex_shown) % VIDEO_PICTURE_QUEUE_SIZE];
851 if (vp->bmp) {
856 if (vp->pts >= sp->pts + ((float) sp->sub.start_display_time / 1000)) {
857 SDL_LockYUVOverlay (vp->bmp);
859 pict.data[0] = vp->bmp->pixels[0];
860 pict.data[1] = vp->bmp->pixels[2];
861 pict.data[2] = vp->bmp->pixels[1];
863 pict.linesize[0] = vp->bmp->pitches[0];
864 pict.linesize[1] = vp->bmp->pitches[2];
865 pict.linesize[2] = vp->bmp->pitches[1];
869 vp->bmp->w, vp->bmp->h);
871 SDL_UnlockYUVOverlay (vp->bmp);
876 calculate_display_rect(&rect, is->xleft, is->ytop, is->width, is->height, vp->width, vp->height, vp->sar);
878 SDL_DisplayYUVOverlay(vp->bmp, &rect);
1091 static int video_open(VideoState *is, int force_set_video_mode, VideoPicture *vp)
1099 if (vp && vp->width)
1100 set_default_window_size(vp->width, vp->height, vp->sar);
1311 static double vp_duration(VideoState *is, VideoPicture *vp, VideoPicture *nextvp) {
1312 if (vp->serial == nextvp->serial) {
1313 double duration = nextvp->pts - vp->pts;
1315 return vp->duration;
1386 VideoPicture *vp, *lastvp;
1390 vp = &is->pictq[(is->pictq_rindex + is->pictq_rindex_shown) % VIDEO_PICTURE_QUEUE_SIZE];
1392 if (vp->serial != is->videoq.serial) {
1399 if (lastvp->serial != vp->serial && !redisplay)
1406 last_duration = vp_duration(is, lastvp, vp);
1423 if (!redisplay && !isnan(vp->pts))
1424 update_video_pts(is, vp->pts, vp->pos, vp->serial);
1429 duration = vp_duration(is, vp, nextvp);
1525 VideoPicture *vp;
1528 vp = &is->pictq[is->pictq_windex];
1530 free_picture(vp);
1532 video_open(is, 0, vp);
1534 vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,
1537 bufferdiff = vp->bmp ? FFMAX(vp->bmp->pixels[0], vp->bmp->pixels[1]) - FFMIN(vp->bmp->pixels[0], vp->bmp->pixels[1]) : 0;
1538 if (!vp->bmp || vp->bmp->pitches[0] < vp->width || bufferdiff < (int64_t)vp->height * vp->bmp->pitches[0]) {
1544 "to reduce the image size.\n", vp->width, vp->height );
1549 vp->allocated = 1;
1574 VideoPicture *vp;
1593 vp = &is->pictq[is->pictq_windex];
1595 vp->sar = src_frame->sample_aspect_ratio;
1598 if (!vp->bmp || vp->reallocate || !vp->allocated ||
1599 vp->width != src_frame->width ||
1600 vp->height != src_frame->height) {
1603 vp->allocated = 0;
1604 vp->reallocate = 0;
1605 vp->width = src_frame->width;
1606 vp->height = src_frame->height;
1616 while (!vp->allocated && !is->videoq.abort_request) {
1621 while (!vp->allocated && !is->abort_request) {
1632 if (vp->bmp) {
1636 SDL_LockYUVOverlay (vp->bmp);
1638 pict.data[0] = vp->bmp->pixels[0];
1639 pict.data[1] = vp->bmp->pixels[2];
1640 pict.data[2] = vp->bmp->pixels[1];
1642 pict.linesize[0] = vp->bmp->pitches[0];
1643 pict.linesize[1] = vp->bmp->pitches[2];
1644 pict.linesize[2] = vp->bmp->pitches[1];
1649 src_frame->format, vp->width, vp->height);
1653 vp->width, vp->height, src_frame->format, vp->width, vp->height,
1660 0, vp->height, pict.data, pict.linesize);
1663 duplicate_right_border_pixels(vp->bmp);
1665 SDL_UnlockYUVOverlay(vp->bmp);
1667 vp->pts = pts;
1668 vp->duration = duration;
1669 vp->pos = pos;
1670 vp->serial = serial;