Lines Matching refs:pimg
734 GIFImage *pimg = new GIFImage();
736 if (pimg == NULL)
751 pimg->left = buf[0] + 256 * buf[1];
752 pimg->top = buf[2] + 256 * buf[3];
754 pimg->left = buf[4] + 256 * buf[5];
755 pimg->top = buf[4] + 256 * buf[5];
757 pimg->w = buf[4] + 256 * buf[5];
758 pimg->h = buf[6] + 256 * buf[7];
761 if (anim && ((pimg->w == 0) || (pimg->w > (unsigned int)m_szAnimation.GetWidth()) ||
762 (pimg->h == 0) || (pimg->h > (unsigned int)m_szAnimation.GetHeight())))
774 if ( pimg->w > (unsigned)m_szAnimation.x )
775 m_szAnimation.x = pimg->w;
776 if ( pimg->h > (unsigned)m_szAnimation.y )
777 m_szAnimation.y = pimg->h;
782 if ( (!pimg->w || pimg->w > (unsigned)m_szAnimation.x) ||
783 (!pimg->h || pimg->h > (unsigned)m_szAnimation.y) )
786 pimg->w, pimg->h, m_nFrames);
794 size = pimg->w * pimg->h;
796 pimg->transparent = transparent;
797 pimg->disposal = disposal;
798 pimg->delay = delay;
801 pimg->p = (unsigned char *) malloc((unsigned int)size);
802 pimg->pal = (unsigned char *) malloc(768);
804 if ((!pimg->p) || (!pimg->pal))
815 stream.Read(pimg->pal, numBytes);
816 pimg->ncolours = local_ncolors;
825 memcpy(pimg->pal, pal, 768);
826 pimg->ncolours = global_ncolors;
838 wxGIFErrorCode result = dgif(stream, pimg, interl, bits);
846 m_frames.Add((void*)pimg);