Go to the documentation of this file.
42 0x4a, 0x46, 0x49, 0x46, 0x00,
54 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
55 0x0a, 0x0b, 0x01, 0x00, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01,
56 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,
84 int input_skip, output_size;
102 input_skip = (in->
data[4] << 8) + in->
data[5] + 4;
106 if (in->
size < input_skip) {
111 output_size = in->
size - input_skip +
139 .
p.
name =
"mjpeg2jpeg",
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
static uint8_t * append(uint8_t *buf, const uint8_t *src, int size)
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce output
const uint8_t ff_mjpeg_val_dc[]
const uint8_t ff_mjpeg_bits_ac_chrominance[]
int ff_bsf_get_packet(AVBSFContext *ctx, AVPacket **pkt)
Called by the bitstream filters to get the next packet for filtering.
void av_packet_free(AVPacket **pkt)
Free the packet, if the packet is reference counted, it will be unreferenced first.
The bitstream filter state.
static uint8_t * append_dht_segment(uint8_t *buf)
static const uint8_t jpeg_header[]
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
static const uint8_t dht_segment_frag[]
static int mjpeg2jpeg_filter(AVBSFContext *ctx, AVPacket *out)
static const int dht_segment_size
const uint8_t ff_mjpeg_val_ac_chrominance[]
AVCodecID
Identify the syntax and semantics of the bitstream.
AVBitStreamFilter p
The public AVBitStreamFilter.
const uint8_t ff_mjpeg_val_ac_luminance[]
static enum AVCodecID codec_ids[]
const uint8_t ff_mjpeg_bits_ac_luminance[]
int av_packet_copy_props(AVPacket *dst, const AVPacket *src)
Copy only "properties" fields from src to dst.
const FFBitStreamFilter ff_mjpeg2jpeg_bsf
static const uint8_t dht_segment_head[]
const FF_VISIBILITY_PUSH_HIDDEN uint8_t ff_mjpeg_bits_dc_luminance[]
This structure stores compressed data.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16