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) {
61 g_line = pic->
data[0];
62 b_line = pic->
data[1];
63 r_line = pic->
data[2];
66 uint16_t *dstg = (uint16_t *)g_line;
67 uint16_t *dstb = (uint16_t *)b_line;
68 uint16_t *dstr = (uint16_t *)r_line;
105 #if CONFIG_R210_DECODER
117 #if CONFIG_R10K_DECODER
129 #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
int key_frame
1 -> keyframe, 0-> not
#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.
@ AV_PICTURE_TYPE_I
Intra.
enum AVPictureType pict_type
Picture type of the frame.
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 NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
const FFCodec ff_r210_decoder
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
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)