Read video I/P/B frames.

This commit is contained in:
Alf
2020-11-11 20:33:25 -08:00
parent 0d64e128a2
commit bc92e81a2c
2 changed files with 44 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
<div>
<h4>Frames</h4>
<b-table striped hover :items="frames">
<template #cell(frame_type)="data">
<template #cell(pict_type)="data">
{{ String.fromCharCode(data.value) }}
</template>
@@ -13,23 +13,24 @@
<script>
export default {
name: 'Frames',
props: [''],
data() {
return {
data: null,
};
},
computed: {
frames() {
const s = [];
for (let i = 0; i < this.data.frames.size(); i++) {
s.push(this.data.frames.get(i));
}
return s;
},
frames() {
if (!this.data) return [];
const s = [];
for (let i = 0; i < this.data.frames.size(); i++) {
s.push(this.data.frames.get(i));
}
return s;
},
},
created() {
this.data = window.Module.get_frames();
this.data = window.Module.get_frames(0);
},
}
</script>