Shaka Packager SDK
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)
 
const H265PpsGetPps (int pps_id)
 
const H265SpsGetSps (int sps_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 293 of file h265_parser.h.

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 645 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 649 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 420 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 202 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 528 of file h265_parser.cc.


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