ok,i know very little on C from university course, so i hope you will understand my question. im using FFmpeg library for android so i just need to understand somethings in their C code.
so, i have this struct:
typedef struct AVFrame {
#define AV_NUM_DATA_POINTERS 8
/**
* pointer to the picture/channel planes.
*/
uint8_t *data[AV_NUM_DATA_POINTERS];
.......(some more types)
}
thats all, but when i look at the function in other file-i see the next line,and getting confuse,
outside the function:
static AVFrame *picture_hq;
and inside the function:
picture_hq->data[0][y * picture_hq->linesize[0] + x] = native_video_frame_data[0];
Don't pay attention to the unknown arguments, i just don't understand how 1 dimension array data[] from the struct above,become a 2 dimensions array data[0][bla bla bla..]?
is it related to the uint8_t type?