LiveArea:Photos

From Vita Developer wiki
Revision as of 04:44, 24 August 2014 by ADA Love Lace (talk | contribs)
Jump to navigation Jump to search
Photos.png


http://manuals.playstation.net/document/gb/psvita/photos/index.html

In the Photos pplication, take and view photos and videos with your system.

Camera

Panoramic Camera In panorama mode.png

PS VITA Panoramic photo

Offset (h) Length Value (h) Note
0000 2 FFD8 SOI Start Of Image
0002 2 FFE1 APP1 Exif
0004 2 xxxx APP1 data size
0006 6 457869660000 "Exif " Header
000C 2 4D4D TIFF header: byte order used:
  • 4949:“II”: little-endian
  • 4D4D:“MM”: big-endian
000E 2 002A Version number: An arbitrary but carefully chosen number (42) that further identifies the file as a TIFF file

The byte order depends on the value of Bytes 0-1

0010 4 00000008 The offset (in bytes from the TIFF header) of the first

Image File Directory (IFD)

0014 2 0A Number of tags in IFD
0016 2 010F IFD Entry: Tag: Make (The scanner manufacturer)
0018 2 0002 IFD Entry: Type: ASCII
001A 4 00000021 IFD Entry: Count
001E 4 00000086 IFD Entry: Value Offset: "Sony Computer Entertainmement Inc."
0022 2 0110 IFD Tag: Model (The scanner model name or number)
0024 2 0002 IFD Type: ASCII
0026 4 00000013 IFD Count
002A 4 000000A8 IFD Value Offset: "PlayStation(R)Vita"
002E 2 0112 IFD Tag: orientation
0030 2 0002 IFD Type: SHORT
0032 4 00000001 IFD Count
0036 4 000000 IFD Value Offset
003A 2 011A IFD Tag: XResolution
003C 2 0005 IFD Type:
003E 4 00000001 IFD Count
0042 4 000000BC IFD Value Offset: 00
0046 2 011B IFD Tag: YResolution
0048 2 0005 IFD Type:
004A 4 00000001 IFD Count
004E 4 000000C4 IFD Value Offset: 00
0052 2 0128 IFD Tag: ResolutionUnit
0054 2 0003 IFD Type:
0056 4 00000001 IFD Count
005A 4 00020000 IFD Value Offset
005E 2 0131 IFD Tag: Software

Name and version number of the software package(s) used to create the image (VITA FW)

0060 2 0002 IFD Type:
0062 4 00000005 IFD Count
0066 4 000000CC IFD Value Offset: e.g.: 3.15
006A 2 0132 IFD Tag: DateTime
006C 2 0002 IFD Type:
006E 4 00000014 IFD Count
0072 4 000000D2 IFD Value Offset:
0076 2 0213 IFD Tag: YCbCr Positioning
0078 2 0003 IFD Type:
007A 4 00000001 IFD Count
007E 4 00010000 IFD Value Offset:
0082 2 8769 IFD Tag: A pointer to the Exif IFD.
0084 2 0004 IFD Type:
0086 4 00000001 IFD Count
008A 4 000000E6 IFD Value Offset:
...


IFD format

An Image File Directory (IFD) consists of a 2-byte count of the number of direc- tory entries (i.e., the number of fields), followed by a sequence of 12-byte field entries, followed by a 4-byte offset of the next IFD (or 0 if none). (Do not forget to write the 4 bytes of 0 after the last IFD.

IFD entry
bytes field (h) Format
0-1 IFD Entry: The Tag that identifies the field
2-3 IFD Entry: The field Type

  • 1 = BYTE 8-bit unsigned integer.
  • 2 = ASCII 8-bit byte that contains a 7-bit ASCII code; the last byte must be NUL (binary zero).
  • 3 = SHORT 16-bit (2-byte) unsigned integer.
  • 4 = LONG 32-bit (4-byte) unsigned integer.
  • 5 = RATIONAL Two LONGs: the first represents the numerator of a fraction; the second, the denominator.

The value of the Count part of an ASCII field entry includes the NUL. If padding is necessary, the Count does not include the pad byte. Note that there is no initial “count byte” as in Pascal-style strings.

Any ASCII field can contain multiple strings, each terminated with a NUL. A single string is preferred whenever possible. The Count for multi-string fields is the number of bytes in all the strings in that field plus their terminating NUL bytes. Only one NUL is allowed between strings, so that the strings following the first string will often begin on an odd byte. The reader must check the type to verify that it contains an expected value. TIFF currently allows more than 1 valid type for some fields. For example, ImageWidth and ImageLength are usually specified as having type SHORT. But images with more than 64K rows or columns must use the LONG field type. TIFF readers should accept BYTE, SHORT, or LONG values for any unsigned integer field. This allows a single procedure to retrieve any integer value, makes reading more robust, and saves disk space in some situations.

  • 6 = SBYTE An 8-bit signed (twos-complement) integer.
  • 7 = UNDEFINED An 8-bit byte that may contain anything, depending on

the definition of the field.

  • 8 = SSHORT A 16-bit (2-byte) signed (twos-complement) integer.
  • 9 = SLONG A 32-bit (4-byte) signed (twos-complement) integer.
  • 10 = SRATIONAL Two SLONG’s: the first represents the numerator of a

fraction, the second the denominator.

  • 11 = FLOAT Single precision (4-byte) IEEE format.
  • 12 = DOUBLE Double precision (8-byte) IEEE format.

These new field types are also governed by the byte order (II or MM)

4-7 IFD Entry: The number of values, Count of the indicated Type
8-11 IFD Entry: The Value Offset ((in bytes from the TIFF header))

The Value is expected to begin on a word boundary; the correspond- ing Value Offset will thus be an even number. This file offset may point anywhere in the file, even after the image data.


IFD Tag:

  • orientation (of the image with respect to the rows and columns)

Tag = 274 (112.H)

Type = SHORT

N= 1

1 = The 0th row represents the visual top of the image, and the 0th column represents
the visual left-hand side.
2 = The 0th row represents the visual top of the image, and the 0th column represents
the visual right-hand side.
3 = The 0th row represents the visual bottom of the image, and the 0th column repre-
sents the visual right-hand side.
4 = The 0th row represents the visual bottom of the image, and the 0th column repre-
sents the visual left-hand side.
5 = The 0th row represents the visual left-hand side of the image, and the 0th column
represents the visual top.
6 = The 0th row represents the visual right-hand side of the image, and the 0th column
represents the visual top.
7 = The 0th row represents the visual right-hand side of the image, and the 0th column
represents the visual bottom
8 = The 0th row represents the visual left-hand side of the image, and the 0th column
represents the visual bottom.
Default is 1.
Support for orientations other than 1 is not a Baseline TIFF requirement.

  • XResolution (The number of pixels per ResolutionUnit in the ImageWidth direction)

Tag = 282 (11A.H)

Type = RATIONAL

N= 1

It is not mandatory that the image be actually displayed or printed at the size implied
by this parameter. It is up to the application to use this information as it wishes.
No default. See also YResolution, ResolutionUnit


  • DateTime (Date and time of image creation)

Tag = 306 (132.H)

Type = ASCII

N= 20
The format is: “YYYY:MM:DD HH:MM:SS”, with hours like those on a 24-hour
clock, and one space character between the date and the time. The length of the
string, including the terminating NUL, is 20 bytes.

Gallery

You can save up to 10,000 files with the Photos application.

Types of files:

   JPEG (Exif2.2.1)
   TIFF
   BMP
   GIF
   PNG
   MPO (can view only one representative image)
   Videos taken using (Photos)