Displaying 2 results from an estimated 2 matches for "dirac_top_field_first".
2008 Nov 04
3
[PATCH] liboggz: Fix Dirac bitstream parsing
...atch fixes that.
Index: liboggz/dirac.c
===================================================================
--- liboggz/dirac.c (revision 3759)
+++ liboggz/dirac.c (working copy)
@@ -122,6 +122,10 @@
1, 9, 10, 9, 10, 9, 10, 4, 3, 7, 6, 4, 3, 7, 6, 2, 2, 7, 6, 7, 6,
};
+ static const int dirac_top_field_first[] = { /* extracted from table C.1 */
+ 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ };
+
static const struct {
ogg_uint32_t width, height;
} dirac_fsize_tbl[] = { /* table 10.3 framesize */
@@ -150,11 +154,12 @@
if (dirac_bool( &bs )) {
info->chroma...
2008 Nov 04
0
[PATCH] liboggz: Fix Dirac bitstream parsing
...9, 10, 4, 3, 7, 6, 4, 3, 7, 6, 2, 2, 7, 6, 7, 6,
+ 1, 9, 10, 9, 10, 9, 10, 4, 3, 7, 6, 4, 3, 7, 6, 2, 2, 7, 6, 7, 6
+ };
+
+ static const int dirac_source_sampling[] = { /* extracted from table C.1 */
+ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0
+ };
+ static const int dirac_top_field_first[] = { /* from table C.1 */
+ 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
};
@@ -151,11 +158,17 @@
info->chroma_format = dirac_uint( &bs ); /* chroma_format */
}
- if (dirac_bool( &bs )) {
- info->interlaced = 0;
- if (dirac_bool( &bs )) { /*...