int is_delta_frame;
int is_header_included;
} encoded, depth, rgb;
- } data; /**< pointer of captured stream */
- MMCamStreamData data_type; /**< data type */
- unsigned int length_total; /**< total length of stream buffer (in byte)*/
- unsigned int num_planes; /**< number of planes */
- MMPixelFormatType format; /**< image format */
- int width; /**< width of video buffer */
- int height; /**< height of video buffer */
- unsigned int timestamp; /**< timestamp of stream buffer (msec)*/
- void *bo[BUFFER_MAX_PLANE_NUM]; /**< TBM buffer object */
- void *internal_buffer; /**< Internal buffer pointer */
- int stride[BUFFER_MAX_PLANE_NUM]; /**< Stride of each plane */
- int elevation[BUFFER_MAX_PLANE_NUM]; /**< Elevation of each plane */
- int extra_stream_id; /**< ID of extra preview stream */
- int focus_state; /**< Focus state */
- int facing_direction; /**< Facing direction */
- int flip; /**< Flip */
- int rotation; /**< Rotation */
+ } data; /**< pointer of captured stream */
+ MMCamStreamData data_type; /**< data type */
+ unsigned int length_total; /**< total length of stream buffer(byte) */
+ unsigned int num_planes; /**< number of planes */
+ MMPixelFormatType format; /**< image format */
+ int width; /**< width of video buffer */
+ int height; /**< height of video buffer */
+ unsigned int timestamp; /**< timestamp of stream buffer(msec) */
+ void *bo[BUFFER_MAX_PLANE_NUM]; /**< TBM buffer object */
+ void *internal_buffer; /**< Internal buffer pointer */
+ int stride[BUFFER_MAX_PLANE_NUM]; /**< Stride of each plane */
+ int elevation[BUFFER_MAX_PLANE_NUM];/**< Elevation of each plane */
+ int extra_stream_id; /**< ID of extra preview stream */
+ int focus_state; /**< Focus state */
+ int facing_direction; /**< Facing direction */
+ int flip; /**< Flip */
+ int rotation; /**< Rotation */
+ unsigned long long timestamp_nsec; /**< timestamp of stream buffer(nsec) */
} MMCamcorderVideoStreamDataType;
MMCAM_LOG_DEBUG("VideoStreamData : format[%d], resolution[%dx%d], stream_id[%d]",
stream.format, stream.width, stream.height, stream_id);
+ stream.timestamp_nsec = GST_BUFFER_PTS(buffer);
stream.timestamp = (unsigned int)(GST_BUFFER_PTS(buffer) / 1000000); /* nano sec -> milli sec */
stream.extra_stream_id = stream_id;
stream.internal_buffer = buffer;