Go to the documentation of this file.
41 const uint32_t *
src = (
const uint32_t *)avpkt->
data;
44 uint8_t *g_line, *b_line, *r_line;
45 int r10 = (avctx->
codec_tag & 0xFFFFFF) ==
MKTAG(
'r',
'1',
'0', 0);
50 if (avpkt->
size < 4 * aligned_width * avctx->
height) {
60 g_line = pic->
data[0];
61 b_line = pic->
data[1];
62 r_line = pic->
data[2];
65 uint16_t *dstg = (uint16_t *)g_line;
66 uint16_t *dstb = (uint16_t *)b_line;
67 uint16_t *dstr = (uint16_t *)r_line;
104 #if CONFIG_R210_DECODER
116 #if CONFIG_R10K_DECODER
128 #if CONFIG_AVRP_DECODER
#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 AVCodec ff_avrp_decoder
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
#define AV_PIX_FMT_GBRP10
int key_frame
1 -> keyframe, 0-> not
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
const AVCodec ff_r210_decoder
@ 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.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
const char * name
Name of the codec implementation.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
main external API structure.
static av_cold int decode_init(AVCodecContext *avctx)
const AVCodec 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)