Shaka Packager SDK
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
shaka::media::H265Parser Class Reference

#include <h265_parser.h>

Public Types

enum  Result { kOk , kInvalidStream , kUnsupportedStream , kEOStream }
 

Public Member Functions

Result ParseSliceHeader (const Nalu &nalu, H265SliceHeader *slice_header)
 
Result ParsePps (const Nalu &nalu, int *pps_id)
 
Result ParseSps (const Nalu &nalu, int *sps_id)
 
Result ParseVps (const Nalu &nalu, int *vps_id)
 
const H265PpsGetPps (int pps_id)
 
const H265SpsGetSps (int sps_id)
 
const H265VpsGetVps (int vps_id)
 

Detailed Description

A class to parse H.265 streams. This is incomplete and skips many pieces. This will mostly parse PPS and SPS elements as well as fully parse a slice header.

Definition at line 388 of file h265_parser.h.

Member Enumeration Documentation

◆ Result

enum shaka::media::H265Parser::Result

Definition at line 390 of file h265_parser.h.

Constructor & Destructor Documentation

◆ H265Parser()

shaka::media::H265Parser::H265Parser ( )

Definition at line 235 of file h265_parser.cc.

◆ ~H265Parser()

shaka::media::H265Parser::~H265Parser ( )

Definition at line 236 of file h265_parser.cc.

Member Function Documentation

◆ GetPps()

const H265Pps * shaka::media::H265Parser::GetPps ( int  pps_id)
Returns
a pointer to the PPS with the given ID, or NULL if none exists.

Definition at line 1249 of file h265_parser.cc.

◆ GetSps()

const H265Sps * shaka::media::H265Parser::GetSps ( int  sps_id)
Returns
a pointer to the SPS with the given ID, or NULL if none exists.

Definition at line 1253 of file h265_parser.cc.

◆ GetVps()

const H265Vps * shaka::media::H265Parser::GetVps ( int  vps_id)
Returns
a pointer to the VPS with the given ID, or NULL if none exists.

Definition at line 1257 of file h265_parser.cc.

◆ ParsePps()

H265Parser::Result shaka::media::H265Parser::ParsePps ( const Nalu nalu,
int *  pps_id 
)

Parses a PPS element. This object is owned and managed by this class. The unique ID of the parsed PPS is stored in |*pps_id| if kOk is returned.

Definition at line 475 of file h265_parser.cc.

◆ ParseSliceHeader()

H265Parser::Result shaka::media::H265Parser::ParseSliceHeader ( const Nalu nalu,
H265SliceHeader slice_header 
)

Parses a video slice header. If this returns kOk, then |*slice_header| will contain the parsed header; if it returns something else, the contents of |*slice_header| are undefined.

Definition at line 238 of file h265_parser.cc.

◆ ParseSps()

H265Parser::Result shaka::media::H265Parser::ParseSps ( const Nalu nalu,
int *  sps_id 
)

Parses a SPS element. This object is owned and managed by this class. The unique ID of the parsed SPS is stored in |*sps_id| if kOk is returned.

Definition at line 583 of file h265_parser.cc.

◆ ParseVps()

H265Parser::Result shaka::media::H265Parser::ParseVps ( const Nalu nalu,
int *  vps_id 
)

Parses a VPS element. This object is owned and managed by this class. The unique ID of the parsed VPS is stored in |*vps_id| if kOk is returned.

Definition at line 759 of file h265_parser.cc.


The documentation for this class was generated from the following files: