Bonjour & Bienvenue sur EOS-Numerique
Réseaux Sociaux : Follow us on Facebook Follow us on Twitter


Sign Up






Affichage des résultats 1 à 44 sur 44

Discussion: ED-SDK 2.7 En Delphi

Mode arborescent

  1. #11
    Spirt
    Guest

    Par défaut

    A little bit early to celebrate. Got another problem. Here is my code :

    function TCanonCamera.downloadLiveData(Image:TImage) : Boolean;

    var
    evfImage : PEdsEvfImageRef;
    ......

    begin

    ......

    stream := nil;
    Self.LastError := EdsCreateFileStream(
    'LiveData.jpg',kEdsFileCreateDisposition_CreateAlw ays, kEdsAccess_ReadWrite,stream);
    if Self.LastError <> EDS_ERR_OK then
    Exit;

    evfImage:=nil;

    Self.LastError := EdsCreateEvfImageRef(stream, evfImage);
    if Self.LastError <> EDS_ERR_OK then
    begin
    EdsRelease(stream);
    Exit;
    end;

    Self.LastError := EdsDownloadEvfImageLiveView(Self.FRef, evfImage^);
    if Self.LastError <> EDS_ERR_OK then
    begin
    EdsRelease(evfImage);
    EdsRelease(stream);
    Exit;
    end;

    ....

    Result := true;
    end;

    As You can see i redeclared evfImage from EdsEvfImageRef to PEdsEvfImageRef where PEdsEvfImageRef = ^EdsEvfImageRef;

    and

    function EdsDownloadEvfImageLiveView ( inCameraRef : EdsCameraRef;
    inEvfImageRef : PEdsEvfImageRef) : EdsError; stdcall; external edsdk name 'EdsDownloadEvfImage';

    It properly saves liveView data to LiveData.jpg, but after exiting this function TCanonCamera.downloadLiveData(Image:TImage) : Boolean; access violation occurs, so I can take only one frame of LiveView data. Still working on it...
    Dernière modification par Spirt ; 20/06/2010 à 14h13.

 

 

Informations de la discussion

Utilisateur(s) sur cette discussion

Il y a actuellement 1 utilisateur(s) naviguant sur cette discussion. (0 utilisateur(s) et 1 invité(s))

Règles de messages

  • Vous ne pouvez pas créer de nouvelles discussions
  • Vous ne pouvez pas envoyer des réponses
  • Vous ne pouvez pas envoyer des pièces jointes
  • Vous ne pouvez pas modifier vos messages
  •  
Fuseau horaire GMT +1. Il est actuellement 16h01.
Powered by vBulletin® Version 4.2.5
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.
Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Auto Closing Of Threads provided by Threads Auto Close (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Copyright © Eos-numerique 2004-2025
vBulletin Skin By: PurevB.com