File: API-overview-rus.html

package info (click to toggle)
libraw 0.9.1-1%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 1,840 kB
  • ctags: 1,995
  • sloc: cpp: 12,197; ansic: 8,897; makefile: 68
file content (70 lines) | stat: -rw-r--r-- 2,919 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title> LibRaw API (C++)</title>
  </head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1251">

  <body>
    <a href=index-rus.html>[  ]</a>
    <h1> LibRaw API (C++)</h1>
    <h2> </h2>
    <ol>
      <li>     LibRaw -  .</li>
      <li>         ,  -
        .</li>
      <li>  (,   threads)     ,  
        ,        .</li>
      <li>   RAW-     (    <a
          href="API-notes-rus.html">API Notes</a>).</li>
      <li> ,   RAW-      (  LibRaw).</li>
      <li>  ,  LibRaw <b>    RAW-</b>,   
        ,      <b>dcraw</b>.
      <li>        LibRaw.</li>
    </ol>
        
    <h2> </h2>
    <p> 
          -      
    </p>
    <pre>
#include "libraw/libraw.h"
int process_image(char *file)
{
        // C  
        LibRaw iProcessor;

        //     
        iProcessor.open_file(file);

        //    <a href="API-datastruct-rus.html">  </a>
        printf("Image size: %d x %d\n",iProcessor.imgdata.sizes.width,iProcessor.imgdata.sizes.height);

        //  
        iProcessor.unpack();

        //    ,    <a href="API-datastruct-rus.html">  </a>
        for(i = 0;i lt; iProcessor.imgdata.sizes.iwidth *  iProcessor.imgdata.sizes.iheight; i++)
           printf("i=%d R=%d G=%d B=%d G2=%d\n",
                        i,
                        iProcessor.imgdata.image[i][0],
                        iProcessor.imgdata.image[i][1],
                        iProcessor.imgdata.image[i][2],
                        iProcessor.imgdata.image[i][3]
                );

        //       
        iProcessor.recycle();
}
</pre>


    <a href=index-rus.html>[  ]</a>
    <hr>
    <address><a href="mailto:info@libraw.org">LibRaw Team</a></address>
<!-- Created: Sun Mar 16 09:15:41 MSK 2008 -->
<!-- hhmts start -->
Last modified: Mon May  4 22:11:53 MSD 2009
<!-- hhmts end -->
  </body>
</html>