DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
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 277 of file h265_parser.h.

Member Function Documentation

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 630 of file h265_parser.cc.

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 634 of file h265_parser.cc.

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 404 of file h265_parser.cc.

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 187 of file h265_parser.cc.

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 513 of file h265_parser.cc.


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