mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-14 03:15:47 +00:00
gst-plugins-good: 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
8759b77a50
commit
0fc568c6b1
40 changed files with 490 additions and 479 deletions
|
@ -96,7 +96,7 @@ GST_DEBUG_CATEGORY_STATIC (flacdec_debug);
|
|||
|
||||
static FLAC__StreamDecoderReadStatus
|
||||
gst_flac_dec_read_stream (const FLAC__StreamDecoder * decoder,
|
||||
FLAC__byte buffer[], size_t * bytes, void *client_data);
|
||||
FLAC__byte buffer[], size_t *bytes, void *client_data);
|
||||
static FLAC__StreamDecoderWriteStatus
|
||||
gst_flac_dec_write_stream (const FLAC__StreamDecoder * decoder,
|
||||
const FLAC__Frame * frame,
|
||||
|
@ -387,7 +387,7 @@ gst_flac_dec_scan_got_frame (GstFlacDec * flacdec, const guint8 * data,
|
|||
if (data[0] != 0xFF || (data[1] & 0xFC) != 0xF8)
|
||||
return FALSE;
|
||||
|
||||
vbs = ! !(data[1] & 1); /* variable blocksize */
|
||||
vbs = !!(data[1] & 1); /* variable blocksize */
|
||||
bs = (data[2] & 0xF0) >> 4; /* blocksize marker */
|
||||
sr = (data[2] & 0x0F); /* samplerate marker */
|
||||
ca = (data[3] & 0xF0) >> 4; /* channel assignment */
|
||||
|
@ -567,7 +567,7 @@ gst_flac_dec_error_cb (const FLAC__StreamDecoder * d,
|
|||
|
||||
static FLAC__StreamDecoderReadStatus
|
||||
gst_flac_dec_read_stream (const FLAC__StreamDecoder * decoder,
|
||||
FLAC__byte buffer[], size_t * bytes, void *client_data)
|
||||
FLAC__byte buffer[], size_t *bytes, void *client_data)
|
||||
{
|
||||
GstFlacDec *dec = GST_FLAC_DEC (client_data);
|
||||
guint len;
|
||||
|
|
|
@ -405,7 +405,7 @@ gst_gtk_base_sink_start_on_main (GstBaseSink * bsink)
|
|||
static gboolean
|
||||
gst_gtk_base_sink_start (GstBaseSink * bsink)
|
||||
{
|
||||
return ! !gst_gtk_invoke_on_main ((GThreadFunc)
|
||||
return !!gst_gtk_invoke_on_main ((GThreadFunc)
|
||||
gst_gtk_base_sink_start_on_main, bsink);
|
||||
}
|
||||
|
||||
|
@ -429,7 +429,7 @@ gst_gtk_base_sink_stop (GstBaseSink * bsink)
|
|||
GstGtkBaseSink *gst_sink = GST_GTK_BASE_SINK (bsink);
|
||||
|
||||
if (gst_sink->window)
|
||||
return ! !gst_gtk_invoke_on_main ((GThreadFunc)
|
||||
return !!gst_gtk_invoke_on_main ((GThreadFunc)
|
||||
gst_gtk_base_sink_stop_on_main, bsink);
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -234,20 +234,20 @@ gst_jpeg_dec_term_source (j_decompress_ptr cinfo)
|
|||
}
|
||||
|
||||
METHODDEF (void)
|
||||
gst_jpeg_dec_my_output_message (j_common_ptr cinfo)
|
||||
gst_jpeg_dec_my_output_message (j_common_ptr cinfo)
|
||||
{
|
||||
return; /* do nothing */
|
||||
}
|
||||
|
||||
METHODDEF (void)
|
||||
gst_jpeg_dec_my_emit_message (j_common_ptr cinfo, int msg_level)
|
||||
gst_jpeg_dec_my_emit_message (j_common_ptr cinfo, int msg_level)
|
||||
{
|
||||
/* GST_LOG_OBJECT (CINFO_GET_JPEGDEC (&cinfo), "msg_level=%d", msg_level); */
|
||||
return;
|
||||
}
|
||||
|
||||
METHODDEF (void)
|
||||
gst_jpeg_dec_my_error_exit (j_common_ptr cinfo)
|
||||
gst_jpeg_dec_my_error_exit (j_common_ptr cinfo)
|
||||
{
|
||||
struct GstJpegDecErrorMgr *err_mgr = (struct GstJpegDecErrorMgr *) cinfo->err;
|
||||
|
||||
|
|
|
@ -1567,7 +1567,7 @@ gst_pulseringbuffer_commit (GstAudioRingBuffer * buf, guint64 * sample,
|
|||
goto fake_done;
|
||||
}
|
||||
|
||||
if (pbuf->m_writable == (size_t) - 1)
|
||||
if (pbuf->m_writable == (size_t) -1)
|
||||
goto writable_size_failed;
|
||||
|
||||
pbuf->m_writable /= bpf;
|
||||
|
|
|
@ -1638,7 +1638,7 @@ gst_pulsesrc_success_cb (pa_stream * s, int success, void *userdata)
|
|||
{
|
||||
GstPulseSrc *pulsesrc = GST_PULSESRC_CAST (userdata);
|
||||
|
||||
pulsesrc->operation_success = ! !success;
|
||||
pulsesrc->operation_success = !!success;
|
||||
pa_threaded_mainloop_signal (pulsesrc->mainloop, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -47,7 +47,8 @@ static const struct
|
|||
GST_AUDIO_CHANNEL_POSITION_REAR_LEFT, PA_CHANNEL_POSITION_REAR_LEFT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT, PA_CHANNEL_POSITION_REAR_RIGHT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_LFE1, PA_CHANNEL_POSITION_LFE}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER, PA_CHANNEL_POSITION_FRONT_CENTER}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER,
|
||||
PA_CHANNEL_POSITION_FRONT_CENTER}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER,
|
||||
PA_CHANNEL_POSITION_FRONT_LEFT_OF_CENTER}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT_OF_CENTER,
|
||||
|
@ -61,7 +62,8 @@ static const struct
|
|||
PA_CHANNEL_POSITION_TOP_FRONT_RIGHT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_TOP_FRONT_CENTER,
|
||||
PA_CHANNEL_POSITION_TOP_FRONT_CENTER}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT, PA_CHANNEL_POSITION_TOP_REAR_LEFT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_TOP_REAR_LEFT,
|
||||
PA_CHANNEL_POSITION_TOP_REAR_LEFT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_TOP_REAR_RIGHT,
|
||||
PA_CHANNEL_POSITION_TOP_REAR_RIGHT}, {
|
||||
GST_AUDIO_CHANNEL_POSITION_TOP_REAR_CENTER,
|
||||
|
|
|
@ -375,7 +375,7 @@ gst_alpha_set_property (GObject * object, guint prop_id,
|
|||
case PROP_PREFER_PASSTHROUGH:{
|
||||
gboolean prefer_passthrough = g_value_get_boolean (value);
|
||||
|
||||
reconfigure = ((! !prefer_passthrough) != (! !alpha->prefer_passthrough))
|
||||
reconfigure = ((!!prefer_passthrough) != (!!alpha->prefer_passthrough))
|
||||
&& (alpha->method == ALPHA_METHOD_SET) && (alpha->alpha == 1.0);
|
||||
alpha->prefer_passthrough = prefer_passthrough;
|
||||
break;
|
||||
|
|
|
@ -329,7 +329,8 @@ gst_audio_amplify_process_function (gint clipping, GstAudioFormat format)
|
|||
GstAudioAmplifyProcessFunc func;
|
||||
} process[] = {
|
||||
{
|
||||
GST_AUDIO_FORMAT_F32, METHOD_CLIP, gst_audio_amplify_transform_gfloat_clip}, {
|
||||
GST_AUDIO_FORMAT_F32, METHOD_CLIP,
|
||||
gst_audio_amplify_transform_gfloat_clip}, {
|
||||
GST_AUDIO_FORMAT_F32, METHOD_WRAP_NEGATIVE,
|
||||
gst_audio_amplify_transform_gfloat_wrap_negative}, {
|
||||
GST_AUDIO_FORMAT_F32, METHOD_WRAP_POSITIVE,
|
||||
|
@ -344,21 +345,24 @@ gst_audio_amplify_process_function (gint clipping, GstAudioFormat format)
|
|||
gst_audio_amplify_transform_gdouble_wrap_positive}, {
|
||||
GST_AUDIO_FORMAT_F64, METHOD_NOCLIP,
|
||||
gst_audio_amplify_transform_gdouble_noclip}, {
|
||||
GST_AUDIO_FORMAT_S8, METHOD_CLIP, gst_audio_amplify_transform_gint8_clip}, {
|
||||
GST_AUDIO_FORMAT_S8, METHOD_CLIP,
|
||||
gst_audio_amplify_transform_gint8_clip}, {
|
||||
GST_AUDIO_FORMAT_S8, METHOD_WRAP_NEGATIVE,
|
||||
gst_audio_amplify_transform_gint8_wrap_negative}, {
|
||||
GST_AUDIO_FORMAT_S8, METHOD_WRAP_POSITIVE,
|
||||
gst_audio_amplify_transform_gint8_wrap_positive}, {
|
||||
GST_AUDIO_FORMAT_S8, METHOD_NOCLIP,
|
||||
gst_audio_amplify_transform_gint8_noclip}, {
|
||||
GST_AUDIO_FORMAT_S16, METHOD_CLIP, gst_audio_amplify_transform_gint16_clip}, {
|
||||
GST_AUDIO_FORMAT_S16, METHOD_CLIP,
|
||||
gst_audio_amplify_transform_gint16_clip}, {
|
||||
GST_AUDIO_FORMAT_S16, METHOD_WRAP_NEGATIVE,
|
||||
gst_audio_amplify_transform_gint16_wrap_negative}, {
|
||||
GST_AUDIO_FORMAT_S16, METHOD_WRAP_POSITIVE,
|
||||
gst_audio_amplify_transform_gint16_wrap_positive}, {
|
||||
GST_AUDIO_FORMAT_S16, METHOD_NOCLIP,
|
||||
gst_audio_amplify_transform_gint16_noclip}, {
|
||||
GST_AUDIO_FORMAT_S32, METHOD_CLIP, gst_audio_amplify_transform_gint32_clip}, {
|
||||
GST_AUDIO_FORMAT_S32, METHOD_CLIP,
|
||||
gst_audio_amplify_transform_gint32_clip}, {
|
||||
GST_AUDIO_FORMAT_S32, METHOD_WRAP_NEGATIVE,
|
||||
gst_audio_amplify_transform_gint32_wrap_negative}, {
|
||||
GST_AUDIO_FORMAT_S32, METHOD_WRAP_POSITIVE,
|
||||
|
|
|
@ -602,7 +602,7 @@ gst_scaletempo_sink_event (GstBaseTransform * trans, GstEvent * event)
|
|||
|
||||
if (segment.format != GST_FORMAT_TIME
|
||||
|| scaletempo->scale != ABS (segment.rate)
|
||||
|| ! !scaletempo->reverse != ! !(segment.rate < 0.0)) {
|
||||
|| !!scaletempo->reverse != !!(segment.rate < 0.0)) {
|
||||
if (segment.format != GST_FORMAT_TIME || ABS (segment.rate - 1.0) < 1e-10) {
|
||||
scaletempo->scale = 1.0;
|
||||
gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (scaletempo),
|
||||
|
|
|
@ -4488,9 +4488,9 @@ gst_avi_demux_do_seek (GstAviDemux * avi, GstSegment * segment,
|
|||
gboolean next;
|
||||
|
||||
seek_time = segment->position;
|
||||
keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
before = !!(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = !!(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
|
||||
GST_DEBUG_OBJECT (avi, "seek to: %" GST_TIME_FORMAT
|
||||
" keyframe seeking:%d, %s", GST_TIME_ARGS (seek_time), keyframe,
|
||||
|
@ -4763,10 +4763,10 @@ avi_demux_handle_seek_push (GstAviDemux * avi, GstPad * pad, GstEvent * event)
|
|||
gst_segment_do_seek (&seeksegment, rate, format, flags,
|
||||
cur_type, cur, stop_type, stop, &update);
|
||||
|
||||
keyframe = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
keyframe = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
cur = seeksegment.position;
|
||||
before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
before = !!(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = !!(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
|
||||
GST_DEBUG_OBJECT (avi,
|
||||
"Seek requested: ts %" GST_TIME_FORMAT " stop %" GST_TIME_FORMAT
|
||||
|
|
|
@ -2377,8 +2377,10 @@ gst_deinterlace_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);
|
||||
|
|
|
@ -152,11 +152,11 @@ gst_flv_demux_parse_and_add_index_entry (GstFlvDemux * demux, GstClockTime ts,
|
|||
gboolean key;
|
||||
|
||||
gst_index_entry_assoc_map (entry, GST_FORMAT_TIME, &time);
|
||||
key = ! !(GST_INDEX_ASSOC_FLAGS (entry) & GST_ASSOCIATION_FLAG_KEY_UNIT);
|
||||
key = !!(GST_INDEX_ASSOC_FLAGS (entry) & GST_ASSOCIATION_FLAG_KEY_UNIT);
|
||||
GST_LOG_OBJECT (demux, "position already mapped to time %" GST_TIME_FORMAT
|
||||
", keyframe %d", GST_TIME_ARGS (time), key);
|
||||
/* there is not really a way to delete the existing one */
|
||||
if (time != ts || key != ! !keyframe)
|
||||
if (time != ts || key != !!keyframe)
|
||||
GST_DEBUG_OBJECT (demux, "metadata mismatch");
|
||||
#endif
|
||||
gst_object_unref (index);
|
||||
|
@ -1913,7 +1913,7 @@ beach:
|
|||
|
||||
static GstClockTime
|
||||
gst_flv_demux_parse_tag_timestamp (GstFlvDemux * demux, gboolean index,
|
||||
GstBuffer * buffer, size_t * tag_size)
|
||||
GstBuffer * buffer, size_t *tag_size)
|
||||
{
|
||||
guint32 dts = 0, dts_ext = 0;
|
||||
guint32 tag_data_size;
|
||||
|
@ -3014,7 +3014,7 @@ flv_demux_handle_seek_push (GstFlvDemux * demux, GstEvent * event)
|
|||
if (format != GST_FORMAT_TIME)
|
||||
goto wrong_format;
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
|
||||
/* Work on a copy until we are sure the seek succeeded. */
|
||||
memcpy (&seeksegment, &demux->segment, sizeof (GstSegment));
|
||||
|
@ -3185,7 +3185,7 @@ gst_flv_demux_handle_seek_pull (GstFlvDemux * demux, GstEvent * event,
|
|||
demux->seeking = seeking;
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
|
||||
if (flush) {
|
||||
/* Flush start up and downstream to make sure data flow and loops are
|
||||
|
|
|
@ -126,7 +126,6 @@ zoom_filter_mmx (int prevX, int prevY,
|
|||
"psrlw $8, %%mm0 \n\t"
|
||||
"packuswb %%mm7, %%mm0 \n\t" "movd %%mm0,%0 \n\t":"=g" (expix2[loop])
|
||||
:"r" (pos), "r" (coeffs), "r" (expix1)
|
||||
|
||||
);
|
||||
|
||||
emms ();
|
||||
|
|
|
@ -696,7 +696,7 @@ gst_image_freeze_src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
&stop_type, &stop);
|
||||
gst_event_unref (event);
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
|
||||
if (format != GST_FORMAT_TIME && format != GST_FORMAT_DEFAULT) {
|
||||
GST_ERROR_OBJECT (pad, "Seek in invalid format: %s",
|
||||
|
|
|
@ -1405,8 +1405,8 @@ gst_qtdemux_perform_seek (GstQTDemux * qtdemux, GstSegment * segment,
|
|||
gint64 min_offset;
|
||||
gboolean next, before, after;
|
||||
|
||||
before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
before = !!(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
after = !!(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
next = after && !before;
|
||||
if (segment->rate < 0)
|
||||
next = !next;
|
||||
|
@ -1486,8 +1486,8 @@ gst_qtdemux_do_seek (GstQTDemux * qtdemux, GstPad * pad, GstEvent * event)
|
|||
|
||||
GST_DEBUG_OBJECT (qtdemux, "seek format %s", gst_format_get_name (format));
|
||||
|
||||
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 */
|
||||
|
@ -1634,7 +1634,7 @@ gst_qtdemux_handle_src_event (GstPad * pad, GstObject * parent,
|
|||
|
||||
gst_event_parse_seek (event, NULL, &seek_format, &flags, NULL, NULL, NULL,
|
||||
NULL);
|
||||
instant_rate_change = ! !(flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE);
|
||||
instant_rate_change = !!(flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE);
|
||||
|
||||
if (seqnum == qtdemux->segment_seqnum) {
|
||||
GST_LOG_OBJECT (pad,
|
||||
|
@ -9569,7 +9569,7 @@ qtdemux_stbl_init (GstQTDemux * qtdemux, QtDemuxStream * stream, GNode * stbl)
|
|||
/* sync sample atom */
|
||||
stream->stps_present = FALSE;
|
||||
if ((stream->stss_present =
|
||||
! !qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stss,
|
||||
!!qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stss,
|
||||
&stream->stss) ? TRUE : FALSE) == TRUE) {
|
||||
/* copy atom data into a new buffer for later use */
|
||||
stream->stss.data = g_memdup2 (stream->stss.data, stream->stss.size);
|
||||
|
@ -9587,7 +9587,7 @@ qtdemux_stbl_init (GstQTDemux * qtdemux, QtDemuxStream * stream, GNode * stbl)
|
|||
|
||||
/* partial sync sample atom */
|
||||
if ((stream->stps_present =
|
||||
! !qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stps,
|
||||
!!qtdemux_tree_get_child_by_type_full (stbl, FOURCC_stps,
|
||||
&stream->stps) ? TRUE : FALSE) == TRUE) {
|
||||
/* copy atom data into a new buffer for later use */
|
||||
stream->stps.data = g_memdup2 (stream->stps.data, stream->stps.size);
|
||||
|
@ -9687,7 +9687,7 @@ qtdemux_stbl_init (GstQTDemux * qtdemux, QtDemuxStream * stream, GNode * stbl)
|
|||
|
||||
/* composition time-to-sample */
|
||||
if ((stream->ctts_present =
|
||||
! !qtdemux_tree_get_child_by_type_full (stbl, FOURCC_ctts,
|
||||
!!qtdemux_tree_get_child_by_type_full (stbl, FOURCC_ctts,
|
||||
&stream->ctts) ? TRUE : FALSE) == TRUE) {
|
||||
GstByteReader cslg = GST_BYTE_READER_INIT (NULL, 0);
|
||||
guint8 ctts_version;
|
||||
|
|
|
@ -844,7 +844,8 @@ static const struct
|
|||
FOURCC_yrrc, GST_TAG_DATE, NULL, qtdemux_tag_add_year}, {
|
||||
FOURCC__too, GST_TAG_ENCODER, NULL, qtdemux_tag_add_str}, {
|
||||
FOURCC__inf, GST_TAG_COMMENT, NULL, qtdemux_tag_add_str}, {
|
||||
FOURCC_trkn, GST_TAG_TRACK_NUMBER, GST_TAG_TRACK_COUNT, qtdemux_tag_add_num}, {
|
||||
FOURCC_trkn, GST_TAG_TRACK_NUMBER, GST_TAG_TRACK_COUNT,
|
||||
qtdemux_tag_add_num}, {
|
||||
FOURCC_disk, GST_TAG_ALBUM_VOLUME_NUMBER, GST_TAG_ALBUM_VOLUME_COUNT,
|
||||
qtdemux_tag_add_num}, {
|
||||
FOURCC_disc, GST_TAG_ALBUM_VOLUME_NUMBER, GST_TAG_ALBUM_VOLUME_COUNT,
|
||||
|
|
|
@ -2808,12 +2808,12 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
|||
|
||||
GST_DEBUG_OBJECT (demux, "configuring seek");
|
||||
|
||||
flush = ! !(flags & GST_SEEK_FLAG_FLUSH);
|
||||
keyunit = ! !(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
after = ! !(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
before = ! !(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
accurate = ! !(flags & GST_SEEK_FLAG_ACCURATE);
|
||||
instant_rate_change = ! !(flags & GST_SEEK_FLAG_INSTANT_RATE_CHANGE);
|
||||
flush = !!(flags & GST_SEEK_FLAG_FLUSH);
|
||||
keyunit = !!(flags & GST_SEEK_FLAG_KEY_UNIT);
|
||||
after = !!(flags & GST_SEEK_FLAG_SNAP_AFTER);
|
||||
before = !!(flags & GST_SEEK_FLAG_SNAP_BEFORE);
|
||||
accurate = !!(flags & GST_SEEK_FLAG_ACCURATE);
|
||||
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 */
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
__declspec (align (16))
|
||||
const unsigned char vp8_norm[256] = {
|
||||
#else
|
||||
const unsigned char vp8_norm[256] __attribute__ ((aligned (16))) = {
|
||||
const unsigned char vp8_norm[256] __attribute__((aligned (16))) = {
|
||||
#endif
|
||||
0, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
0, 7, 6, 6, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4,
|
||||
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
||||
|
@ -31,7 +31,8 @@ const unsigned char vp8_norm[256] __attribute__ ((aligned (16))) = {
|
|||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
int
|
||||
vp8dx_start_decode (BOOL_DECODER * br,
|
||||
|
|
|
@ -318,7 +318,7 @@ gst_rtp_h263_depay_process (GstRTPBaseDepayload * depayload, GstRTPBuffer * rtp)
|
|||
if (payload_len > 4 && (GST_READ_UINT32_BE (payload) >> 10 == 0x20)) {
|
||||
GST_DEBUG ("Mode %c with PSC => frame start", "ABC"[F + P]);
|
||||
rtph263depay->start = TRUE;
|
||||
if ((! !(payload[4] & 0x02)) != I) {
|
||||
if ((!!(payload[4] & 0x02)) != I) {
|
||||
GST_DEBUG ("Wrong Picture Coding Type Flag in rtp header");
|
||||
I = !I;
|
||||
}
|
||||
|
|
|
@ -682,8 +682,8 @@ gst_rtp_mpa_robust_depay_process (GstRTPBaseDepayload * depayload,
|
|||
*/
|
||||
while (payload_len) {
|
||||
if (G_LIKELY (rtpmpadepay->has_descriptor)) {
|
||||
cont = ! !(payload[offset] & 0x80);
|
||||
dtype = ! !(payload[offset] & 0x40);
|
||||
cont = !!(payload[offset] & 0x80);
|
||||
dtype = !!(payload[offset] & 0x40);
|
||||
if (dtype) {
|
||||
size = (payload[offset] & 0x3f) << 8 | payload[offset + 1];
|
||||
payload_len--;
|
||||
|
|
|
@ -2970,7 +2970,7 @@ gst_rtspsrc_perform_seek (GstRTSPSrc * src, GstEvent * event)
|
|||
|
||||
/* If an accurate seek was requested, we want to clip the segment we
|
||||
* output in ONVIF mode to the requested bounds */
|
||||
src->clip_out_segment = ! !(flags & GST_SEEK_FLAG_ACCURATE);
|
||||
src->clip_out_segment = !!(flags & GST_SEEK_FLAG_ACCURATE);
|
||||
src->seek_seqnum = gst_event_get_seqnum (event);
|
||||
|
||||
/* prepare for streaming again */
|
||||
|
|
|
@ -224,7 +224,6 @@ GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|||
videotemplate,
|
||||
"Template for a video filter",
|
||||
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|
||||
|
||||
static void gst_videotemplate_setup (GstVideofilter * videofilter)
|
||||
{
|
||||
GstVideotemplate *videotemplate;
|
||||
|
|
|
@ -477,7 +477,7 @@ gst_oss4_sink_open (GstAudioSink * asink, gboolean silent_errors)
|
|||
|
||||
if (ioctl (oss->fd, SNDCTL_DSP_GET_PLAYTGT_NAMES, &routings) != -1) {
|
||||
GST_LOG_OBJECT (oss, "%u output routings (static list: %d)",
|
||||
routings.nvalues, ! !(routings.version == 0));
|
||||
routings.nvalues, !!(routings.version == 0));
|
||||
for (i = 0; i < routings.nvalues; ++i) {
|
||||
GST_LOG_OBJECT (oss, " output routing %d: %s", i,
|
||||
&routings.strings[routings.strindex[i]]);
|
||||
|
|
|
@ -4380,7 +4380,7 @@ unsupported_format:
|
|||
* Returns: %TRUE on success, %FALSE on failure.
|
||||
*/
|
||||
gboolean
|
||||
gst_v4l2_object_set_crop (GstV4l2Object * obj, struct v4l2_rect * crop_rect)
|
||||
gst_v4l2_object_set_crop (GstV4l2Object * obj, struct v4l2_rect *crop_rect)
|
||||
{
|
||||
struct v4l2_selection sel = { 0 };
|
||||
struct v4l2_crop crop = { 0 };
|
||||
|
@ -4503,14 +4503,13 @@ gst_v4l2_object_get_crop_rect (GstV4l2Object * obj, guint target,
|
|||
}
|
||||
|
||||
gboolean
|
||||
gst_v4l2_object_get_crop_bounds (GstV4l2Object * obj, struct v4l2_rect * result)
|
||||
gst_v4l2_object_get_crop_bounds (GstV4l2Object * obj, struct v4l2_rect *result)
|
||||
{
|
||||
return gst_v4l2_object_get_crop_rect (obj, V4L2_SEL_TGT_CROP_BOUNDS, result);
|
||||
}
|
||||
|
||||
gboolean
|
||||
gst_v4l2_object_get_crop_default (GstV4l2Object * obj,
|
||||
struct v4l2_rect * result)
|
||||
gst_v4l2_object_get_crop_default (GstV4l2Object * obj, struct v4l2_rect *result)
|
||||
{
|
||||
return gst_v4l2_object_get_crop_rect (obj, V4L2_SEL_TGT_CROP_DEFAULT, result);
|
||||
}
|
||||
|
|
|
@ -429,7 +429,8 @@ gst_v4l2_transform_fixate_caps (GstBaseTransform * trans,
|
|||
GstStructure *ins, *outs;
|
||||
const GValue *from_par, *to_par;
|
||||
GValue fpar = { 0, }, tpar = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
othercaps = gst_caps_truncate (othercaps);
|
||||
othercaps = gst_caps_make_writable (othercaps);
|
||||
|
|
|
@ -1143,7 +1143,7 @@ input_failed:
|
|||
}
|
||||
|
||||
gboolean
|
||||
gst_v4l2_query_input (GstV4l2Object * obj, struct v4l2_input * input)
|
||||
gst_v4l2_query_input (GstV4l2Object * obj, struct v4l2_input *input)
|
||||
{
|
||||
gint ret;
|
||||
|
||||
|
@ -1274,7 +1274,7 @@ failed:
|
|||
}
|
||||
|
||||
gboolean
|
||||
gst_v4l2_dequeue_event (GstV4l2Object * v4l2object, struct v4l2_event * event)
|
||||
gst_v4l2_dequeue_event (GstV4l2Object * v4l2object, struct v4l2_event *event)
|
||||
{
|
||||
gint ret;
|
||||
|
||||
|
@ -1297,7 +1297,7 @@ gst_v4l2_dequeue_event (GstV4l2Object * v4l2object, struct v4l2_event * event)
|
|||
|
||||
gboolean
|
||||
gst_v4l2_set_dv_timings (GstV4l2Object * v4l2object,
|
||||
struct v4l2_dv_timings * timings)
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
gint ret;
|
||||
|
||||
|
@ -1317,7 +1317,7 @@ gst_v4l2_set_dv_timings (GstV4l2Object * v4l2object,
|
|||
|
||||
gboolean
|
||||
gst_v4l2_query_dv_timings (GstV4l2Object * v4l2object,
|
||||
struct v4l2_dv_timings * timings)
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
gint ret;
|
||||
|
||||
|
|
|
@ -295,7 +295,7 @@ check_rtp_buffer (GstClockTime ts, GstClockTime duration, gboolean start,
|
|||
|
||||
fail_unless (payload[0] == number);
|
||||
fail_unless ((payload[1] & 0x7F) == volume);
|
||||
fail_unless (! !(payload[1] & 0x80) == end);
|
||||
fail_unless (!!(payload[1] & 0x80) == end);
|
||||
fail_unless (GST_READ_UINT16_BE (payload + 2) == rtpduration);
|
||||
|
||||
gst_rtp_buffer_unmap (&rtpbuffer);
|
||||
|
|
|
@ -142,7 +142,8 @@ check_filter_varargs (const gchar * name, GstEvent * event, gint num_buffers,
|
|||
} resolutions[] = { {
|
||||
384, 288}, {
|
||||
385, 289}, {
|
||||
385, 385}};
|
||||
385, 385}
|
||||
};
|
||||
gint i, n, r;
|
||||
gint size;
|
||||
GstCaps *allcaps, *templ = gst_caps_from_string (VIDEO_CAPS_TEMPLATE_STRING);
|
||||
|
|
|
@ -242,7 +242,8 @@ configure_vp8ts (GstHarness * h)
|
|||
GValueArray *layer_ids = g_value_array_new (4);
|
||||
GValueArray *bitrates = g_value_array_new (3);
|
||||
GValue ival = { 0, }, bval = {
|
||||
0,};
|
||||
0,
|
||||
};
|
||||
|
||||
gst_value_array_init (&layer_sync_flags, 8);
|
||||
|
||||
|
@ -347,7 +348,8 @@ GST_START_TEST (test_encode_temporally_scaled)
|
|||
FALSE, 0, 4, FALSE}, {
|
||||
FALSE, 2, 4, TRUE}, {
|
||||
FALSE, 1, 4, FALSE}, {
|
||||
FALSE, 2, 4, TRUE},};
|
||||
FALSE, 2, 4, TRUE},
|
||||
};
|
||||
GstHarness *h = gst_harness_new ("vp8enc");
|
||||
gst_harness_set_src_caps (h, gst_caps_new_i420 (320, 240));
|
||||
configure_vp8ts (h);
|
||||
|
|
Loading…
Reference in a new issue