Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api-reference/encoder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Encoders are used to capture image frames of an HTML `<canvas/>` and encode them
| [`WebMEncoder`](/docs/api-reference/encoder/webm-encoder) | Video | Encodes `.webm` video using [Whammy](https://antimatter15.com/2012/08/whammy-a-real-time-javascript-webm-encoder/). |
| [`GIFEncoder`](/docs/api-reference/encoder/gif-encoder) | Animated Image | Encodes `.gif` images using `gifshot.js`. |
| [`StreamEncoder`](/docs/api-reference/encoder/stream-encoder) | Video | Encodes `.webm` rough previews, but drops frames. |
| [`PNGSequenceEncoder`](/docs/api-reference/encoder/png-sequence-encoder) | Image Sequence | Encodes video frames as loseless `.png` contained in a `.tar`. |
| [`JPEGSequenceEncoder`](/docs/api-reference/encoder/jpeg-sequence-encoder) | Image Sequence | Encodes video frames as compressed `.jpeg` contained in a `.tar`. |
| [`PNGSequenceEncoder`](/docs/api-reference/encoder/png-sequence-encoder) | Image Sequence | Encodes video frames as loseless `.png` contained in a `.zip`. |
| [`JPEGSequenceEncoder`](/docs/api-reference/encoder/jpeg-sequence-encoder) | Image Sequence | Encodes video frames as compressed `.jpeg` contained in a `.zip`. |

### Attributions

Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/encoder/jpeg-sequence-encoder.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JPEGSequenceEncoder

A photo sequence encoder that inherits [FrameEncoder](/docs/api-reference/encoder/frame-encoder). Saves each frame as a photo contained in a `".tar"` archive.
A photo sequence encoder that inherits [FrameEncoder](/docs/api-reference/encoder/frame-encoder). Saves each frame as a photo contained in a `".zip"` archive.

## Constructor

Expand All @@ -12,7 +12,7 @@ In addition to the [FrameEncoder](/docs/api-reference/encoder/frame-encoder) set

* `quality` - See member note. Defaults to 1.0.

* `archive` - `zip` or `tar`. Defaults to `tar`.
* `archive` - `zip`.

## Members

Expand Down
4 changes: 2 additions & 2 deletions docs/api-reference/encoder/png-sequence-encoder.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PNGSequenceEncoder

A photo sequence encoder that inherits [FrameEncoder](/docs/api-reference/encoder/frame-encoder). Saves each frame as a photo contained in a `".tar"` archive.
A photo sequence encoder that inherits [FrameEncoder](/docs/api-reference/encoder/frame-encoder). Saves each frame as a photo contained in a `".zip"` archive.

## Constructor

Expand All @@ -10,7 +10,7 @@ Construction of the encoder class is not required. Refer to [DeckAdapter.render]

In addition to the [FrameEncoder](/docs/api-reference/encoder/frame-encoder) settings, these settings are available under the `png` namespace.

* `archive` - `zip` or `tar`. Defaults to `tar`.
* `archive` - `zip`.

**Notes:**

Expand Down
27 changes: 10 additions & 17 deletions examples/website/basic-basemap-mapbox-legacy/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
archive: 'zip',
quality: 0.8
},
gif: {
Expand All @@ -73,17 +70,16 @@ const timecode = {
};

const DeckGLOverlay = forwardRef((props, ref) => {
// MapboxOverlay handles a variety of props differently than the Deck class.
// https://deck.gl/docs/api-reference/mapbox/mapbox-overlay#constructor
const deck = useControl(() => new MapboxOverlay({...props, interleaved: true}));
// MapboxOverlay handles a variety of props differently than the Deck class.
// https://deck.gl/docs/api-reference/mapbox/mapbox-overlay#constructor
const deck = useControl(() => new MapboxOverlay({...props, interleaved: true}));

deck.setProps(props);
deck.setProps(props);

// @ts-expect-error private property
setRef(ref, deck._deck);
return null;
}
);
// @ts-expect-error private property
setRef(ref, deck._deck);
return null;
});

const Container = ({children}) => (
<div
Expand Down Expand Up @@ -169,10 +165,7 @@ export default function App({mapStyle = 'mapbox://styles/mapbox/streets-v11'}) {
onMove={onViewStateChange}
// Note: 'reuseMap' prop with gatsby and mapbox extension causes stale reference error.
>
<DeckGLOverlay
ref={deckRef}
{...deckProps}
/>
<DeckGLOverlay ref={deckRef} {...deckProps} />
</Map>
</div>
<BasicControls
Expand Down
13 changes: 3 additions & 10 deletions examples/website/basic-basemap-mapbox/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
archive: 'zip',
quality: 0.8
},
gif: {
Expand All @@ -82,8 +79,7 @@ const DeckGLOverlay = forwardRef((props, ref) => {
// @ts-expect-error private property
setRef(ref, deck._deck);
return null;
}
);
});

const Container = ({children}) => (
<div
Expand Down Expand Up @@ -169,10 +165,7 @@ export default function App({mapStyle = 'mapbox://styles/mapbox/streets-v11'}) {
onMove={onViewStateChange}
// Note: 'reuseMap' prop with gatsby and mapbox extension causes stale reference error.
>
<DeckGLOverlay
ref={deckRef}
{...deckProps}
/>
<DeckGLOverlay ref={deckRef} {...deckProps} />
</Map>
</div>
<BasicControls
Expand Down
14 changes: 5 additions & 9 deletions examples/website/basic-basemap/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,8 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
archive: 'zip',
quality: 0.8
},
gif: {
Expand Down Expand Up @@ -108,7 +105,9 @@ const randomColor = () => [
Math.floor(Math.random() * 255)
];

export default function App({mapStyle = 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'}) {
export default function App({
mapStyle = 'https://basemaps.cartocdn.com/gl/positron-gl-style/style.json'
}) {
const deckRef = useRef(null);
const mapRef = useRef(null);
const [busy, setBusy] = useState(false);
Expand Down Expand Up @@ -170,10 +169,7 @@ export default function App({mapStyle = 'https://basemaps.cartocdn.com/gl/positr
mapLib={maplibregl}
// Note: 'reuseMap' prop with gatsby and mapbox extension causes stale reference error.
>
<DeckGLOverlay
ref={deckRef}
{...deckProps}
/>
<DeckGLOverlay ref={deckRef} {...deckProps} />
</Map>
</div>
<BasicControls
Expand Down
7 changes: 2 additions & 5 deletions examples/website/camera/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
quality: 0.8,
archive: 'zip'
quality: 0.8
},
gif: {
sampleInterval: 1000,
Expand Down
5 changes: 1 addition & 4 deletions examples/website/terrain/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,8 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
archive: 'zip',
quality: 0.8
},
gif: {
Expand Down
5 changes: 1 addition & 4 deletions examples/website/trips/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ const formatConfigs = {
webm: {
quality: 0.8
},
png: {
archive: 'zip'
},
png: {},
jpeg: {
archive: 'zip',
quality: 0.8
},
gif: {
Expand Down
5 changes: 1 addition & 4 deletions modules/core/src/encoders/frame-encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,8 @@ interface EncoderSettings extends FormatConfigs {
}

export interface FormatConfigs {
png: {
archive?: 'tar' | 'zip';
};
png: {};
jpeg: {
archive?: 'tar' | 'zip';
quality: number;
};
webm: {
Expand Down
117 changes: 0 additions & 117 deletions modules/core/src/encoders/tar/header.ts

This file was deleted.

45 changes: 0 additions & 45 deletions modules/core/src/encoders/tar/tar-builder.ts

This file was deleted.

Loading
Loading