41 const uint32_t *src = (
const uint32_t *)avpkt->
data;
45 if (avpkt->
size < 4 * aligned_width * avctx->
height) {
55 dst_line = pic->
data[0];
57 for (h = 0; h < avctx->
height; h++) {
58 uint16_t *dst = (uint16_t *)dst_line;
59 for (w = 0; w < avctx->
width; w++) {
64 g = (pixel >> 4) & 0xffc0;
65 r = (pixel >> 14) & 0xffc0;
68 g = (pixel >> 6) & 0xffc0;
69 r = (pixel >> 16) & 0xffc0;
71 *dst++ = r | (r >> 10);
72 *dst++ = g | (g >> 10);
73 *dst++ = b | (b >> 10);
75 src += aligned_width - avctx->
width;
84 #if CONFIG_R210_DECODER 95 #if CONFIG_R10K_DECODER #define AVERROR_INVALIDDATA
Invalid data found when processing input.
This structure describes decoded (raw) audio or video data.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
enum AVPictureType pict_type
Picture type of the frame.
int width
picture width / height.
Libavcodec external API header.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
common internal api header.
common internal and external API header
static av_cold int decode_init(AVCodecContext *avctx)
int key_frame
1 -> keyframe, 0-> not
This structure stores compressed data.