Include
#include "ILMDVRSink.h"
Syntax
Language | Syntax |
---|---|
C Syntax | HRESULT ILMDVRSink_GetFragmentAlignment(pILMDVRSink, startOffset, endOffset, pAlignedStartOffset, pAlignedEndOffset) |
C++ Syntax | HRESULT GetFragmentAlignment(startOffset, endOffset, pAlignedStartOffset, pAlignedEndOffset) |
Data Type | Description |
---|---|
ILMDVRSink *pILMDVRSink; | pointer to an interface |
double startOffset; | starting byte offset |
double endOffset; | ending byte offset |
double *pAlignedStartOffset; | * pointer storing offset of first transport fragment |
double *pAlignedEndOffset; | * pointer storing offset of last transport fragment |
Summary
Takes the user-supplied byte range and scans for transport fragment boundaries.
Parameters
Parameter | Description |
---|---|
pILMDRSink | Pointer to an ILMDVRSink interface |
startOffset; | Specifies the byte offset at which to begin scanning for transport fragments. |
endOffset; | Specifies the byte offset at which to stop scanning for transport fragments. |
pAlignedStartOffset; | A pointer to a double variable, storing the offset of the start of the first transport fragment found. |
pAlignedEndOffset; | A pointer to a double variable, storing the offset of the end of the last transport fragment. |
Returns
Value | Meaning |
---|---|
S_OK | No error |
S_FALSE | No transport fragment found: pAlignedStartOffset and pAlignedEndOffset are set equal to startOffset, and indicate an empty search. |
Remarks
Use this function along with ILMDVRSink::CopyBufferToFile to save a completely intact MPEG transport fragment.
Set up the MPEG multiplexer used for recording to DVR by calling put_OutputType(Mpg2MxT_OutputType_HLS). Doing so guarantees that fragment boundaries start with synchronization frames. Specify the boundary time interval by calling put_ResyncInterval(intervalTime).
Required DLLs and Libraries
LMDVRSource
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
Win32, x64
Example
For a C++ example, refer to ILMDVRSink::GetFragmentAlignment Example For C++
ILMDVRSink::GetAvailabilityInfo
ILMDVRSink::CopyBufferToFile
ILMDVRSink::GetBufferInfo
Multimedia Function Groups
DVR Function Groups
Introduction to the LEADTOOLS MPEG-2 Transport Module
DVR Component FAQs
LEAD DVR Sink Filter
Accessing the DVR Sink Object
How to Use the DVR Sink Object to Control Capture Buffer Settings (C++)
How to Set DVR Buffer Locations on Multiple Physical Disks (C++)
How to Copy Buffered DVR Data to a New File
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.