mirror of
https://github.com/jialexd/sdk-ameba-v4.0c_180328.git
synced 2026-07-09 21:15:45 +00:00
first add sdk
This commit is contained in:
commit
f91efd1250
3915 changed files with 1291882 additions and 0 deletions
27
component/common/media/rtp_codec/mjpeg/mjpeg2jpeg.h
Executable file
27
component/common/media/rtp_codec/mjpeg/mjpeg2jpeg.h
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef MJPEG_2_JPEG_H
|
||||
#define MJPEG_2_JPEG_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef AV_RB16
|
||||
# define AV_RB16(x) \
|
||||
((((const char*)(x))[0] << 8) | \
|
||||
((const char*)(x))[1])
|
||||
#endif
|
||||
|
||||
typedef struct AVFrames
|
||||
{
|
||||
char *FrameData;
|
||||
int FrameLength;
|
||||
}AVFrame;
|
||||
|
||||
static char *append(char *buf, const char *src, int size);
|
||||
static char *append_dht_segment(char *buf);
|
||||
void mjpeg2jpeg(AVFrame *in_frame);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue