webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Namespaces | Macros | Typedefs | Functions | Variables
sps_vui_rewriter.cc File Reference
#include "webrtc/common_video/h264/sps_vui_rewriter.h"
#include <algorithm>
#include <memory>
#include "webrtc/base/bitbuffer.h"
#include "webrtc/base/checks.h"
#include "webrtc/base/logging.h"
#include "webrtc/common_video/h264/h264_common.h"
#include "webrtc/common_video/h264/sps_parser.h"

Namespaces

 webrtc
 

Macros

#define RETURN_FALSE_ON_FAIL(x)
 
#define COPY_UINT8(src, dest, tmp)
 
#define COPY_EXP_GOLOMB(src, dest, tmp)
 
#define COPY_BITS(src, dest, tmp, bits)
 

Typedefs

typedef const SpsParser::SpsState & webrtc::Sps
 

Functions

bool webrtc::CopyAndRewriteVui (Sps sps, rtc::BitBuffer *source, rtc::BitBufferWriter *destination, SpsVuiRewriter::ParseResult *out_vui_rewritten)
 
bool webrtc::CopyHrdParameters (rtc::BitBuffer *source, rtc::BitBufferWriter *destination)
 
bool webrtc::AddBitstreamRestriction (rtc::BitBufferWriter *destination, uint32_t max_num_ref_frames)
 
bool webrtc::CopyRemainingBits (rtc::BitBuffer *source, rtc::BitBufferWriter *destination)
 

Variables

const size_t webrtc::kMaxVuiSpsIncrease = 64
 

Macro Definition Documentation

◆ COPY_BITS

#define COPY_BITS (   src,
  dest,
  tmp,
  bits 
)
Value:
do { \
RETURN_FALSE_ON_FAIL((src)->ReadBits(&tmp, bits)); \
if (dest) \
RETURN_FALSE_ON_FAIL((dest)->WriteBits(tmp, bits)); \
} while (0)
OPENSSL_EXPORT ASN1_BIT_STRING * bits
Definition: x509v3.h:532
dest
Definition: upload.py:394
GLenum src
Definition: gl2ext.h:304

◆ COPY_EXP_GOLOMB

#define COPY_EXP_GOLOMB (   src,
  dest,
  tmp 
)
Value:
do { \
RETURN_FALSE_ON_FAIL((src)->ReadExponentialGolomb(&tmp)); \
if (dest) \
RETURN_FALSE_ON_FAIL((dest)->WriteExponentialGolomb(tmp)); \
} while (0)
dest
Definition: upload.py:394
GLenum src
Definition: gl2ext.h:304

◆ COPY_UINT8

#define COPY_UINT8 (   src,
  dest,
  tmp 
)
Value:
do { \
RETURN_FALSE_ON_FAIL((src)->ReadUInt8(&tmp)); \
if (dest) \
RETURN_FALSE_ON_FAIL((dest)->WriteUInt8(tmp)); \
} while (0)
dest
Definition: upload.py:394
GLenum src
Definition: gl2ext.h:304

◆ RETURN_FALSE_ON_FAIL

#define RETURN_FALSE_ON_FAIL (   x)
Value:
if (!(x)) { \
LOG_F(LS_ERROR) << " (line:" << __LINE__ << ") FAILED: " #x; \
return false; \
}
EGLSurface EGLint x
Definition: eglext.h:950
Definition: logging.h:113