#include <assert.h>#include "avcodec.h"#include "dsputil.h"#include "mpegvideo.h"#include "sp5x.h"

Go to the source code of this file.
Data Structures | |
| struct | MJpegContext |
| struct | MJpegDecodeContext |
Defines | |
| #define | PREDICT(ret, topleft, top, left, predictor) |
| #define | MAX_COMPONENTS 4 |
Enumerations | |
| enum | JPEG_MARKER { SOF0 = 0xc0, SOF1 = 0xc1, SOF2 = 0xc2, SOF3 = 0xc3, SOF5 = 0xc5, SOF6 = 0xc6, SOF7 = 0xc7, JPG = 0xc8, SOF9 = 0xc9, SOF10 = 0xca, SOF11 = 0xcb, SOF13 = 0xcd, SOF14 = 0xce, SOF15 = 0xcf, DHT = 0xc4, DAC = 0xcc, RST0 = 0xd0, RST1 = 0xd1, RST2 = 0xd2, RST3 = 0xd3, RST4 = 0xd4, RST5 = 0xd5, RST6 = 0xd6, RST7 = 0xd7, SOI = 0xd8, EOI = 0xd9, SOS = 0xda, DQT = 0xdb, DNL = 0xdc, DRI = 0xdd, DHP = 0xde, EXP = 0xdf, APP0 = 0xe0, APP1 = 0xe1, APP2 = 0xe2, APP3 = 0xe3, APP4 = 0xe4, APP5 = 0xe5, APP6 = 0xe6, APP7 = 0xe7, APP8 = 0xe8, APP9 = 0xe9, APP10 = 0xea, APP11 = 0xeb, APP12 = 0xec, APP13 = 0xed, APP14 = 0xee, APP15 = 0xef, JPG0 = 0xf0, JPG1 = 0xf1, JPG2 = 0xf2, JPG3 = 0xf3, JPG4 = 0xf4, JPG5 = 0xf5, JPG6 = 0xf6, JPG7 = 0xf7, JPG8 = 0xf8, JPG9 = 0xf9, JPG10 = 0xfa, JPG11 = 0xfb, JPG12 = 0xfc, JPG13 = 0xfd, COM = 0xfe, TEM = 0x01 } |
Functions | |
| static void | build_huffman_codes (uint8_t *huff_size, uint16_t *huff_code, const uint8_t *bits_table, const uint8_t *val_table) |
| static int | mjpeg_decode_dht (MJpegDecodeContext *s) |
| static int | build_vlc (VLC *vlc, const uint8_t *bits_table, const uint8_t *val_table, int nb_codes, int use_static) |
| static int | mjpeg_decode_init (AVCodecContext *avctx) |
| static int | find_frame_end (ParseContext *pc, const uint8_t *buf, int buf_size) |
| static int | jpeg_parse (AVCodecParserContext *s, AVCodecContext *avctx, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) |
| static int | mjpeg_decode_dqt (MJpegDecodeContext *s) |
| static int | mjpeg_decode_sof (MJpegDecodeContext *s) |
| static int | mjpeg_decode_dc (MJpegDecodeContext *s, int dc_index) |
| static int | decode_block (MJpegDecodeContext *s, DCTELEM *block, int component, int dc_index, int ac_index, int quant_index) |
| static int | ljpeg_decode_rgb_scan (MJpegDecodeContext *s, int predictor, int point_transform) |
| static int | ljpeg_decode_yuv_scan (MJpegDecodeContext *s, int predictor, int point_transform) |
| static int | mjpeg_decode_scan (MJpegDecodeContext *s) |
| static int | mjpeg_decode_sos (MJpegDecodeContext *s) |
| static int | mjpeg_decode_dri (MJpegDecodeContext *s) |
| static int | mjpeg_decode_app (MJpegDecodeContext *s) |
| static int | mjpeg_decode_com (MJpegDecodeContext *s) |
| static int | find_marker (uint8_t **pbuf_ptr, uint8_t *buf_end) |
| static int | mjpeg_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | mjpegb_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | sp5x_decode_frame (AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) |
| static int | mjpeg_decode_end (AVCodecContext *avctx) |
Variables | |
| static const uint8_t | bits_dc_luminance [17] |
| static const uint8_t | val_dc_luminance [] |
| static const uint8_t | bits_dc_chrominance [17] |
| static const uint8_t | val_dc_chrominance [] |
| static const uint8_t | bits_ac_luminance [17] |
| static const uint8_t | val_ac_luminance [] |
| static const uint8_t | bits_ac_chrominance [17] |
| static const uint8_t | val_ac_chrominance [] |
| AVCodec | mjpeg_decoder |
| AVCodec | mjpegb_decoder |
| AVCodec | sp5x_decoder |
| AVCodecParser | mjpeg_parser |
Definition in file mjpeg.c.
| #define MAX_COMPONENTS 4 |
| #define PREDICT | ( | ret, | |||
| topleft, | |||||
| top, | |||||
| left, | |||||
| predictor | ) |
Value:
switch(predictor){\ case 1: ret= left; break;\ case 2: ret= top; break;\ case 3: ret= topleft; break;\ case 4: ret= left + top - topleft; break;\ case 5: ret= left + ((top - topleft)>>1); break;\ case 6: ret= top + ((left - topleft)>>1); break;\ default:\ case 7: ret= (left + top)>>1; break;\ }
Definition at line 288 of file mjpeg.c.
Referenced by ljpeg_decode_rgb_scan(), and ljpeg_decode_yuv_scan().
| enum JPEG_MARKER |
| static void build_huffman_codes | ( | uint8_t * | huff_size, | |
| uint16_t * | huff_code, | |||
| const uint8_t * | bits_table, | |||
| const uint8_t * | val_table | |||
| ) | [static] |
| static int build_vlc | ( | VLC * | vlc, | |
| const uint8_t * | bits_table, | |||
| const uint8_t * | val_table, | |||
| int | nb_codes, | |||
| int | use_static | |||
| ) | [static] |
Definition at line 869 of file mjpeg.c.
References build_huffman_codes(), and init_vlc().
Referenced by mjpeg_decode_dht(), and mjpeg_decode_init().

