mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-10-01 01:29:44 +00:00
gst-plugins-bad: re-indent with GNU indent 2.2.12
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4182>
This commit is contained in:
parent
29484f6f12
commit
81716a1097
57 changed files with 584 additions and 520 deletions
|
@ -53,7 +53,7 @@ buffer_size_valid (GstMapInfo * info)
|
|||
}
|
||||
|
||||
GstClockTime
|
||||
get_avtp_tstamp (GstAvtpCrfBase * avtpcrfbase, struct avtp_stream_pdu * pdu)
|
||||
get_avtp_tstamp (GstAvtpCrfBase * avtpcrfbase, struct avtp_stream_pdu *pdu)
|
||||
{
|
||||
guint64 tstamp = GST_CLOCK_TIME_NONE, tstamp_valid;
|
||||
guint32 type;
|
||||
|
@ -91,7 +91,7 @@ get_avtp_tstamp (GstAvtpCrfBase * avtpcrfbase, struct avtp_stream_pdu * pdu)
|
|||
}
|
||||
|
||||
gboolean
|
||||
h264_tstamp_valid (struct avtp_stream_pdu * pdu)
|
||||
h264_tstamp_valid (struct avtp_stream_pdu *pdu)
|
||||
{
|
||||
guint64 subtype, h264_time_valid;
|
||||
guint32 type;
|
||||
|
|
|
@ -277,7 +277,6 @@ BIT_SLICER (Y8, 4, DEF_THR_FRAC) /* any format with 0 bytes between Y or
|
|||
BIT_SLICER (RGBA24_LE, 4, DEF_THR_FRAC) /* 3 bytes */
|
||||
BIT_SLICER (RGB16_LE, 4, bs->thresh_frac)
|
||||
BIT_SLICER (RGB16_BE, 4, bs->thresh_frac)
|
||||
|
||||
static const unsigned int LP_AVG = 4;
|
||||
|
||||
static vbi_bool
|
||||
|
@ -506,7 +505,8 @@ vbi_bool
|
|||
uint8_t * buffer,
|
||||
unsigned int buffer_size,
|
||||
vbi3_bit_slicer_point * points,
|
||||
unsigned int *n_points, unsigned int max_points, const uint8_t * raw) {
|
||||
unsigned int *n_points, unsigned int max_points, const uint8_t * raw)
|
||||
{
|
||||
static const vbi_pixfmt pixfmt = VBI_PIXFMT_Y8;
|
||||
static const unsigned int bpp = 1;
|
||||
static const unsigned int oversampling = 4; /* see above */
|
||||
|
|
|
@ -535,7 +535,7 @@ signal_u8 (uint8_t * raw,
|
|||
goto bounds;
|
||||
|
||||
if (sp->interlaced) {
|
||||
row *= 2 + ! !(flags & _VBI_RAW_SWAP_FIELDS);
|
||||
row *= 2 + !!(flags & _VBI_RAW_SWAP_FIELDS);
|
||||
} else if (flags & _VBI_RAW_SWAP_FIELDS) {
|
||||
row += sp->count[0];
|
||||
}
|
||||
|
|
|
@ -1072,7 +1072,7 @@ vbi3_raw_decoder_debug (vbi3_raw_decoder * rd, vbi_bool enable)
|
|||
#endif
|
||||
r = TRUE;
|
||||
|
||||
rd->debug = ! !enable;
|
||||
rd->debug = !!enable;
|
||||
|
||||
n_lines = 0;
|
||||
if (enable) {
|
||||
|
@ -1135,7 +1135,8 @@ vbi3_raw_decoder_services (vbi3_raw_decoder * rd)
|
|||
/* Attn: strict must be int for compatibility with libzvbi 0.2 (-1 == 0) */
|
||||
vbi_service_set
|
||||
vbi3_raw_decoder_set_sampling_par
|
||||
(vbi3_raw_decoder * rd, const vbi_sampling_par * sp, int strict) {
|
||||
(vbi3_raw_decoder * rd, const vbi_sampling_par * sp, int strict)
|
||||
{
|
||||
unsigned int services;
|
||||
|
||||
assert (NULL != rd);
|
||||
|
|
|
@ -332,7 +332,8 @@ static vbi_bool
|
|||
vbi_service_set
|
||||
_vbi_sampling_par_check_services_log
|
||||
(const vbi_sampling_par * sp,
|
||||
vbi_service_set services, unsigned int strict, _vbi_log_hook * log) {
|
||||
vbi_service_set services, unsigned int strict, _vbi_log_hook * log)
|
||||
{
|
||||
const _vbi_service_par *par;
|
||||
vbi_service_set rservices;
|
||||
|
||||
|
@ -359,7 +360,8 @@ vbi_service_set
|
|||
(vbi_sampling_par * sp,
|
||||
unsigned int *max_rate,
|
||||
vbi_videostd_set videostd_set_req,
|
||||
vbi_service_set services, _vbi_log_hook * log) {
|
||||
vbi_service_set services, _vbi_log_hook * log)
|
||||
{
|
||||
const _vbi_service_par *par;
|
||||
vbi_service_set rservices;
|
||||
vbi_videostd_set videostd_set;
|
||||
|
@ -502,8 +504,8 @@ vbi_service_set
|
|||
*/
|
||||
vbi_service_set
|
||||
vbi_sampling_par_check_services
|
||||
(const vbi_sampling_par * sp,
|
||||
vbi_service_set services, unsigned int strict) {
|
||||
(const vbi_sampling_par * sp, vbi_service_set services, unsigned int strict)
|
||||
{
|
||||
return _vbi_sampling_par_check_services_log (sp, services, strict,
|
||||
/* log_hook */ NULL);
|
||||
}
|
||||
|
|
|
@ -2398,7 +2398,7 @@ gst_dash_demux_seek (GstAdaptiveDemux * demux, GstEvent * seek)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
trickmode_no_audio = ! !(flags & GST_SEEK_FLAG_TRICKMODE_NO_AUDIO);
|
||||
trickmode_no_audio = !!(flags & GST_SEEK_FLAG_TRICKMODE_NO_AUDIO);
|
||||
|
||||
streams = demux->streams;
|
||||
if (current_period != gst_mpd_client_get_period_index (dashdemux->client)) {
|
||||
|
|
|
@ -832,13 +832,13 @@ log_state (GstDtlsConnection * self, const gchar * str)
|
|||
GstDtlsConnectionPrivate *priv = self->priv;
|
||||
guint states = 0;
|
||||
|
||||
states |= (! !SSL_is_init_finished (priv->ssl) << 0);
|
||||
states |= (! !SSL_in_init (priv->ssl) << 4);
|
||||
states |= (! !SSL_in_before (priv->ssl) << 8);
|
||||
states |= (! !SSL_in_connect_init (priv->ssl) << 12);
|
||||
states |= (! !SSL_in_accept_init (priv->ssl) << 16);
|
||||
states |= (! !SSL_want_write (priv->ssl) << 20);
|
||||
states |= (! !SSL_want_read (priv->ssl) << 24);
|
||||
states |= (!!SSL_is_init_finished (priv->ssl) << 0);
|
||||
states |= (!!SSL_in_init (priv->ssl) << 4);
|
||||
states |= (!!SSL_in_before (priv->ssl) << 8);
|
||||
states |= (!!SSL_in_connect_init (priv->ssl) << 12);
|
||||
states |= (!!SSL_in_accept_init (priv->ssl) << 16);
|
||||
states |= (!!SSL_want_write (priv->ssl) << 20);
|
||||
states |= (!!SSL_want_read (priv->ssl) << 24);
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100001L
|
||||
GST_LOG_OBJECT (self, "%s: role=%s buf=(%d,%p:%d/%d) %x|%x %s",
|
||||
|
|
|
@ -422,7 +422,7 @@ gst_hls_demux_stream_seek (GstAdaptiveDemuxStream * stream, gboolean forward,
|
|||
/* Snap to segment boundary. Improves seek performance on slow machines. */
|
||||
snap_nearest =
|
||||
(flags & GST_SEEK_FLAG_SNAP_NEAREST) == GST_SEEK_FLAG_SNAP_NEAREST;
|
||||
snap_after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
snap_after = !!(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
|
||||
GST_M3U8_CLIENT_LOCK (hlsdemux->client);
|
||||
/* FIXME: Here we need proper discont handling */
|
||||
|
|
|
@ -137,7 +137,7 @@ gst_kate_spu_decode_colcon (GstKateEnc * ke, const guint8 * ptr, guint16 sz)
|
|||
}
|
||||
|
||||
static inline guint8
|
||||
gst_kate_spu_get_nybble (const guint8 * nybbles, size_t * nybble_offset)
|
||||
gst_kate_spu_get_nybble (const guint8 * nybbles, size_t *nybble_offset)
|
||||
{
|
||||
guint8 ret;
|
||||
|
||||
|
@ -155,7 +155,7 @@ gst_kate_spu_get_nybble (const guint8 * nybbles, size_t * nybble_offset)
|
|||
}
|
||||
|
||||
static guint16
|
||||
gst_kate_spu_get_rle_code (const guint8 * nybbles, size_t * nybble_offset)
|
||||
gst_kate_spu_get_rle_code (const guint8 * nybbles, size_t *nybble_offset)
|
||||
{
|
||||
guint16 code;
|
||||
|
||||
|
|
|
@ -374,7 +374,7 @@ plugin_init (GstPlugin * plugin)
|
|||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
__attribute__ ((destructor))
|
||||
__attribute__((destructor))
|
||||
#endif
|
||||
static void plugin_cleanup (GstPlugin * plugin)
|
||||
{
|
||||
|
|
|
@ -397,7 +397,8 @@ gst_openal_helper_probe_caps (ALCcontext * context)
|
|||
GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT,
|
||||
GST_AUDIO_CHANNEL_POSITION_SIDE_LEFT,
|
||||
GST_AUDIO_CHANNEL_POSITION_SIDE_RIGHT}
|
||||
},};
|
||||
},
|
||||
};
|
||||
GstStructure *structure;
|
||||
guint64 channel_mask;
|
||||
GstCaps *caps;
|
||||
|
@ -421,11 +422,13 @@ gst_openal_helper_probe_caps (ALCcontext * context)
|
|||
"AL_FORMAT_STEREO16",
|
||||
"AL_FORMAT_QUAD16",
|
||||
"AL_FORMAT_51CHN16",
|
||||
"AL_FORMAT_61CHN16", "AL_FORMAT_71CHN16", NULL}, *fmt8[] = {
|
||||
"AL_FORMAT_61CHN16", "AL_FORMAT_71CHN16", NULL
|
||||
}, *fmt8[] = {
|
||||
"AL_FORMAT_MONO8",
|
||||
"AL_FORMAT_STEREO8",
|
||||
"AL_FORMAT_QUAD8",
|
||||
"AL_FORMAT_51CHN8", "AL_FORMAT_61CHN8", "AL_FORMAT_71CHN8", NULL};
|
||||
"AL_FORMAT_51CHN8", "AL_FORMAT_61CHN8", "AL_FORMAT_71CHN8", NULL
|
||||
};
|
||||
int i;
|
||||
|
||||
if (alIsExtensionPresent ("AL_EXT_FLOAT32")) {
|
||||
|
|
|
@ -2438,7 +2438,7 @@ rsn_dvdsrc_src_event (GstBaseSrc * basesrc, GstEvent * event)
|
|||
GST_LOG_OBJECT (src, "handling seek event");
|
||||
|
||||
gst_event_parse_seek (event, NULL, NULL, &flags, NULL, NULL, NULL, NULL);
|
||||
src->flushing_seek = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
src->flushing_seek = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
GST_DEBUG_OBJECT (src, "%s seek event",
|
||||
src->flushing_seek ? "flushing" : "non-flushing");
|
||||
|
||||
|
|
|
@ -1359,7 +1359,8 @@ fixate_size (GstVulkanViewConvert * viewconvert,
|
|||
GstStructure *ins, *outs;
|
||||
const GValue *from_par, *to_par;
|
||||
GValue fpar = { 0, }, tpar = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
othercaps = gst_caps_make_writable (othercaps);
|
||||
othercaps = gst_caps_truncate (othercaps);
|
||||
|
|
|
@ -422,9 +422,9 @@ gst_x265_enc_sink_getcaps (GstVideoEncoder * enc, GstCaps * filter)
|
|||
if (max_bit_minus_8 >= 2)
|
||||
has_10bit = TRUE;
|
||||
|
||||
has_8bit &= ! !vtable_8bit;
|
||||
has_10bit &= ! !vtable_10bit;
|
||||
has_12bit &= ! !vtable_12bit;
|
||||
has_8bit &= !!vtable_8bit;
|
||||
has_10bit &= !!vtable_10bit;
|
||||
has_12bit &= !!vtable_12bit;
|
||||
|
||||
/* 4:4:4 profiles can handle 4:2:2 and 4:2:0 */
|
||||
if (max_chroma_index >= 2)
|
||||
|
@ -534,8 +534,8 @@ gst_x265_enc_class_init (GstX265EncClass * klass)
|
|||
"height", GST_TYPE_INT_RANGE, 16, G_MAXINT, NULL);
|
||||
|
||||
gst_x265_enc_add_x265_chroma_format (gst_caps_get_structure
|
||||
(supported_sinkcaps, 0), TRUE, TRUE, TRUE, ! !vtable_8bit,
|
||||
! !vtable_10bit, ! !vtable_12bit);
|
||||
(supported_sinkcaps, 0), TRUE, TRUE, TRUE, !!vtable_8bit,
|
||||
!!vtable_10bit, !!vtable_12bit);
|
||||
|
||||
sink_templ = gst_pad_template_new ("sink",
|
||||
GST_PAD_SINK, GST_PAD_ALWAYS, supported_sinkcaps);
|
||||
|
|
|
@ -986,7 +986,7 @@ gst_h264_parser_parse_pic_timing (GstH264NalParser * nalparser,
|
|||
hrd = &vui->vcl_hrd_parameters;
|
||||
}
|
||||
|
||||
tim->CpbDpbDelaysPresentFlag = ! !hrd;
|
||||
tim->CpbDpbDelaysPresentFlag = !!hrd;
|
||||
tim->pic_struct_present_flag = vui->pic_struct_present_flag;
|
||||
|
||||
if (tim->CpbDpbDelaysPresentFlag) {
|
||||
|
|
|
@ -523,7 +523,8 @@ gst_mpeg_video_packet_parse_sequence_display_extension (const GstMpegVideoPacket
|
|||
gboolean
|
||||
gst_mpeg_video_packet_parse_sequence_scalable_extension
|
||||
(const GstMpegVideoPacket * packet,
|
||||
GstMpegVideoSequenceScalableExt * seqscaleext) {
|
||||
GstMpegVideoSequenceScalableExt * seqscaleext)
|
||||
{
|
||||
GstBitReader br;
|
||||
|
||||
g_return_val_if_fail (seqscaleext != NULL, FALSE);
|
||||
|
|
|
@ -156,7 +156,7 @@ gst_vulkan_display_wayland_new (const gchar * name)
|
|||
* Since: 1.18
|
||||
*/
|
||||
GstVulkanDisplayWayland *
|
||||
gst_vulkan_display_wayland_new_with_display (struct wl_display * display)
|
||||
gst_vulkan_display_wayland_new_with_display (struct wl_display *display)
|
||||
{
|
||||
GstVulkanDisplayWayland *ret;
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ gst_is_wl_display_handle_need_context_message (GstMessage * msg)
|
|||
}
|
||||
|
||||
GstContext *
|
||||
gst_wl_display_handle_context_new (struct wl_display * display)
|
||||
gst_wl_display_handle_context_new (struct wl_display *display)
|
||||
{
|
||||
GstContext *context =
|
||||
gst_context_new (GST_WL_DISPLAY_HANDLE_CONTEXT_TYPE, TRUE);
|
||||
|
|
|
@ -349,7 +349,7 @@ gst_wl_display_new (const gchar * name, GError ** error)
|
|||
}
|
||||
|
||||
GstWlDisplay *
|
||||
gst_wl_display_new_existing (struct wl_display * display,
|
||||
gst_wl_display_new_existing (struct wl_display *display,
|
||||
gboolean take_ownership, GError ** error)
|
||||
{
|
||||
GstWlDisplay *self;
|
||||
|
|
|
@ -344,7 +344,7 @@ error:
|
|||
|
||||
GstWlWindow *
|
||||
gst_wl_window_new_in_surface (GstWlDisplay * display,
|
||||
struct wl_surface * parent, GMutex * render_lock)
|
||||
struct wl_surface *parent, GMutex * render_lock)
|
||||
{
|
||||
GstWlWindow *self;
|
||||
GstWlWindowPrivate *priv;
|
||||
|
|
|
@ -410,7 +410,7 @@ liq_set_last_index_transparent (liq_attr * attr, int is_last)
|
|||
if (!CHECK_STRUCT_TYPE (attr, liq_attr))
|
||||
return;
|
||||
|
||||
attr->last_index_transparent = ! !is_last;
|
||||
attr->last_index_transparent = !!is_last;
|
||||
}
|
||||
|
||||
LIQ_EXPORT void
|
||||
|
|
|
@ -38,7 +38,8 @@ mempool_create (mempool * mptr, const unsigned int size, unsigned int max_size,
|
|||
return NULL;
|
||||
**mptr = (struct mempool) {
|
||||
.malloc = malloc,.free = free,.size = MEMPOOL_RESERVED + max_size,.used =
|
||||
sizeof (struct mempool),.next = old,};
|
||||
sizeof (struct mempool),.next = old,
|
||||
};
|
||||
mptr_used_start = (uintptr_t) (*mptr) + (*mptr)->used;
|
||||
(*mptr)->used += (ALIGN_MASK + 1 - (mptr_used_start & ALIGN_MASK)) & ALIGN_MASK; // reserve bytes required to make subsequent allocations aligned
|
||||
assert (!(((uintptr_t) (*mptr) + (*mptr)->used) & ALIGN_MASK));
|
||||
|
|
|
@ -104,7 +104,8 @@ pam_computeacolorhash (struct acolorhash_table *acht,
|
|||
// the array was allocated with spare items
|
||||
if (i < achl->capacity) {
|
||||
other_items[i] = (struct acolorhist_arr_item) {
|
||||
.color = px,.perceptual_weight = boost,};
|
||||
.color = px,.perceptual_weight = boost,
|
||||
};
|
||||
achl->used++;
|
||||
++colors;
|
||||
continue;
|
||||
|
@ -155,7 +156,8 @@ pam_computeacolorhash (struct acolorhash_table *acht,
|
|||
achl->other_items = new_items;
|
||||
achl->capacity = capacity;
|
||||
new_items[i] = (struct acolorhist_arr_item) {
|
||||
.color = px,.perceptual_weight = boost,};
|
||||
.color = px,.perceptual_weight = boost,
|
||||
};
|
||||
achl->used++;
|
||||
} else {
|
||||
// these are elses for first checks whether first and second inline-stored colors are used
|
||||
|
@ -205,7 +207,8 @@ pam_allocacolorhash (unsigned int maxcolors, unsigned int surface,
|
|||
return NULL;
|
||||
*t = (struct acolorhash_table) {
|
||||
.mempool = m,.hash_size = hash_size,.maxcolors = maxcolors,.ignorebits =
|
||||
ignorebits,};
|
||||
ignorebits,
|
||||
};
|
||||
memset (t->buckets, 0, hash_size * sizeof (struct acolorhist_arr_head));
|
||||
return t;
|
||||
}
|
||||
|
@ -217,7 +220,7 @@ pam_allocacolorhash (unsigned int maxcolors, unsigned int surface,
|
|||
}
|
||||
|
||||
LIQ_PRIVATE histogram *
|
||||
pam_acolorhashtoacolorhist (const struct acolorhash_table * acht,
|
||||
pam_acolorhashtoacolorhist (const struct acolorhash_table *acht,
|
||||
const double gamma, void *(*malloc) (size_t), void (*free) (void *))
|
||||
{
|
||||
histogram *hist = malloc (sizeof (hist[0]));
|
||||
|
|
|
@ -1655,7 +1655,7 @@ gst_field_analysis_process_buffer (GstFieldAnalysis * filter,
|
|||
&& telecine_matches & FIELD_ANALYSIS_BOTTOM_TOP)) {
|
||||
/* held is opposite to matched => need both field from prev */
|
||||
/* if t_b, hold bottom from prev and top from current, else vice-versa */
|
||||
res1->holding = 1 + ! !(telecine_matches & FIELD_ANALYSIS_TOP_BOTTOM);
|
||||
res1->holding = 1 + !!(telecine_matches & FIELD_ANALYSIS_TOP_BOTTOM);
|
||||
res0->holding = 1 + !(telecine_matches & FIELD_ANALYSIS_TOP_BOTTOM);
|
||||
/* push prev TCM */
|
||||
outbuf =
|
||||
|
|
|
@ -848,7 +848,8 @@ add_musicbrainz_tag (GstId3v2Tag * id3v2tag, const GstTagList * list,
|
|||
{
|
||||
GST_TAG_MUSICBRAINZ_ARTISTID, "MusicBrainz Artist Id",
|
||||
"musicbrainz_artistid"}, {
|
||||
GST_TAG_MUSICBRAINZ_ALBUMID, "MusicBrainz Album Id", "musicbrainz_albumid"}, {
|
||||
GST_TAG_MUSICBRAINZ_ALBUMID, "MusicBrainz Album Id",
|
||||
"musicbrainz_albumid"}, {
|
||||
GST_TAG_MUSICBRAINZ_ALBUMARTISTID, "MusicBrainz Album Artist Id",
|
||||
"musicbrainz_albumartistid"}, {
|
||||
GST_TAG_MUSICBRAINZ_RELEASEGROUPID, "MusicBrainz Release Group Id",
|
||||
|
|
|
@ -794,8 +794,10 @@ gst_interlace_caps_double_framerate (GstCaps * caps, gboolean half,
|
|||
} else if (G_VALUE_TYPE (val) == GST_TYPE_FRACTION_RANGE) {
|
||||
const GValue *min, *max;
|
||||
GValue nrange = { 0, }, nmin = {
|
||||
0,}, nmax = {
|
||||
0,};
|
||||
0,
|
||||
}, nmax = {
|
||||
0,
|
||||
};
|
||||
gint n, d;
|
||||
|
||||
g_value_init (&nrange, GST_TYPE_FRACTION_RANGE);
|
||||
|
|
|
@ -574,8 +574,8 @@ parse_cod (GstJP2kDecimator * self, GstByteReader * reader,
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
|
@ -1837,8 +1837,8 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
|
|||
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
||||
GST_TIME_ARGS (stop));
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
instant_rate_change = ! !(flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
instant_rate_change = !!(flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE);
|
||||
|
||||
/* Directly send the instant-rate-change event here before taking the
|
||||
* stream-lock so that it can be applied as soon as possible */
|
||||
|
|
|
@ -846,7 +846,8 @@ mxf_metadata_aes3_audio_essence_descriptor_to_structure (MXFMetadataBase * m)
|
|||
guint i;
|
||||
GValue va = { 0, }
|
||||
, v = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
GstBuffer *buf;
|
||||
GstMapInfo map;
|
||||
|
||||
|
@ -888,7 +889,8 @@ mxf_metadata_aes3_audio_essence_descriptor_to_structure (MXFMetadataBase * m)
|
|||
guint i;
|
||||
GValue va = { 0, }
|
||||
, v = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
GstBuffer *buf;
|
||||
GstMapInfo map;
|
||||
|
||||
|
|
|
@ -4845,8 +4845,8 @@ gst_mxf_demux_seek_push (GstMXFDemux * demux, GstEvent * event)
|
|||
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));
|
||||
|
@ -5136,8 +5136,8 @@ gst_mxf_demux_seek_pull (GstMXFDemux * demux, GstEvent * event)
|
|||
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 (!demux->index_table_segments_collected) {
|
||||
collect_index_table_segments (demux);
|
||||
|
|
|
@ -734,7 +734,8 @@ mxf_metadata_preface_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_identifications > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -778,7 +779,8 @@ mxf_metadata_preface_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_essence_containers > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -804,7 +806,8 @@ mxf_metadata_preface_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_dm_schemes > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -1418,7 +1421,8 @@ mxf_metadata_content_storage_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_packages > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -1447,7 +1451,8 @@ mxf_metadata_content_storage_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_essence_container_data > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -1910,7 +1915,8 @@ mxf_metadata_generic_package_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_tracks > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -2558,7 +2564,8 @@ static const struct
|
|||
{
|
||||
MXF_UL (TRACK_TIMECODE_12M_INACTIVE),
|
||||
MXF_METADATA_TRACK_TIMECODE_12M_INACTIVE}, {
|
||||
MXF_UL (TRACK_TIMECODE_12M_ACTIVE), MXF_METADATA_TRACK_TIMECODE_12M_ACTIVE}, {
|
||||
MXF_UL (TRACK_TIMECODE_12M_ACTIVE),
|
||||
MXF_METADATA_TRACK_TIMECODE_12M_ACTIVE}, {
|
||||
MXF_UL (TRACK_TIMECODE_309M), MXF_METADATA_TRACK_TIMECODE_309M}, {
|
||||
MXF_UL (TRACK_METADATA), MXF_METADATA_TRACK_METADATA}, {
|
||||
MXF_UL (TRACK_PICTURE_ESSENCE), MXF_METADATA_TRACK_PICTURE_ESSENCE}, {
|
||||
|
@ -2956,7 +2963,8 @@ mxf_metadata_sequence_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_structural_components > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -3570,7 +3578,8 @@ mxf_metadata_dm_source_clip_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_track_ids > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -3800,7 +3809,8 @@ mxf_metadata_dm_segment_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_track_ids > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -4065,7 +4075,8 @@ mxf_metadata_generic_descriptor_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_locators > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
@ -6140,7 +6151,8 @@ mxf_metadata_multiple_descriptor_to_structure (MXFMetadataBase * m)
|
|||
if (self->n_sub_descriptors > 0) {
|
||||
GValue arr = { 0, }
|
||||
, val = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
g_value_init (&arr, GST_TYPE_ARRAY);
|
||||
|
||||
|
|
|
@ -89,7 +89,8 @@ static const struct
|
|||
} _cdci_mapping_table[] = {
|
||||
{
|
||||
"YUY2", 2, 1, 0, TRUE, GST_VIDEO_CAPS_MAKE ("YUY2")}, {
|
||||
"UYVY", 2, 1, 0, FALSE, GST_VIDEO_CAPS_MAKE ("UYVY")},};
|
||||
"UYVY", 2, 1, 0, FALSE, GST_VIDEO_CAPS_MAKE ("UYVY")},
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -115,7 +115,7 @@ vad_get_threshold_as_db (struct _vad_s *p)
|
|||
}
|
||||
|
||||
gint
|
||||
vad_update (struct _vad_s * p, gint16 * data, gint len)
|
||||
vad_update (struct _vad_s *p, gint16 * data, gint len)
|
||||
{
|
||||
guint64 tail;
|
||||
gint frame_type;
|
||||
|
|
|
@ -194,7 +194,7 @@ GstAmfNode *
|
|||
gst_amf_node_new_boolean (gboolean value)
|
||||
{
|
||||
GstAmfNode *node = node_new (GST_AMF_TYPE_BOOLEAN);
|
||||
node->value.v_int = ! !value;
|
||||
node->value.v_int = !!value;
|
||||
return node;
|
||||
}
|
||||
|
||||
|
@ -398,7 +398,7 @@ void
|
|||
gst_amf_node_set_boolean (GstAmfNode * node, gboolean value)
|
||||
{
|
||||
g_return_if_fail (node->type == GST_AMF_TYPE_BOOLEAN);
|
||||
node->value.v_int = ! !value;
|
||||
node->value.v_int = !!value;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -675,7 +675,7 @@ parse_boolean (AmfParser * parser)
|
|||
}
|
||||
|
||||
value = parse_u8 (parser);
|
||||
return ! !value;
|
||||
return !!value;
|
||||
}
|
||||
|
||||
static inline GBytes *
|
||||
|
|
|
@ -803,7 +803,7 @@ gst_h264_parse_process_sei (GstH264Parse * h264parse, GstH264NalUnit * nalu)
|
|||
if (sei.payload.frame_packing.spatial_flipping_flag) {
|
||||
/* One of the views is flopped. */
|
||||
if (sei.payload.frame_packing.frame0_flipped_flag !=
|
||||
! !(mview_flags &
|
||||
!!(mview_flags &
|
||||
GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST))
|
||||
/* the left view is flopped */
|
||||
mview_flags |= GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLOPPED;
|
||||
|
@ -816,7 +816,7 @@ gst_h264_parse_process_sei (GstH264Parse * h264parse, GstH264NalUnit * nalu)
|
|||
if (sei.payload.frame_packing.spatial_flipping_flag) {
|
||||
/* One of the views is flipped, */
|
||||
if (sei.payload.frame_packing.frame0_flipped_flag !=
|
||||
! !(mview_flags &
|
||||
!!(mview_flags &
|
||||
GST_VIDEO_MULTIVIEW_FLAGS_RIGHT_VIEW_FIRST))
|
||||
/* the left view is flipped */
|
||||
mview_flags |= GST_VIDEO_MULTIVIEW_FLAGS_LEFT_FLIPPED;
|
||||
|
|
|
@ -111,7 +111,8 @@ static const struct
|
|||
"sequence-layer-bdu", VC1_STREAM_FORMAT_SEQUENCE_LAYER_BDU}, {
|
||||
"sequence-layer-bdu-frame", VC1_STREAM_FORMAT_SEQUENCE_LAYER_BDU_FRAME}, {
|
||||
"sequence-layer-raw-frame", VC1_STREAM_FORMAT_SEQUENCE_LAYER_RAW_FRAME}, {
|
||||
"sequence-layer-frame-layer", VC1_STREAM_FORMAT_SEQUENCE_LAYER_FRAME_LAYER}, {
|
||||
"sequence-layer-frame-layer",
|
||||
VC1_STREAM_FORMAT_SEQUENCE_LAYER_FRAME_LAYER}, {
|
||||
"asf", VC1_STREAM_FORMAT_ASF}, {
|
||||
"frame-layer", VC1_STREAM_FORMAT_FRAME_LAYER}
|
||||
};
|
||||
|
|
|
@ -43,7 +43,8 @@ static struct
|
|||
jint YUY2;
|
||||
jint YV12;
|
||||
} android_graphics_imageformat = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
gint ImageFormat_JPEG;
|
||||
gint ImageFormat_NV16;
|
||||
|
|
|
@ -56,7 +56,8 @@ static struct
|
|||
jmethodID stopSmoothZoom;
|
||||
jmethodID unlock;
|
||||
} android_hardware_camera = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -67,7 +68,8 @@ static struct
|
|||
jint CAMERA_FACING_BACK;
|
||||
jint CAMERA_FACING_FRONT;
|
||||
} android_hardware_camera_camerainfo = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
gint CameraInfo_CAMERA_FACING_BACK;
|
||||
gint CameraInfo_CAMERA_FACING_FRONT;
|
||||
|
@ -78,7 +80,8 @@ static struct
|
|||
jfieldID width;
|
||||
jfieldID height;
|
||||
} android_hardware_camera_size = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -186,7 +189,8 @@ static struct
|
|||
jstring FOCUS_MODE_CONTINUOUS_VIDEO;
|
||||
jstring FOCUS_MODE_CONTINUOUS_PICTURE;
|
||||
} android_hardware_camera_parameters = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
const gchar *Parameters_WHITE_BALANCE_AUTO;
|
||||
const gchar *Parameters_WHITE_BALANCE_INCANDESCENT;
|
||||
|
@ -250,7 +254,8 @@ static struct
|
|||
jclass klass;
|
||||
jmethodID iterator;
|
||||
} java_util_list = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -258,28 +263,32 @@ static struct
|
|||
jmethodID hasNext;
|
||||
jmethodID next;
|
||||
} java_util_iterator = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
jclass klass;
|
||||
jmethodID intValue;
|
||||
} java_lang_integer = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
jclass klass;
|
||||
jmethodID equals;
|
||||
} java_lang_string = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
jclass klass;
|
||||
jmethodID constructor;
|
||||
} org_freedesktop_gstreamer_androidmedia_gstahccallback = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static void
|
||||
gst_ah_camera_on_preview_frame (JNIEnv * env, jclass klass, jbyteArray data,
|
||||
|
|
|
@ -62,7 +62,8 @@ static struct
|
|||
jstring SENSOR_SERVICE;
|
||||
jmethodID getSystemService;
|
||||
} android_content_context = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -70,7 +71,8 @@ static struct
|
|||
jfieldID accuracy;
|
||||
jfieldID values;
|
||||
} android_hardware_sensor_event = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
|
@ -79,14 +81,16 @@ static struct
|
|||
jmethodID registerListener;
|
||||
jmethodID unregisterListener;
|
||||
} android_hardware_sensor_manager = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
static struct
|
||||
{
|
||||
jclass klass;
|
||||
jmethodID constructor;
|
||||
} org_freedesktop_gstreamer_androidmedia_gstahscallback = {
|
||||
0};
|
||||
0
|
||||
};
|
||||
|
||||
GHashTable *sensor_sizes = NULL;
|
||||
static void
|
||||
|
@ -135,14 +139,16 @@ gst_ah_sensor_sensor_sizes_init (void)
|
|||
, {
|
||||
AHS_SENSOR_TYPE_PROXIMITY, sizeof (GstAHSProximityValues)}
|
||||
, {
|
||||
AHS_SENSOR_TYPE_RELATIVE_HUMIDITY, sizeof (GstAHSRelativeHumidityValues)}
|
||||
AHS_SENSOR_TYPE_RELATIVE_HUMIDITY,
|
||||
sizeof (GstAHSRelativeHumidityValues)}
|
||||
, {
|
||||
AHS_SENSOR_TYPE_ROTATION_VECTOR, sizeof (GstAHSRotationVectorValues)}
|
||||
, {
|
||||
AHS_SENSOR_TYPE_STEP_COUNTER, sizeof (GstAHSStepCounterValues)}
|
||||
, {
|
||||
AHS_SENSOR_TYPE_STEP_DETECTOR, sizeof (GstAHSStepDetectorValues)}
|
||||
,};
|
||||
,
|
||||
};
|
||||
|
||||
g_assert_null (sensor_sizes);
|
||||
|
||||
|
|
|
@ -346,7 +346,7 @@ scan_codecs (GstPlugin * plugin)
|
|||
GstAmcCodecInfo *tmp = l->data;
|
||||
|
||||
if (strcmp (tmp->name, gst_codec_info->name) == 0
|
||||
&& ! !tmp->is_encoder == ! !gst_codec_info->is_encoder) {
|
||||
&& !!tmp->is_encoder == !!gst_codec_info->is_encoder) {
|
||||
gint m = tmp->n_supported_types, n;
|
||||
|
||||
GST_LOG ("Successfully scanned codec '%s', appending to existing",
|
||||
|
@ -517,7 +517,8 @@ static const struct
|
|||
COLOR_INTEL_FormatYUV420PackedSemiPlanar, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_INTEL_FormatYUV420PackedSemiPlanar_Tiled, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_QCOM_FormatYUV420SemiPlanar, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_QCOM_FormatYUV420PackedSemiPlanar64x32Tile2m8ka, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_QCOM_FormatYUV420PackedSemiPlanar64x32Tile2m8ka,
|
||||
GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_QCOM_FormatYVU420SemiPlanar32m, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_QCOM_FormatYVU420SemiPlanar32mMultiView, GST_VIDEO_FORMAT_NV12}, {
|
||||
COLOR_OMX_SEC_FormatNV12Tiled, GST_VIDEO_FORMAT_NV12}, {
|
||||
|
@ -1439,7 +1440,8 @@ static const struct
|
|||
MPEG4Level3, "3"}, {
|
||||
MPEG4Level4, "4"}, {
|
||||
MPEG4Level4a, "4a"}, {
|
||||
MPEG4Level5, "5"},};
|
||||
MPEG4Level5, "5"},
|
||||
};
|
||||
|
||||
const gchar *
|
||||
gst_amc_mpeg4_level_to_string (gint level)
|
||||
|
|
|
@ -491,7 +491,7 @@ retry:
|
|||
" flags 0x%08x", idx, buffer_info.offset, buffer_info.size,
|
||||
buffer_info.presentation_time_us, buffer_info.flags);
|
||||
|
||||
is_eos = ! !(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
is_eos = !!(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
|
||||
buf = gst_amc_codec_get_output_buffer (self->codec, idx, &err);
|
||||
if (err) {
|
||||
|
|
|
@ -1383,7 +1383,7 @@ retry:
|
|||
_find_nearest_frame (self,
|
||||
gst_util_uint64_scale (buffer_info.presentation_time_us, GST_USECOND, 1));
|
||||
|
||||
is_eos = ! !(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
is_eos = !!(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
|
||||
if (frame
|
||||
&& (deadline =
|
||||
|
|
|
@ -157,13 +157,15 @@ create_amc_format (GstAmcVideoEnc * encoder, GstVideoCodecState * input_state,
|
|||
const gchar *key;
|
||||
gint id;
|
||||
} amc_profile = {
|
||||
NULL, -1};
|
||||
NULL, -1
|
||||
};
|
||||
struct
|
||||
{
|
||||
const gchar *key;
|
||||
gint id;
|
||||
} amc_level = {
|
||||
NULL, -1};
|
||||
NULL, -1
|
||||
};
|
||||
gint color_format;
|
||||
gint stride, slice_height;
|
||||
GstAmcFormat *format = NULL;
|
||||
|
@ -1158,7 +1160,7 @@ process_buffer:
|
|||
_find_nearest_frame (self,
|
||||
gst_util_uint64_scale (buffer_info.presentation_time_us, GST_USECOND, 1));
|
||||
|
||||
is_eos = ! !(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
is_eos = !!(buffer_info.flags & BUFFER_FLAG_END_OF_STREAM);
|
||||
|
||||
flow_ret =
|
||||
gst_amc_video_enc_handle_output_frame (self, buf, &buffer_info, frame);
|
||||
|
|
|
@ -108,7 +108,7 @@ const CFStringRef kVTCompressionPropertyKey_Quality = CFSTR ("Quality");
|
|||
#ifdef HAVE_VIDEOTOOLBOX_10_9_6
|
||||
extern OSStatus
|
||||
VTCompressionSessionPrepareToEncodeFrames (VTCompressionSessionRef session)
|
||||
__attribute__ ((weak_import));
|
||||
__attribute__((weak_import));
|
||||
#endif
|
||||
|
||||
/* This property key is currently completely undocumented. The only way you can
|
||||
|
|
|
@ -921,7 +921,7 @@ gst_msdkvpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
free_msdk_surface (in_surface);
|
||||
return GST_FLOW_ERROR;
|
||||
}
|
||||
locked_by_others = ! !in_surface->surface->Data.Locked;
|
||||
locked_by_others = !!in_surface->surface->Data.Locked;
|
||||
|
||||
/* always convert timestamp of input surface as msdk timestamp */
|
||||
if (inbuf->pts == GST_CLOCK_TIME_NONE)
|
||||
|
|
|
@ -756,7 +756,7 @@ gst_v4l2_decoder_dequeue_src (GstV4l2Decoder * self, guint32 * out_frame_num)
|
|||
|
||||
gboolean
|
||||
gst_v4l2_decoder_set_controls (GstV4l2Decoder * self, GstV4l2Request * request,
|
||||
struct v4l2_ext_control * control, guint count)
|
||||
struct v4l2_ext_control *control, guint count)
|
||||
{
|
||||
gint ret;
|
||||
struct v4l2_ext_controls controls = {
|
||||
|
@ -778,7 +778,7 @@ gst_v4l2_decoder_set_controls (GstV4l2Decoder * self, GstV4l2Request * request,
|
|||
|
||||
gboolean
|
||||
gst_v4l2_decoder_get_controls (GstV4l2Decoder * self,
|
||||
struct v4l2_ext_control * control, guint count)
|
||||
struct v4l2_ext_control *control, guint count)
|
||||
{
|
||||
gint ret;
|
||||
struct v4l2_ext_controls controls = {
|
||||
|
|
|
@ -588,7 +588,7 @@ out:
|
|||
|
||||
gboolean
|
||||
gst_wasapi_util_get_device (GstMMDeviceEnumerator * self,
|
||||
gint data_flow, gint role, const wchar_t * device_strid,
|
||||
gint data_flow, gint role, const wchar_t *device_strid,
|
||||
IMMDevice ** ret_device)
|
||||
{
|
||||
gboolean res = FALSE;
|
||||
|
|
|
@ -271,24 +271,30 @@ GST_START_TEST (test_crf_cvf_data)
|
|||
gst_object_unref (avtpcrfbase);
|
||||
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 103000,.buf_dts = 100000,.avtp_ts = 110000,.h264_ts = 108000};
|
||||
.buf_pts = 103000,.buf_dts = 100000,.avtp_ts = 110000,.h264_ts = 108000
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 104204,.buf_dts = 100000,.avtp_ts = 110000,.h264_ts = 109204};
|
||||
.buf_pts = 104204,.buf_dts = 100000,.avtp_ts = 110000,.h264_ts = 109204
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 107000,.buf_dts = 105000,.avtp_ts = 113000,.h264_ts = 118500};
|
||||
.buf_pts = 107000,.buf_dts = 105000,.avtp_ts = 113000,.h264_ts = 118500
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 108400,.buf_dts = 105300,.avtp_ts = 113300,.h264_ts = 119900};
|
||||
.buf_pts = 108400,.buf_dts = 105300,.avtp_ts = 113300,.h264_ts = 119900
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
/* test for invalid DTS */
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 107000,.buf_dts = GST_CLOCK_TIME_NONE,.avtp_ts =
|
||||
113000,.h264_ts = 118500};
|
||||
113000,.h264_ts = 118500
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 108400,.buf_dts = GST_CLOCK_TIME_NONE,.avtp_ts =
|
||||
113300,.h264_ts = 119900};
|
||||
113300,.h264_ts = 119900
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
gst_buffer_unref (buf);
|
||||
|
@ -313,15 +319,19 @@ GST_START_TEST (test_crf_aaf_data)
|
|||
gst_object_unref (avtpcrfbase);
|
||||
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 108000,.buf_dts = 0,.avtp_ts = 110000,.h264_ts = 0};
|
||||
.buf_pts = 108000,.buf_dts = 0,.avtp_ts = 110000,.h264_ts = 0
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 108000,.buf_dts = 0,.avtp_ts = 110000,.h264_ts = 0};
|
||||
.buf_pts = 108000,.buf_dts = 0,.avtp_ts = 110000,.h264_ts = 0
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 110000,.buf_dts = 0,.avtp_ts = 113000,.h264_ts = 0};
|
||||
.buf_pts = 110000,.buf_dts = 0,.avtp_ts = 113000,.h264_ts = 0
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 110300,.buf_dts = 0,.avtp_ts = 113300,.h264_ts = 0};
|
||||
.buf_pts = 110300,.buf_dts = 0,.avtp_ts = 113300,.h264_ts = 0
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
gst_buffer_unref (buf);
|
||||
|
@ -346,9 +356,11 @@ GST_START_TEST (test_crf_period_zero)
|
|||
gst_object_unref (avtpcrfbase);
|
||||
|
||||
orig = (struct buffer_tstamps) {
|
||||
.buf_pts = 100,.buf_dts = 105,.avtp_ts = 112,.h264_ts = 110};
|
||||
.buf_pts = 100,.buf_dts = 105,.avtp_ts = 112,.h264_ts = 110
|
||||
};
|
||||
expected = (struct buffer_tstamps) {
|
||||
.buf_pts = 100,.buf_dts = 105,.avtp_ts = 112,.h264_ts = 110};
|
||||
.buf_pts = 100,.buf_dts = 105,.avtp_ts = 112,.h264_ts = 110
|
||||
};
|
||||
test_crf_tstamps (h, buf, &orig, &expected);
|
||||
|
||||
gst_buffer_unref (buf);
|
||||
|
|
|
@ -194,7 +194,7 @@ push_vbuffers (gpointer data)
|
|||
fail_unless (gst_pad_chain (pad, buf) == GST_FLOW_OK);
|
||||
|
||||
if (timestamp == 2 * GST_SECOND && e->switch_after_2s != DO_NOT_SWITCH) {
|
||||
g_object_set (e->element, "recording", ! !e->switch_after_2s, NULL);
|
||||
g_object_set (e->element, "recording", !!e->switch_after_2s, NULL);
|
||||
}
|
||||
}
|
||||
gst_pad_send_event (pad, gst_event_new_eos ());
|
||||
|
|
|
@ -596,7 +596,8 @@ GST_START_TEST (test_kate_encode_keepalives)
|
|||
{
|
||||
0.5, n_keepalives}, {
|
||||
2.0, n_keepalives / 2}, {
|
||||
5.0, n_keepalives / 5},};
|
||||
5.0, n_keepalives / 5},
|
||||
};
|
||||
|
||||
for (round = 0; round < 3; ++round) {
|
||||
kateenc = setup_kateenc ();
|
||||
|
|
|
@ -293,7 +293,7 @@ test_play_audio_video_eos_cb (GstPlay * player, TestPlayerStateChange change,
|
|||
gint step = GPOINTER_TO_INT (new_state->test_data);
|
||||
gboolean video;
|
||||
|
||||
video = ! !(step & 0x10);
|
||||
video = !!(step & 0x10);
|
||||
step = (step & (~0x10));
|
||||
|
||||
switch (step) {
|
||||
|
|
|
@ -548,9 +548,9 @@ create_source (TestFeatures features, int fdina, int fdouta, int fdinv,
|
|||
int fdoutv, test_data * td)
|
||||
{
|
||||
GstElement *pipeline = NULL;
|
||||
gboolean live = ! !(features & TEST_FEATURE_LIVE);
|
||||
gboolean longdur = ! !(features & TEST_FEATURE_LONG_DURATION);
|
||||
gboolean has_video = ! !(features & TEST_FEATURE_HAS_VIDEO);
|
||||
gboolean live = !!(features & TEST_FEATURE_LIVE);
|
||||
gboolean longdur = !!(features & TEST_FEATURE_LONG_DURATION);
|
||||
gboolean has_video = !!(features & TEST_FEATURE_HAS_VIDEO);
|
||||
|
||||
if (features & TEST_FEATURE_TEST_SOURCE) {
|
||||
|
||||
|
@ -874,7 +874,7 @@ test_base (const char *name, TestFeatures features,
|
|||
if (pid) {
|
||||
die_on_child_death ();
|
||||
}
|
||||
c_src = ! !pid;
|
||||
c_src = !!pid;
|
||||
c_sink = !pid;
|
||||
} else {
|
||||
c_src = TRUE;
|
||||
|
@ -5020,7 +5020,7 @@ dynamic_pipeline_change_stress_source_blocked_switch_av (GstPad * pad,
|
|||
|
||||
g_mutex_lock (&d->mutex);
|
||||
switch_av (td->p, gst_element_get_name (source),
|
||||
! !(td->features & TEST_FEATURE_LIVE), TRUE);
|
||||
!!(td->features & TEST_FEATURE_LIVE), TRUE);
|
||||
g_mutex_unlock (&d->mutex);
|
||||
|
||||
g_idle_add_full (G_PRIORITY_HIGH, remove_source, source, g_object_unref);
|
||||
|
@ -5093,7 +5093,7 @@ dynamic_pipeline_change_stress_source_blocked_change_audio_channel (GstPad *
|
|||
|
||||
g_mutex_lock (&d->mutex);
|
||||
change_audio_channel (td->p, gst_element_get_name (source),
|
||||
ipcpipelinesink_name, ! !(td->features & TEST_FEATURE_LIVE));
|
||||
ipcpipelinesink_name, !!(td->features & TEST_FEATURE_LIVE));
|
||||
g_mutex_unlock (&d->mutex);
|
||||
|
||||
g_idle_add_full (G_PRIORITY_HIGH, remove_source, source, g_object_unref);
|
||||
|
|
Loading…
Reference in a new issue