#define MEDIA_PACKET_NULL_ARG_CHECK(arg) \
MEDIA_PACKET_CHECK_CONDITION(arg != NULL, MEDIA_PACKET_ERROR_INVALID_PARAMETER, "MEDIA_PACKET_ERROR_INVALID_PARAMETER")
+/**
+ * CLOCK_TIME_NONE: (value 18446744073709551615)
+ *
+ * Constant to define an undefined clock time.
+ */
+#define CLOCK_TIME_NONE ((uint64_t) -1)
+
/**
* @brief Gets pts of media_packet_h
* @since_tizen 2.3
/* skip validating pkt */
size_t buffersize = 0;
+ /* initialize packet */
+ pkt->pts = CLOCK_TIME_NONE;
+ pkt->dts = CLOCK_TIME_NONE;
+ pkt->duration = CLOCK_TIME_NONE;
+
if (pkt->type == MEDIA_BUFFER_TYPE_NORMAL) {
/* need to use format,width,height to get buffer size */
if (MEDIA_FORMAT_IS_VIDEO(pkt->format))
}
}
+
return MEDIA_PACKET_ERROR_NONE;
}
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
static size_t _pkt_calculate_video_buffer_size(media_packet_s *pkt)
{
- int size, w2, h2, size2;
- int stride, stride2;
+ int stride = 0;
int width = 0;
int height = 0;
size_t buffersize = 0;