it->n_layers = (tile->cod) ? tile->cod->n_layers : header->cod.n_layers;
it->n_resolutions =
1 +
-- ((tile->cod) ? tile->cod->n_decompositions : header->
-- cod.n_decompositions);
++ ((tile->cod) ? tile->cod->n_decompositions : header->cod.
++ n_decompositions);
it->n_components = header->siz.n_components;
it->tx0 = tile->tx0;
}
order =
-- (tile->cod) ? tile->cod->progression_order : header->
-- cod.progression_order;
++ (tile->cod) ? tile->cod->progression_order : header->cod.
++ progression_order;
if (order == PROGRESSION_ORDER_LRCP) {
it->next = packet_iterator_next_lrcp;
} else if (order == PROGRESSION_ORDER_RLCP) {
}
Scod = gst_byte_reader_get_uint8_unchecked (reader);
-- cod->sop = ! !(Scod & 0x02);
-- cod->eph = ! !(Scod & 0x04);
++ cod->sop = !!(Scod & 0x02);
++ cod->eph = !!(Scod & 0x04);
/* SGcod */
cod->progression_order = gst_byte_reader_get_uint8_unchecked (reader);
/* Scod */
tmp =
-- (cod->PPx ? 0x01 : 0x00) | (cod->
-- sop ? 0x02 : 0x00) | (cod->eph ? 0x04 : 0x00);
++ (cod->PPx ? 0x01 : 0x00) | (cod->sop ? 0x02 : 0x00) | (cod->
++ eph ? 0x04 : 0x00);
gst_byte_writer_put_uint8_unchecked (writer, tmp);
/* SGcod */
for (i = 0; i < demux->preface->content_storage->n_packages; i++) {
if (demux->preface->content_storage->packages[i] &&
-- MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface->content_storage->
-- packages[i])) {
++ MXF_IS_METADATA_MATERIAL_PACKAGE (demux->preface->
++ content_storage->packages[i])) {
ret =
-- MXF_METADATA_GENERIC_PACKAGE (demux->preface->content_storage->
-- packages[i]);
++ MXF_METADATA_GENERIC_PACKAGE (demux->preface->
++ content_storage->packages[i]);
break;
}
}
essence_container);
if (track->parent.type == MXF_METADATA_TRACK_PICTURE_ESSENCE) {
-- if (MXF_IS_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (track->parent.
-- descriptor[0]))
++ if (MXF_IS_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR (track->
++ parent.descriptor[0]))
mxf_ul_to_string (&MXF_METADATA_GENERIC_PICTURE_ESSENCE_DESCRIPTOR
(track->parent.descriptor[0])->picture_essence_coding,
essence_compression);
g_strdup_printf ("video/x-mxf-%s-%s", essence_container,
essence_compression);
} else if (track->parent.type == MXF_METADATA_TRACK_SOUND_ESSENCE) {
-- if (MXF_IS_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (track->parent.
-- descriptor[0]))
++ if (MXF_IS_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR (track->
++ parent.descriptor[0]))
mxf_ul_to_string (&MXF_METADATA_GENERIC_SOUND_ESSENCE_DESCRIPTOR
(track->parent.descriptor[0])->sound_essence_compression,
essence_compression);
g_strdup_printf ("audio/x-mxf-%s-%s", essence_container,
essence_compression);
} else if (track->parent.type == MXF_METADATA_TRACK_DATA_ESSENCE) {
-- if (MXF_IS_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR (track->parent.
-- descriptor[0]))
++ if (MXF_IS_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR (track->
++ parent.descriptor[0]))
mxf_ul_to_string (&MXF_METADATA_GENERIC_DATA_ESSENCE_DESCRIPTOR
(track->parent.descriptor[0])->data_essence_coding,
essence_compression);
pad->current_component_index);
pad->current_component =
-- MXF_METADATA_SOURCE_CLIP (sequence->structural_components[pad->
-- current_component_index]);
++ MXF_METADATA_SOURCE_CLIP (sequence->
++ structural_components[pad->current_component_index]);
if (pad->current_component == NULL) {
GST_ERROR_OBJECT (demux, "No such structural component");
return GST_FLOW_ERROR;
if (!pad->current_component->source_package
|| !pad->current_component->source_package->top_level
-- || !MXF_METADATA_GENERIC_PACKAGE (pad->current_component->
-- source_package)->tracks) {
++ || !MXF_METADATA_GENERIC_PACKAGE (pad->
++ current_component->source_package)->tracks) {
GST_ERROR_OBJECT (demux, "Invalid component");
return GST_FLOW_ERROR;
}
for (i = 0; i < p->material_track->parent.sequence->n_structural_components;
i++) {
clip =
-- MXF_METADATA_SOURCE_CLIP (p->material_track->parent.sequence->
-- structural_components[i]);
++ MXF_METADATA_SOURCE_CLIP (p->material_track->parent.
++ sequence->structural_components[i]);
if (clip->parent.duration <= 0)
break;
if (format != GST_FORMAT_TIME)
goto wrong_format;
-- flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
-- keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
++ flush = !!(flags & GST_SEEK_FLAG_FLUSH);
++ keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
/* Work on a copy until we are sure the seek succeeded. */
memcpy (&seeksegment, &demux->segment, sizeof (GstSegment));
if (rate <= 0.0)
goto wrong_rate;
-- flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
-- keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
++ flush = !!(flags & GST_SEEK_FLAG_FLUSH);
++ keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
if (flush) {
GstEvent *e;