Go to the documentation of this file.
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
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static int decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
AVCodec p
The public AVCodec.
#define AV_PIX_FMT_GBRP10
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define FF_CODEC_DECODE_CB(func)
const FFCodec ff_avrp_decoder
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
#define CODEC_LONG_NAME(str)
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.
const FFCodec ff_r210_decoder
uint8_t * extradata
Out-of-band global headers that may be used by some codecs.
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
main external API structure.
static av_cold int decode_init(AVCodecContext *avctx)
const FFCodec ff_r10k_decoder
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
This structure stores compressed data.
int width
picture width / height.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define MKTAG(a, b, c, d)