added simple depacketizer and test h264 file
This commit is contained in:
parent
8fdc5ad97b
commit
d7a703828a
7 changed files with 165 additions and 0 deletions
23
Limelight-iOS/VideoDecoder.m
Normal file
23
Limelight-iOS/VideoDecoder.m
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
//
|
||||
// VideoDecoder.m
|
||||
// Limelight-iOS
|
||||
//
|
||||
// Created by Diego Waxemberg on 1/18/14.
|
||||
// Copyright (c) 2014 Diego Waxemberg. All rights reserved.
|
||||
//
|
||||
|
||||
#import "VideoDecoder.h"
|
||||
|
||||
@implementation VideoDecoder
|
||||
- (void)decode:(uint8_t *)buffer length:(unsigned int)length
|
||||
{
|
||||
for (int i = 0; i < length; i++) {
|
||||
printf("%02x ", buffer[i]);
|
||||
if (i != 0 && i % 16 == 0) {
|
||||
NSLog(@"");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@end
|
||||
Loading…
Reference in a new issue