diff options
| author | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-02 12:08:06 +0200 | 
|---|---|---|
| committer | Mikhail Burakov <mburakov@mailbox.org> | 2023-04-02 12:08:06 +0200 | 
| commit | 972e03b4a09b790d9ed9c8102cc897a75c9bb751 (patch) | |
| tree | 684e3d8157b13d03c079cfb17929b182cb4fa5d9 | |
| parent | 73ad6cd905f142335e838ddbf6200d63fb181e0e (diff) | |
Change frame planes counter type to uint32_t
| -rw-r--r-- | frame.c | 10 | ||||
| -rw-r--r-- | frame.h | 4 | 
2 files changed, 7 insertions, 7 deletions
| @@ -26,7 +26,7 @@  #include "util.h"  struct Frame* FrameCreate(uint32_t width, uint32_t height, uint32_t fourcc, -                          size_t nplanes, const struct FramePlane* planes) { +                          uint32_t nplanes, const struct FramePlane* planes) {    struct AUTO(Frame)* frame = malloc(sizeof(struct Frame));    if (!frame) {      LOG("Failed to allocate frame (%s)", strerror(errno)); @@ -37,10 +37,10 @@ struct Frame* FrameCreate(uint32_t width, uint32_t height, uint32_t fourcc,        .height = height,        .fourcc = fourcc,        .nplanes = nplanes, -      .planes[0] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, -      .planes[1] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, -      .planes[2] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, -      .planes[3] = {.dmabuf_fd = -1, .pitch = 0, .offset = 0, .modifier = 0}, +      .planes[0] = {.dmabuf_fd = -1}, +      .planes[1] = {.dmabuf_fd = -1}, +      .planes[2] = {.dmabuf_fd = -1}, +      .planes[3] = {.dmabuf_fd = -1},    };    for (size_t i = 0; i < nplanes; i++) { @@ -32,12 +32,12 @@ struct Frame {    uint32_t width;    uint32_t height;    uint32_t fourcc; -  size_t nplanes; +  uint32_t nplanes;    struct FramePlane planes[4];  };  struct Frame* FrameCreate(uint32_t width, uint32_t height, uint32_t fourcc, -                          size_t nplanes, const struct FramePlane* planes); +                          uint32_t nplanes, const struct FramePlane* planes);  void FrameDestroy(struct Frame** frame);  #endif  // RECEIVER_FRAME_H_ | 
