LiveArea:Photos

From Vita Developer wiki
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 0003 IFD Type: SHORT
0032 4 00000001 IFD Count
0036 4 00010000 IFD Value Offset: top-left-hand side
003A 2 011A IFD Tag: XResolution
003C 2 0005 IFD Type: RATIONAL Two LONGs
003E 4 00000001 IFD Count
0042 4 000000BC IFD Value Offset: 00000048 (72)
0046 2 011B IFD Tag: YResolution
0048 2 0005 IFD Type: RATIONAL Two LONGs
004A 4 00000001 IFD Count
004E 4 000000C4 IFD Value Offset: 00000048 (72)
0052 2 0128 IFD Tag: ResolutionUnit
0054 2 0003 IFD Type: SHORT
0056 4 00000001 IFD Count
005A 4 00020000 IFD Value Offset: Inch
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: ASCII
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: ASCII
006E 4 00000014 IFD Count
0072 4 000000D2 IFD Value Offset:
0076 2 0213 IFD Tag: YCbCr Positioning
0078 2 0003 IFD Type: SHORT
007A 4 00000001 IFD Count
007E 4 00010000 IFD Value Offset: centered
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 & Tag

IFD format


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


  • ResolutionUnit (The unit of measurement for XResolution and YResolution)

Tag = 296 (128.H)

Type = SHORT

N= 1

To be used with XResolution and YResolution.
1 = No absolute unit of measurement. Used for images that may have a non-square
aspect ratio, but no meaningful absolute dimensions.
The drawback of ResolutionUnit=1 is that different applications will import the image
at different sizes. Even if the decision is arbitrary, it might be better to use dots per
inch or dots per centimeter, and to pick XResolution and YResolution so that the
aspect ratio is correct and the maximum dimension of the image is about four inches
(the “four” is arbitrary.)
2 = Inch.
3 = Centimeter.
Default is 2.


  • 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.


  • YCbCr Positioning (Specifies the positioning of subsampled chrominance components relative to

luminance samples)

Tag = 531 (213.H)

Type = SHORT

N= 1

The values for this field are defined as follows:

1: centered

2: cosited

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)