/pidgin/main: 0359bd2df19d: Initial removal of Crazy Chat plugin...
Michael McConville
mmcconville at mykolab.com
Mon Jun 8 19:23:19 EDT 2015
Changeset: 0359bd2df19dfc652418332598d8eb66c0fd7eda
Author: Michael McConville <mmcconville at mykolab.com>
Date: 2015-06-08 19:20 -0400
Branch: default
URL: https://hg.pidgin.im/pidgin/main/rev/0359bd2df19d
Description:
Initial removal of Crazy Chat plugin. Still need to search for now-unneeded dependencies.
diffstat:
pidgin/plugins/crazychat/Makefile.am | 43 -
pidgin/plugins/crazychat/QTUtilities.c | 306 --
pidgin/plugins/crazychat/QTUtilities.h | 65 -
pidgin/plugins/crazychat/Utilities.c | 283 -
pidgin/plugins/crazychat/Utilities.h | 83 -
pidgin/plugins/crazychat/camdata.c | 213 -
pidgin/plugins/crazychat/camdata.h | 63 -
pidgin/plugins/crazychat/camproc.c | 812 -----
pidgin/plugins/crazychat/camproc.h | 29 -
pidgin/plugins/crazychat/cc_features.c | 504 ---
pidgin/plugins/crazychat/cc_gtk_gl.c | 288 -
pidgin/plugins/crazychat/cc_gtk_gl.h | 50 -
pidgin/plugins/crazychat/cc_interface.h | 129 -
pidgin/plugins/crazychat/cc_network.c | 540 ---
pidgin/plugins/crazychat/cc_network.h | 78 -
pidgin/plugins/crazychat/cc_output.c | 353 --
pidgin/plugins/crazychat/cc_pidgin_plugin.c | 484 ---
pidgin/plugins/crazychat/crazychat.c | 96 -
pidgin/plugins/crazychat/crazychat.h | 46 -
pidgin/plugins/crazychat/dog_lids.c | 48 -
pidgin/plugins/crazychat/dog_lids.h | 3 -
pidgin/plugins/crazychat/doggy.c | 227 -
pidgin/plugins/crazychat/doggy.h | 10 -
pidgin/plugins/crazychat/draw.c | 107 -
pidgin/plugins/crazychat/eye.c | 812 -----
pidgin/plugins/crazychat/eye.h | 1 -
pidgin/plugins/crazychat/eyes.c | 589 ---
pidgin/plugins/crazychat/eyes.h | 3 -
pidgin/plugins/crazychat/face.c | 38 -
pidgin/plugins/crazychat/face.h | 44 -
pidgin/plugins/crazychat/filter.c | 124 -
pidgin/plugins/crazychat/filter.h | 19 -
pidgin/plugins/crazychat/glm.c | 1964 ------------
pidgin/plugins/crazychat/glm.h | 269 -
pidgin/plugins/crazychat/lids.c | 4080 ---------------------------
pidgin/plugins/crazychat/lids.h | 3 -
pidgin/plugins/crazychat/main.c | 25 -
pidgin/plugins/crazychat/mat_struct.h | 12 -
pidgin/plugins/crazychat/models.c | 75 -
pidgin/plugins/crazychat/models.h | 9 -
pidgin/plugins/crazychat/sharky.c | 249 -
pidgin/plugins/crazychat/sharky.h | 10 -
pidgin/plugins/crazychat/test.h | 8 -
pidgin/plugins/crazychat/util.h | 40 -
44 files changed, 0 insertions(+), 13234 deletions(-)
diffs (truncated from 13462 to 300 lines):
diff --git a/pidgin/plugins/crazychat/Makefile.am b/pidgin/plugins/crazychat/Makefile.am
deleted file mode 100644
--- a/pidgin/plugins/crazychat/Makefile.am
+++ /dev/null
@@ -1,43 +0,0 @@
-plugindir = @PIDGIN_PLUGINDIR@
-
-if ENABLE_DEBUG
-DEBUG_CPPFLAGS = -g -pg
-# DEBUG_CPPFLAGS = -D_DEBUG_ -g -pg
-DEBUG_LFLAGS = -pg
-else
-DEBUG_CPPFLAGS = -O2
-DEBUG_LFLAGS =
-endif
-
-plugin_LTLIBRARIES = crazychat.la
-
-if DISABLE_MODELS
-MD_CPPFLAGS = -DDISABLE_MODELS
-else
-MD_CPPFLAGS =
-endif
-
-crazychat_la_LDFLAGS = -module @PLUGIN_LDFLAGS@
-crazychat_la_LIBADD = @PIDGIN_LIBS@ $(GTKGLEXT_LIBS)
-crazychat_la_SOURCES = cc_pidgin_plugin.c cc_gtk_gl.c cc_gtk_gl.h \
- cc_interface.h crazychat.c crazychat.h util.h\
- cc_network.c cc_network.h filter.c filter.h\
- cc_output.c face.c face.h doggy.c doggy.h glm.h glm.c sharky.h sharky.c models.h models.c
-
-QT_CPPFLAGS = -D_DISABLE_QT_
-
-#AM_CFLAGS = $(GTK_CFLAGS) \
-#$(GTKGLEXT_CFLAGS) \
-#-I$(top_srcdir)/include
-
-AM_CPPFLAGS = -DPURPLE_PLUGINS \
- -I$(top_srcdir)/libpurple \
- -I$(top_builddir)/libpurple \
- -I$(top_srcdir)/pidgin \
- $(GTK_CFLAGS) \
- $(GPLUGIN_CFLAGS) \
- $(GTKGLEXT_CFLAGS) \
- $(DEBUG_CPPFLAGS) \
- $(DEBUG_CFLAGS) \
- $(QT_CPPFLAGS) \
- $(MD_CPPFLAGS)
diff --git a/pidgin/plugins/crazychat/QTUtilities.c b/pidgin/plugins/crazychat/QTUtilities.c
deleted file mode 100644
--- a/pidgin/plugins/crazychat/QTUtilities.c
+++ /dev/null
@@ -1,306 +0,0 @@
-/*
- File: QTUtilities.c
-
- Description: Miscellaneous QuickTime utility routines.
-
- Copyright: © Copyright 2003 Apple Computer, Inc. All rights reserved.
-
- Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc.
- ("Apple") in consideration of your agreement to the following terms, and your
- use, installation, modification or redistribution of this Apple software
- constitutes acceptance of these terms. If you do not agree with these terms,
- please do not use, install, modify or redistribute this Apple software.
-
- In consideration of your agreement to abide by the following terms, and subject
- to these terms, Apple grants you a personal, non-exclusive license, under Appleâs
- copyrights in this original Apple software (the "Apple Software"), to use,
- reproduce, modify and redistribute the Apple Software, with or without
- modifications, in source and/or binary forms; provided that if you redistribute
- the Apple Software in its entirety and without modifications, you must retain
- this notice and the following text and disclaimers in all such redistributions of
- the Apple Software. Neither the name, trademarks, service marks or logos of
- Apple Computer, Inc. may be used to endorse or promote products derived from the
- Apple Software without specific prior written permission from Apple. Except as
- expressly stated in this notice, no other rights or licenses, express or implied,
- are granted by Apple herein, including but not limited to any patent rights that
- may be infringed by your derivative works or by other works in which the Apple
- Software may be incorporated.
-
- The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
- WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
- WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
- COMBINATION WITH YOUR PRODUCTS.
-
- IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION
- OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT
- (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- Change History (most recent first):
-
-*/
-
-#include "QTUtilities.h"
-#include "Utilities.h"
-
-#define BailErr(x) {if (x != noErr) goto bail;}
-
-//////////
-//
-// GetMovieFromFile
-// Opens a movie file, then creates a new movie for the file
-//
-//////////
-
-OSErr GetMovieFromFile(FSSpec *fsspecPtr, Movie *theMovie)
-{
- short resRefNum = -1;
- OSErr result;
-
- *theMovie = NULL;
-
- result = OpenMovieFile(fsspecPtr, &resRefNum, 0);
- if (result == noErr)
- {
- short actualResId = DoTheRightThing;
-
- result = NewMovieFromFile(theMovie,
- resRefNum,
- &actualResId,
- (unsigned char *) 0,
- 0,
- (Boolean *) 0);
- CloseMovieFile(resRefNum);
- }
-
- return result;
-}
-
-//////////
-//
-// GetAMovieFile
-// Prompt the user for a movie file, then open
-// the file and create a movie for it.
-//
-//////////
-
-OSErr GetAMovieFile(Movie *theMovie)
-{
- OSType myTypeList[2] = {kQTFileTypeMovie, kQTFileTypeQuickTimeImage};
- FSSpec theFSSpec;
- OSErr result = noErr;
-
- *theMovie = nil;
-
- result = GetOneFileWithPreview(2, myTypeList, &theFSSpec, NULL);
- if (result != userCanceledErr)
- {
- result = GetMovieFromFile(&theFSSpec, theMovie);
- }
-
- return result;
-}
-
-//////////
-//
-// NormalizeMovieRect
-//
-//////////
-
-void NormalizeMovieRect(Movie theMovie)
-{
- Rect movieBounds;
-
- GetMovieBox(theMovie, &movieBounds);
- OffsetRect(&movieBounds, -movieBounds.left, -movieBounds.top);
- movieBounds.right = movieBounds.left + 640;
- movieBounds.bottom = movieBounds.top + 480;
- SetMovieBox(theMovie, &movieBounds);
-}
-
-//////////
-//
-// EraseRectAndAlpha
-// Zeros out a section of the GWorld, including alpha.
-//
-//////////
-
-void EraseRectAndAlpha(GWorldPtr gWorld, Rect *pRect)
-{
- PixMapHandle pixMap = GetGWorldPixMap(gWorld);
- long rows;
- Ptr rowBaseAddr;
-
-
- LockPixels(pixMap);
- rows = pRect->bottom - pRect->top;
-
- rowBaseAddr = GetPixBaseAddr(pixMap) + (GetPixRowBytes(pixMap) & 0x3fff) * pRect->top + pRect->left * GetPixDepth(pixMap) / 8;
- do
- {
- long cols;
- UInt32 *baseAddr;
-
- cols = pRect->right - pRect->left;
- baseAddr = (UInt32*)rowBaseAddr;
- rowBaseAddr += (**pixMap).rowBytes & 0x3fff;
- do
- {
- *baseAddr++ = 0;
- } while (--cols);
- } while (--rows);
-
- UnlockPixels(pixMap);
-
-} // EraseRectAndAlpha
-
-//////////
-//
-// CreateDecompSeqForSGChannelData
-// Create a decompression sequence for the passed
-// Sequence Grabber channel data
-//
-//////////
-
-OSErr CreateDecompSeqForSGChannelData(SGChannel sgChannel, Rect *srcBounds, GWorldPtr imageDestination, ImageSequence *imageSeqID)
-{
- OSErr err = noErr;
-
- ImageDescriptionHandle imageDesc = (ImageDescriptionHandle)NewHandle(sizeof(ImageDescription));
- if (imageDesc)
- {
-
- err = SGGetChannelSampleDescription(sgChannel,(Handle)imageDesc);
- // The original version of this code had a bug - it passed in a Crop Rect to DecompressSequenceBegin instead of a scaling matrix
- // This only worked because of another bug inside QT that reated the crop Rect as a destination rect for DV
- // the following code does the right thing in all cases.
-
- if (err == noErr)
- {
- MatrixRecord mr;
- Rect fromR;
-
- fromR.left = 0;
- fromR.top = 0;
- fromR.right = (**imageDesc).width;
- fromR.bottom = (**imageDesc).height;
- RectMatrix(&mr, &fromR, srcBounds);
-
- err = DecompressSequenceBegin(imageSeqID, imageDesc, imageDestination, 0, nil, &mr,srcCopy,nil,0, codecNormalQuality, bestSpeedCodec);
- }
-
- DisposeHandle((Handle)imageDesc);
- }
- else
- {
- err = MemError();
- }
-
- return err;
-}
-
-
-//////////
-//
-// CreateDecompSeqForGWorldData
-// Create a decompression sequence for the specified gworld data
-//
-//////////
-
-OSErr CreateDecompSeqForGWorldData(GWorldPtr srcGWorld, Rect *srcBounds, MatrixRecordPtr mr, GWorldPtr imageDestination, ImageSequence *imageSeqID)
-{
- OSErr err;
-
- ImageDescriptionHandle imageDesc = (ImageDescriptionHandle)NewHandle(sizeof(ImageDescription));
- if (imageDesc)
- {
- err = MakeImageDescriptionForPixMap (GetGWorldPixMap(srcGWorld), &imageDesc);
- err = DecompressSequenceBegin( imageSeqID,
- imageDesc,
- imageDestination,
- 0,
- srcBounds,
- mr,
- srcCopy,
- nil,
- 0,
- codecNormalQuality,
- bestSpeedCodec);
- DisposeHandle((Handle)imageDesc);
- }
- else
- {
- err = MemError();
- }
-
- return err;
-}
-
-//////////
-//
-// CreateNewSGChannelForRecording
-// - create a new Sequence Grabber video channel
-// - let the use configure the channel
More information about the Commits
mailing list