| static int decode_block | ( | MJpegDecodeContext * | s, | |
| DCTELEM * | block, | |||
| int | component, | |||
| int | dc_index, | |||
| int | ac_index, | |||
| int | quant_index | |||
| ) | [static] |
Definition at line 1204 of file mjpeg.c.
References MJpegDecodeContext::gb, get_vlc2(), get_xbits(), MJpegDecodeContext::last_dc, level, mjpeg_decode_dc(), ScanTable::permutated, MJpegDecodeContext::quant_matrixes, MJpegDecodeContext::scantable, VLC::table, and MJpegDecodeContext::vlcs.
Referenced by mjpeg_decode_scan(), and ra288_decode_frame().

| static int find_frame_end | ( | ParseContext * | pc, | |
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
finds the end of the current frame in the bitstream.
Definition at line 927 of file mjpeg.c.
References END_NOT_FOUND, ParseContext::frame_start_found, and ParseContext::state.
| static int find_marker | ( | uint8_t ** | pbuf_ptr, | |
| uint8_t * | buf_end | |||
| ) | [static] |
Definition at line 1788 of file mjpeg.c.
Referenced by mjpeg_decode_frame(), mjpeg_insert_avi_markers(), mjpeg_video_size(), read_avi_markers(), and read_quicktime_markers().
| static int jpeg_parse | ( | AVCodecParserContext * | s, | |
| AVCodecContext * | avctx, | |||
| uint8_t ** | poutbuf, | |||
| int * | poutbuf_size, | |||
| const uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 964 of file mjpeg.c.
References ff_combine_frame(), find_frame_end(), NULL, and AVCodecParserContext::priv_data.

| static int ljpeg_decode_rgb_scan | ( | MJpegDecodeContext * | s, | |
| int | predictor, | |||
| int | point_transform | |||
| ) | [static] |
Definition at line 1253 of file mjpeg.c.
References align_get_bits(), MJpegDecodeContext::bits, MJpegDecodeContext::bottom_field, MJpegDecodeContext::dc_index, MJpegDecodeContext::gb, MJpegDecodeContext::interlaced, MJpegDecodeContext::linesize, MJpegDecodeContext::mb_height, MJpegDecodeContext::mb_width, mjpeg_decode_dc(), MJpegDecodeContext::pegasus_rct, MJpegDecodeContext::picture, PREDICT, MJpegDecodeContext::rct, MJpegDecodeContext::restart_count, MJpegDecodeContext::restart_interval, and skip_bits().
Referenced by mjpeg_decode_sos().

| static int ljpeg_decode_yuv_scan | ( | MJpegDecodeContext * | s, | |
| int | predictor, | |||
| int | point_transform | |||
| ) | [static] |
Definition at line 1321 of file mjpeg.c.
References align_get_bits(), MJpegDecodeContext::bottom_field, c, MJpegDecodeContext::comp_index, MJpegDecodeContext::dc_index, MJpegDecodeContext::gb, MJpegDecodeContext::h_scount, MJpegDecodeContext::interlaced, MJpegDecodeContext::linesize, MJpegDecodeContext::mb_height, MJpegDecodeContext::mb_width, mjpeg_decode_dc(), MJpegDecodeContext::nb_blocks, MJpegDecodeContext::picture, PREDICT, MJpegDecodeContext::restart_count, MJpegDecodeContext::restart_interval, skip_bits(), and MJpegDecodeContext::v_scount.
Referenced by mjpeg_decode_sos().

| static int mjpeg_decode_app | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1583 of file mjpeg.c.
References APP1, av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, AV_LOG_INFO, MJpegDecodeContext::avctx, be2me_32, MJpegDecodeContext::buggy_avid, AVCodecContext::debug, AVRational::den, FF_DEBUG_PICT_INFO, FF_DEBUG_STARTCODE, MJpegDecodeContext::gb, get_bits(), get_bits_count(), MJpegDecodeContext::interlace_polarity, AVRational::num, MJpegDecodeContext::pegasus_rct, MJpegDecodeContext::rgb, AVCodecContext::sample_aspect_ratio, GetBitContext::size_in_bits, skip_bits(), and MJpegDecodeContext::start_code.
Referenced by mjpeg_decode_frame().

| static int mjpeg_decode_com | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1728 of file mjpeg.c.
References av_free(), av_log(), AV_LOG_INFO, av_malloc(), MJpegDecodeContext::avctx, MJpegDecodeContext::buggy_avid, MJpegDecodeContext::cs_itu601, AVCodecContext::debug, FF_DEBUG_PICT_INFO, MJpegDecodeContext::gb, get_bits(), get_bits_count(), and GetBitContext::size_in_bits.
Referenced by mjpeg_decode_frame().

| static int mjpeg_decode_dc | ( | MJpegDecodeContext * | s, | |
| int | dc_index | |||
| ) | [inline, static] |
Definition at line 1186 of file mjpeg.c.
References MJpegDecodeContext::gb, get_vlc2(), get_xbits(), VLC::table, and MJpegDecodeContext::vlcs.
Referenced by decode_block(), ljpeg_decode_rgb_scan(), and ljpeg_decode_yuv_scan().

| static int mjpeg_decode_dht | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1021 of file mjpeg.c.
References build_vlc(), free_vlc(), MJpegDecodeContext::gb, get_bits(), and MJpegDecodeContext::vlcs.
Referenced by mjpeg_decode_frame(), mjpeg_decode_init(), and mjpegb_decode_frame().

| static int mjpeg_decode_dqt | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 986 of file mjpeg.c.
References MJpegDecodeContext::gb, get_bits(), ScanTable::permutated, MJpegDecodeContext::qscale, MJpegDecodeContext::quant_matrixes, and MJpegDecodeContext::scantable.
Referenced by mjpeg_decode_frame(), and mjpegb_decode_frame().

| static int mjpeg_decode_dri | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1572 of file mjpeg.c.
References MJpegDecodeContext::gb, get_bits(), MJpegDecodeContext::restart_count, and MJpegDecodeContext::restart_interval.
Referenced by mjpeg_decode_frame().

| static int mjpeg_decode_end | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 2253 of file mjpeg.c.
References av_free(), MJpegDecodeContext::buffer, free_vlc(), AVCodecContext::priv_data, MJpegDecodeContext::qscale_table, and MJpegDecodeContext::vlcs.

| static int mjpeg_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 1818 of file mjpeg.c.
References APP0, APP15, av_free(), av_log(), AV_LOG_DEBUG, AV_LOG_ERROR, av_malloc(), MJpegDecodeContext::avctx, MJpegDecodeContext::bottom_field, MJpegDecodeContext::buffer, MJpegDecodeContext::buffer_size, MJpegDecodeContext::buggy_avid, COM, AVCodecContext::debug, DHT, DQT, DRI, EOI, FF_DEBUG_QP, FF_DEBUG_STARTCODE, FF_INPUT_BUFFER_PADDING_SIZE, FF_QP2LAMBDA, find_marker(), MJpegDecodeContext::gb, get_bits_count(), init_get_bits(), MJpegDecodeContext::interlaced, JPG, MJpegDecodeContext::lossless, mjpeg_decode_app(), mjpeg_decode_com(), mjpeg_decode_dht(), mjpeg_decode_dqt(), mjpeg_decode_dri(), mjpeg_decode_sof(), mjpeg_decode_sos(), MJpegDecodeContext::picture, picture, AVCodecContext::priv_data, MJpegDecodeContext::qscale, MJpegDecodeContext::qscale_table, MJpegDecodeContext::restart_count, MJpegDecodeContext::restart_interval, SOF0, SOF1, SOF10, SOF11, SOF13, SOF14, SOF15, SOF2, SOF3, SOF5, SOF6, SOF7, SOF9, SOI, SOS, src, MJpegDecodeContext::start_code, and MJpegDecodeContext::width.
Referenced by sp5x_decode_frame().

| static int mjpeg_decode_init | ( | AVCodecContext * | avctx | ) | [static] |
Definition at line 881 of file mjpeg.c.
References av_log(), AV_LOG_INFO, MpegEncContext::avctx, MJpegDecodeContext::avctx, bits_ac_chrominance, bits_ac_luminance, bits_dc_chrominance, bits_dc_luminance, MJpegDecodeContext::buffer, MJpegDecodeContext::buffer_size, build_vlc(), CODEC_FLAG_EXTERN_HUFF, AVCodecContext::coded_height, DCT_common_init(), MpegEncContext::dsp, dsputil_init(), AVCodecContext::extradata, AVCodecContext::extradata_size, MJpegDecodeContext::first_picture, AVCodecContext::flags, MJpegDecodeContext::gb, DSPContext::idct_put, MJpegDecodeContext::idct_put, init_get_bits(), MpegEncContext::intra_scantable, mjpeg_decode_dht(), MJpegDecodeContext::mpeg_enc_ctx_allocated, NULL, MJpegDecodeContext::org_height, AVCodecContext::priv_data, s2, MJpegDecodeContext::scantable, MJpegDecodeContext::start_code, val_ac_chrominance, val_ac_luminance, val_dc_chrominance, val_dc_luminance, and MJpegDecodeContext::vlcs.

| static int mjpeg_decode_scan | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1404 of file mjpeg.c.
References MJpegDecodeContext::ac_index, align_get_bits(), MJpegDecodeContext::avctx, MJpegDecodeContext::bottom_field, c, MJpegDecodeContext::comp_index, MJpegDecodeContext::dc_index, decode_block(), MJpegDecodeContext::gb, MJpegDecodeContext::h_scount, MJpegDecodeContext::idct_put, MJpegDecodeContext::interlaced, MJpegDecodeContext::last_dc, MJpegDecodeContext::linesize, AVCodecContext::lowres, MJpegDecodeContext::mb_height, MJpegDecodeContext::mb_width, MJpegDecodeContext::nb_blocks, MJpegDecodeContext::picture, MJpegDecodeContext::quant_index, MJpegDecodeContext::restart_count, MJpegDecodeContext::restart_interval, skip_bits(), and MJpegDecodeContext::v_scount.
Referenced by mjpeg_decode_sos(), and sp5x_decode_frame().

| static int mjpeg_decode_sof | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1067 of file mjpeg.c.
References av_freep(), av_log(), AV_LOG_ERROR, av_mallocz(), avcodec_check_dimensions(), avcodec_set_dimensions(), MJpegDecodeContext::avctx, MJpegDecodeContext::bits, MJpegDecodeContext::bottom_field, MJpegDecodeContext::component_id, MJpegDecodeContext::cs_itu601, MJpegDecodeContext::first_picture, MJpegDecodeContext::gb, get_bits(), AVCodecContext::get_buffer, MJpegDecodeContext::h_count, MJpegDecodeContext::h_max, AVCodecContext::height, MJpegDecodeContext::height, I_TYPE, MJpegDecodeContext::interlaced, MJpegDecodeContext::linesize, MJpegDecodeContext::lossless, MAX_COMPONENTS, MJpegDecodeContext::nb_components, MJpegDecodeContext::org_height, MJpegDecodeContext::pegasus_rct, MJpegDecodeContext::picture, AVCodecContext::pix_fmt, PIX_FMT_GRAY8, PIX_FMT_RGBA32, PIX_FMT_YUV420P, PIX_FMT_YUV422P, PIX_FMT_YUV444P, PIX_FMT_YUVJ420P, PIX_FMT_YUVJ422P, PIX_FMT_YUVJ444P, MJpegDecodeContext::qscale_table, MJpegDecodeContext::quant_index, MJpegDecodeContext::rct, AVCodecContext::release_buffer, MJpegDecodeContext::rgb, MJpegDecodeContext::v_count, MJpegDecodeContext::v_max, and MJpegDecodeContext::width.
Referenced by mjpeg_decode_frame(), and mjpegb_decode_frame().

| static int mjpeg_decode_sos | ( | MJpegDecodeContext * | s | ) | [static] |
Definition at line 1457 of file mjpeg.c.
References MJpegDecodeContext::ac_index, av_log(), AV_LOG_DEBUG, MJpegDecodeContext::avctx, MJpegDecodeContext::comp_index, MJpegDecodeContext::component_id, MJpegDecodeContext::dc_index, AVCodecContext::debug, emms_c, FF_DEBUG_PICT_INFO, MJpegDecodeContext::gb, get_bits(), MJpegDecodeContext::h_count, MJpegDecodeContext::h_max, MJpegDecodeContext::h_scount, MJpegDecodeContext::height, MJpegDecodeContext::last_dc, ljpeg_decode_rgb_scan(), ljpeg_decode_yuv_scan(), MJpegDecodeContext::lossless, MJpegDecodeContext::mb_height, MJpegDecodeContext::mb_width, MJpegDecodeContext::mjpb_skiptosod, mjpeg_decode_scan(), MJpegDecodeContext::nb_blocks, MJpegDecodeContext::nb_components, predictor, MJpegDecodeContext::rgb, skip_bits(), SOF0, SOF1, SOF2, SOF3, MJpegDecodeContext::start_code, MJpegDecodeContext::v_count, MJpegDecodeContext::v_max, MJpegDecodeContext::v_scount, and MJpegDecodeContext::width.
Referenced by mjpeg_decode_frame(), and mjpegb_decode_frame().

| static int mjpegb_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 1989 of file mjpeg.c.
References av_log(), AV_LOG_DEBUG, be2me_32, MJpegDecodeContext::bottom_field, AVCodecContext::debug, DHT, DQT, FF_DEBUG_QP, FF_QP2LAMBDA, MJpegDecodeContext::gb, get_bits_long(), init_get_bits(), MJpegDecodeContext::interlaced, MJpegDecodeContext::lossless, MJpegDecodeContext::mjpb_skiptosod, mjpeg_decode_dht(), mjpeg_decode_dqt(), mjpeg_decode_sof(), mjpeg_decode_sos(), MJpegDecodeContext::picture, picture, AVCodecContext::priv_data, MJpegDecodeContext::qscale, MJpegDecodeContext::qscale_table, read_header(), MJpegDecodeContext::restart_count, MJpegDecodeContext::restart_interval, show_bits(), skip_bits(), SOF0, SOS, MJpegDecodeContext::start_code, and MJpegDecodeContext::width.

| static int sp5x_decode_frame | ( | AVCodecContext * | avctx, | |
| void * | data, | |||
| int * | data_size, | |||
| uint8_t * | buf, | |||
| int | buf_size | |||
| ) | [static] |
Definition at line 2099 of file mjpeg.c.
References MJpegDecodeContext::ac_index, av_free(), av_mallocz(), MJpegDecodeContext::bits, AVCodecContext::coded_height, AVCodecContext::coded_width, MJpegDecodeContext::comp_index, MJpegDecodeContext::component_id, MJpegDecodeContext::cs_itu601, MJpegDecodeContext::dc_index, fprintf, MJpegDecodeContext::gb, AVCodecContext::get_buffer, MJpegDecodeContext::h_count, MJpegDecodeContext::h_max, MJpegDecodeContext::h_scount, MJpegDecodeContext::height, AVCodecContext::height, I_TYPE, init_get_bits(), MJpegDecodeContext::interlaced, MJpegDecodeContext::last_dc, MJpegDecodeContext::linesize, MJpegDecodeContext::mb_height, MJpegDecodeContext::mb_width, memcpy, mjpeg_decode_frame(), mjpeg_decode_scan(), MJpegDecodeContext::nb_blocks, MJpegDecodeContext::nb_components, ScanTable::permutated, MJpegDecodeContext::picture, AVCodecContext::pix_fmt, PIX_FMT_YUV420P, AVCodecContext::priv_data, MJpegDecodeContext::qscale, MJpegDecodeContext::qscale_table, MJpegDecodeContext::quant_index, MJpegDecodeContext::quant_matrixes, MJpegDecodeContext::scantable, sp5x_data_dht, sp5x_data_dqt, sp5x_data_sof, sp5x_data_sos, sp5x_quant_table, MJpegDecodeContext::v_count, MJpegDecodeContext::v_max, MJpegDecodeContext::v_scount, MJpegDecodeContext::width, and AVCodecContext::width.

const uint8_t bits_ac_chrominance[17] [static] |
Initial value:
{ 0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 0x77 }
Definition at line 201 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t bits_ac_luminance[17] [static] |
Initial value:
{ 0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 0x7d }
Definition at line 175 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t bits_dc_chrominance[17] [static] |
Initial value:
{ 0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }
Definition at line 170 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t bits_dc_luminance[17] [static] |
Initial value:
{ 0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0 }
Definition at line 165 of file mjpeg.c.
Referenced by mjpeg_decode_init().
Initial value:
{
"mjpeg",
CODEC_TYPE_VIDEO,
CODEC_ID_MJPEG,
sizeof(MJpegDecodeContext),
mjpeg_decode_init,
NULL,
mjpeg_decode_end,
mjpeg_decode_frame,
CODEC_CAP_DR1,
NULL
}
Definition at line 2268 of file mjpeg.c.
Referenced by avcodec_register_all().
Initial value:
{
{ CODEC_ID_MJPEG },
sizeof(ParseContext),
NULL,
jpeg_parse,
ff_parse_close,
}
Definition at line 2319 of file mjpeg.c.
Referenced by avcodec_register_all().
Initial value:
{
"mjpegb",
CODEC_TYPE_VIDEO,
CODEC_ID_MJPEGB,
sizeof(MJpegDecodeContext),
mjpeg_decode_init,
NULL,
mjpeg_decode_end,
mjpegb_decode_frame,
CODEC_CAP_DR1,
NULL
}
Definition at line 2281 of file mjpeg.c.
Referenced by avcodec_register_all().
Initial value:
{
"sp5x",
CODEC_TYPE_VIDEO,
CODEC_ID_SP5X,
sizeof(MJpegDecodeContext),
mjpeg_decode_init,
NULL,
mjpeg_decode_end,
sp5x_decode_frame,
CODEC_CAP_DR1,
NULL
}
Definition at line 2294 of file mjpeg.c.
Referenced by avcodec_register_all().
const uint8_t val_ac_chrominance[] [static] |
Initial value:
{ 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21,
0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71,
0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91,
0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0,
0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34,
0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26,
0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38,
0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
0x49, 0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
0x59, 0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68,
0x69, 0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78,
0x79, 0x7a, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
0x88, 0x89, 0x8a, 0x92, 0x93, 0x94, 0x95, 0x96,
0x97, 0x98, 0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5,
0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4,
0xb5, 0xb6, 0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3,
0xc4, 0xc5, 0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2,
0xd3, 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda,
0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9,
0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
0xf9, 0xfa
}
Definition at line 204 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t val_ac_luminance[] [static] |
Initial value:
{ 0x01, 0x02, 0x03, 0x00, 0x04, 0x11, 0x05, 0x12,
0x21, 0x31, 0x41, 0x06, 0x13, 0x51, 0x61, 0x07,
0x22, 0x71, 0x14, 0x32, 0x81, 0x91, 0xa1, 0x08,
0x23, 0x42, 0xb1, 0xc1, 0x15, 0x52, 0xd1, 0xf0,
0x24, 0x33, 0x62, 0x72, 0x82, 0x09, 0x0a, 0x16,
0x17, 0x18, 0x19, 0x1a, 0x25, 0x26, 0x27, 0x28,
0x29, 0x2a, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39,
0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49,
0x4a, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59,
0x5a, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69,
0x6a, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79,
0x7a, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89,
0x8a, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98,
0x99, 0x9a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7,
0xa8, 0xa9, 0xaa, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6,
0xb7, 0xb8, 0xb9, 0xba, 0xc2, 0xc3, 0xc4, 0xc5,
0xc6, 0xc7, 0xc8, 0xc9, 0xca, 0xd2, 0xd3, 0xd4,
0xd5, 0xd6, 0xd7, 0xd8, 0xd9, 0xda, 0xe1, 0xe2,
0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0xe8, 0xe9, 0xea,
0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8,
0xf9, 0xfa
}
Definition at line 177 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t val_dc_chrominance[] [static] |
Initial value:
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
Definition at line 172 of file mjpeg.c.
Referenced by mjpeg_decode_init().
const uint8_t val_dc_luminance[] [static] |
Initial value:
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }
Definition at line 167 of file mjpeg.c.
Referenced by mjpeg_decode_init().
1.5.5