25#include "config_components.h"
42 const uint32_t *
src = (
const uint32_t *)avpkt->
data;
45 uint8_t *g_line, *b_line, *r_line;
46 int r10 = (avctx->
codec_tag & 0xFFFFFF) ==
MKTAG(
'r',
'1',
'0', 0);
51 if (avpkt->
size < 4 * aligned_width * avctx->
height) {
59 g_line = pic->
data[0];
60 b_line = pic->
data[1];
61 r_line = pic->
data[2];
64 uint16_t *dstg = (uint16_t *)g_line;
65 uint16_t *dstb = (uint16_t *)b_line;
66 uint16_t *dstr = (uint16_t *)r_line;
103#if CONFIG_R210_DECODER
114#if CONFIG_R10K_DECODER
125#if CONFIG_AVRP_DECODER
const FFCodec ff_r210_decoder
const FFCodec ff_r10k_decoder
const FFCodec ff_avrp_decoder
Libavcodec external API header.
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
common internal and external API header
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static av_cold int decode_init(AVCodecContext *avctx)
static int decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
#define MKTAG(a, b, c, d)
#define AV_PIX_FMT_GBRP10
static av_cold int decode_init(AVCodecContext *avctx)
static int decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
uint8_t * extradata
Out-of-band global headers that may be used by some codecs.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
This structure stores compressed data.