Permalink
Browse files

Use h264bitstream library to mixup the SPS so OS X will use hardware …

…decoding
1 parent 83ba8a1 commit 36e76ed86d35fa67dc26356c65992f1e9c0615b1 @cgutman cgutman committed Feb 21, 2016
Showing with 4,716 additions and 3 deletions.
  1. +3 −1 Makefile
  2. +8 −0 h264bitstream.mk
  3. +504 −0 h264bitstream/LICENSE
  4. +388 −0 h264bitstream/bs.h
  5. +294 −0 h264bitstream/h264_nal.c
  6. +86 −0 h264bitstream/h264_sei.c
  7. +74 −0 h264bitstream/h264_sei.h
  8. +2,788 −0 h264bitstream/h264_stream.c
  9. +544 −0 h264bitstream/h264_stream.h
  10. +27 −2 viddec.cpp
View
@@ -5,8 +5,9 @@ TARGET = moonlight-chrome
# Include library makefiles
include common-c.mk
include opus.mk
+include h264bitstream.mk
-EXTRA_INC_PATHS := $(EXTRA_INC_PATHS) $(COMMON_C_INCLUDE) $(OPUS_INCLUDE)
+EXTRA_INC_PATHS := $(EXTRA_INC_PATHS) $(COMMON_C_INCLUDE) $(OPUS_INCLUDE) $(H264BS_INCLUDE)
include $(NACL_SDK_ROOT)/tools/common.mk
@@ -21,6 +22,7 @@ CFLAGS = -Wall $(COMMON_C_C_FLAGS) $(OPUS_C_FLAGS)
SOURCES = \
$(OPUS_SOURCE) \
+ $(H264BS_SOURCE) \
$(COMMON_C_SOURCE) \
libchelper.c \
main.cpp \
View
@@ -0,0 +1,8 @@
+H264BS_DIR := h264bitstream
+
+H264BS_SOURCE := \
+ $(H264BS_DIR)/h264_nal.c \
+ $(H264BS_DIR)/h264_sei.c \
+ $(H264BS_DIR)/h264_stream.c \
+
+H264BS_INCLUDE := $(H264BS_DIR)
View
Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 36e76ed

Please sign in to comment.