www.gusucode.com > 基于dwt的视频数字水印源代码 > 基于dwt的视频数字水印源代码\code\HaYDWT\EmbedVideo.cpp
//Download by http://www.NewXing.com //--------------------------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "EmbedVideo.h" #include "EmbedRecoverProcess.h" #include "Main.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma link "RzButton" #pragma link "RzLabel" #pragma link "RzPrgres" #pragma resource "*.dfm" TFormEmbedVideo *FormEmbedVideo; //--------------------------------------------------------------------------- __fastcall TFormEmbedVideo::TFormEmbedVideo(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TFormEmbedVideo::FormCreate(TObject *Sender) { CancelEmbed = false; } //--------------------------------------------------------------------------- void __fastcall TFormEmbedVideo::ButtonCancelClick(TObject *Sender) { CancelEmbed = true; } //--------------------------------------------------------------------------- void __fastcall TFormEmbedVideo::ButtonEmbedClick(TObject *Sender) { EmbedWatermarkAVI_Lifting( this->Handle, FormMain->sEWInputFile, FormMain->sEWOutputFile, // watermark inputs FormMain->pEWbmpImage, FormMain->EWImageType, FormMain->Gray_Image, FormMain->Gray_Image_Width, FormMain->Gray_Image_Height, // Key Image inputs FormMain->pEWKeybmpImage, FormMain->EWKImageType, FormMain->Gray_Image_Key, FormMain->Gray_Image_Key_Width, FormMain->Gray_Image_Key_Height, // embed inputs FormMain->GainFactor, // gain factor needed at embedding time FormMain->DWTLevels, // wavelet tansform level FormMain->LevelEmbed ); // Which level watermark will be embedded } //---------------------------------------------------------------------------