Skip to content

Commit

Permalink
Stereoscopy types in diagram form
Browse files Browse the repository at this point in the history
  • Loading branch information
chanibal committed Apr 15, 2016
1 parent d1a27cc commit 0f04f0f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 33 deletions.
Binary file added README-stereoscopy-types.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -418,61 +418,32 @@ Stereoscopy is about which part of the media goes to which eye. This is done bef

When stereoscopy is set to "autodetect", it does so based on keywords in the filename and (if that fails) the image ratio.

![Stereoscopy types](README-stereoscopy-types.png)

Parts of the filename are separated by "_", "-" or other non-word characters. For example "stereoscopic-video_LR.mp4" has parts: "stereoscopic", "video", "LR" of which only "LR" is recognized and parsed.


#### Side By Side

```
[ | ]
[ left | right ]
[ eye | eye ]
[ | ]
```

1. stereoscopy is set to "side-by-side" (or `Bivrost.STEREOSCOPY_SIDE_BY_SIDE`)
2. there is a "LR" or "SbS" part in the image filename
3. the image ratio is 4:1


#### Top And Bottom (over under)

```
[ left ]
[ eye ]
-----------------
[ right ]
[ eye ]
```

1. stereoscopy is set to "top-and-bottom" (or `Bivrost.STEREOSCOPY_TOP_AND_BOTTOM`)
2. there is a "TB" or "TaB" part in the image filename
3. the image ratio is 1:1



#### Top And Bottom Reversed

```
[ right ]
[ eye ]
-----------------
[ left ]
[ eye ]
```

1. stereoscopy is set to "top-and-bottom-reversed" (or `Bivrost.STEREOSCOPY_TOP_AND_BOTTOM_REVERSED`)


#### Mono

```
[ ]
[ both ]
[ eyes ]
[ ]
```

1. stereoscopy is set to "mono" (or `Bivrost.STEREOSCOPY_MONO`)
2. no other detection succeeded

Expand Down Expand Up @@ -533,7 +504,7 @@ If you're experiencing problems with other recent platforms, please let us know.

Potential fixes:

1. Check if your device supports this kind of video by playing it directly in the browser. Some devices support only up to 1920x1080 resolution.
1. Check if your device supports this kind of video by playing it directly in the browser. Some popular devices support only up to 1920x1080 resolution.

2. Videos or pictures have to be served from the same domain or provide [Cross-Origin Resource Sharing][cors] headers.

Expand Down
2 changes: 1 addition & 1 deletion src/bivrost-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Bivrost.Loader=function(dom) {

var stereoscopy=attrEnum(container, "stereoscopy", Bivrost.STEREOSCOPY_AUTODETECT, Bivrost.AVAILABLE_STEREOSCOPIES);

var projection=attrString(container, "projection") || Bivrost.PROJECTION_EQUIRECTANGULAR;
var projection=attrString(container, "projection", Bivrost.PROJECTION_EQUIRECTANGULAR);
assert(projection.replace(/:.+/, ""), Bivrost.AVAILABLE_PROJECTIONS, "projection must be "+Bivrost.AVAILABLE_PROJECTIONS.join(" or "));

var source=attrEnum(container, "source", Bivrost.SOURCE_AUTODETECT, Bivrost.AVAILABLE_SOURCES);
Expand Down

0 comments on commit 0f04f0f

Please sign in to comment.