Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
VideoDecodeSession.h File Reference
#include "DVDStreamInfo.h"
#include <memory>
#include <optional>
#include <string>

Classes

struct  VideoDecodeSession
 An open demux-and-decode session on a file's first video stream. More...
 

Functions

std::optional< VideoDecodeSession > OpenVideoDecodeSession (const CFileItem &fileItem, int codecOptions, const std::string &redactPath)
 Open fileItem for decoding: input stream, demuxer with every stream but the first real video one disabled, and a codec for it opened with codecOptions.
 
bool SeekAndDecodePictureAt (CDVDDemux &demuxer, CDVDVideoCodec &codec, int videoStream, int64_t seekToMs, const std::string &redactPath, VideoPicture &picture, int &packetsTried)
 Seek to a position in milliseconds and decode the first usable picture there.
 

Function Documentation

◆ OpenVideoDecodeSession()

std::optional< VideoDecodeSession > OpenVideoDecodeSession ( const CFileItem & fileItem,
int codecOptions,
const std::string & redactPath )

Open fileItem for decoding: input stream, demuxer with every stream but the first real video one disabled, and a codec for it opened with codecOptions.

◆ SeekAndDecodePictureAt()

bool SeekAndDecodePictureAt ( CDVDDemux & demuxer,
CDVDVideoCodec & codec,
int videoStream,
int64_t seekToMs,
const std::string & redactPath,
VideoPicture & picture,
int & packetsTried )

Seek to a position in milliseconds and decode the first usable picture there.